| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- import 'package:flutter/material.dart';
- ///颜色
- class GSYColors {
- static const int primaryIntValue = 0xFF24292E;
- static const MaterialColor primarySwatch = const MaterialColor(
- primaryIntValue,
- const <int, Color>{
- 50: const Color(primaryIntValue),
- 100: const Color(primaryIntValue),
- 200: const Color(primaryIntValue),
- 300: const Color(primaryIntValue),
- 400: const Color(primaryIntValue),
- 500: const Color(primaryIntValue),
- 600: const Color(primaryIntValue),
- 700: const Color(primaryIntValue),
- 800: const Color(primaryIntValue),
- 900: const Color(primaryIntValue),
- },
- );
- static const String primaryValueString = "#24292E";
- static const String primaryLightValueString = "#42464b";
- static const String primaryDarkValueString = "#121917";
- static const String miWhiteString = "#ececec";
- static const String actionBlueString = "#267aff";
- static const String webDraculaBackgroundColorString = "#282a36";
- static const Color primaryValue = Color(0xFF24292E);
- static const Color primaryLightValue = Color(0xFF42464b);
- static const Color primaryDarkValue = Color(0xFF121917);
- static const Color cardWhite = Color(0xFFFFFFFF);
- static const Color textWhite = Color(0xFFFFFFFF);
- static const Color miWhite = Color(0xffececec);
- static const Color white = Color(0xFFFFFFFF);
- static const Color actionBlue = Color(0xff267aff);
- static const Color subTextColor = Color(0xff959595);
- static const Color subLightTextColor = Color(0xffc4c4c4);
- static const Color mainBackgroundColor = miWhite;
- static const Color mainTextColor = primaryDarkValue;
- static const Color textColorWhite = white;
- }
- ///文本样式
- class GSYConstant {
- static const String app_default_share_url =
- "https://github.com/CarGuo/gsy_github_app_flutter";
- static const lagerTextSize = 30.0;
- static const bigTextSize = 20.0;
- static const normalTextSize = 18.0;
- static const middleTextWhiteSize = 16.0;
- static const smallTextSize = 14.0;
- static const minTextSize = 12.0;
- static const minText = TextStyle(
- color: GSYColors.subLightTextColor,
- fontSize: minTextSize,
- );
- static const smallTextWhite = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: smallTextSize,
- );
- static const smallText = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: smallTextSize,
- );
- static const smallTextBold = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: smallTextSize,
- fontWeight: FontWeight.bold,
- );
- static const smallSubLightText = TextStyle(
- color: GSYColors.subLightTextColor,
- fontSize: smallTextSize,
- );
- static const smallActionLightText = TextStyle(
- color: GSYColors.actionBlue,
- fontSize: smallTextSize,
- );
- static const smallMiLightText = TextStyle(
- color: GSYColors.miWhite,
- fontSize: smallTextSize,
- );
- static const smallSubText = TextStyle(
- color: GSYColors.subTextColor,
- fontSize: smallTextSize,
- );
- static const middleText = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: middleTextWhiteSize,
- );
- static const middleTextWhite = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: middleTextWhiteSize,
- );
- static const middleSubText = TextStyle(
- color: GSYColors.subTextColor,
- fontSize: middleTextWhiteSize,
- );
- static const middleSubLightText = TextStyle(
- color: GSYColors.subLightTextColor,
- fontSize: middleTextWhiteSize,
- );
- static const middleTextBold = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: middleTextWhiteSize,
- fontWeight: FontWeight.bold,
- );
- static const middleTextWhiteBold = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: middleTextWhiteSize,
- fontWeight: FontWeight.bold,
- );
- static const middleSubTextBold = TextStyle(
- color: GSYColors.subTextColor,
- fontSize: middleTextWhiteSize,
- fontWeight: FontWeight.bold,
- );
- static const normalText = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: normalTextSize,
- );
- static const normalTextBold = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: normalTextSize,
- fontWeight: FontWeight.bold,
- );
- static const normalSubText = TextStyle(
- color: GSYColors.subTextColor,
- fontSize: normalTextSize,
- );
- static const normalTextWhite = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: normalTextSize,
- );
- static const normalTextMitWhiteBold = TextStyle(
- color: GSYColors.miWhite,
- fontSize: normalTextSize,
- fontWeight: FontWeight.bold,
- );
- static const normalTextActionWhiteBold = TextStyle(
- color: Colors.blue,
- fontSize: middleTextWhiteSize,
- fontWeight: FontWeight.bold,
- );
- static const normalTextLight = TextStyle(
- color: GSYColors.primaryLightValue,
- fontSize: normalTextSize,
- );
- static const smallTextLight = TextStyle(
- color: GSYColors.primaryLightValue,
- fontSize: smallTextSize,
- );
- static const normalTextBigWhiteBold = TextStyle(
- color: GSYColors.actionBlue,
- fontSize: bigTextSize,
- fontWeight: FontWeight.bold,
- );
- static const largeText = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: bigTextSize,
- );
- static const largeTextBold = TextStyle(
- color: GSYColors.mainTextColor,
- fontSize: bigTextSize,
- fontWeight: FontWeight.bold,
- );
- static const largeTextWhite = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: bigTextSize,
- );
- static const largeTextWhiteBold = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: bigTextSize,
- fontWeight: FontWeight.bold,
- );
- static const largeLargeTextWhite = TextStyle(
- color: GSYColors.textColorWhite,
- fontSize: lagerTextSize,
- fontWeight: FontWeight.bold,
- );
- static const largeLargeText = TextStyle(
- color: GSYColors.primaryValue,
- fontSize: lagerTextSize,
- fontWeight: FontWeight.bold,
- );
- }
- class GSYICons {
- static const String FONT_FAMILY = 'wxcIconFont';
- static const String DEFAULT_USER_ICON = 'static/images/logo.png';
- static const String DEFAULT_IMAGE = 'static/images/default_img.png';
- static const String DEFAULT_REMOTE_PIC =
- 'http://img.cdn.guoshuyu.cn/gsy_github_app_logo.png';
- static const IconData HOME =
- const IconData(0xe624, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData MORE =
- const IconData(0xe674, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData SEARCH =
- const IconData(0xe61c, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData MAIN_DT =
- const IconData(0xe684, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData MAIN_QS =
- const IconData(0xe818, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData MAIN_MY =
- const IconData(0xe6d0, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData MAIN_SEARCH =
- const IconData(0xe61c, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData LOGIN_USER =
- const IconData(0xe666, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData LOGIN_PW =
- const IconData(0xe60e, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_USER =
- const IconData(0xe63e, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_STAR =
- const IconData(0xe643, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_FORK =
- const IconData(0xe67e, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_ISSUE =
- const IconData(0xe661, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_STARED =
- const IconData(0xe698, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_WATCH =
- const IconData(0xe681, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_WATCHED =
- const IconData(0xe629, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_DIR = Icons.folder;
- static const IconData REPOS_ITEM_FILE =
- const IconData(0xea77, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData REPOS_ITEM_NEXT =
- const IconData(0xe610, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData USER_ITEM_COMPANY =
- const IconData(0xe63e, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData USER_ITEM_LOCATION =
- const IconData(0xe7e6, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData USER_ITEM_LINK =
- const IconData(0xe670, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData USER_NOTIFY =
- const IconData(0xe600, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData ISSUE_ITEM_ISSUE =
- const IconData(0xe661, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData ISSUE_ITEM_COMMENT =
- const IconData(0xe6ba, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData ISSUE_ITEM_ADD =
- const IconData(0xe662, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData ISSUE_EDIT_H1 = Icons.filter_1;
- static const IconData ISSUE_EDIT_H2 = Icons.filter_2;
- static const IconData ISSUE_EDIT_H3 = Icons.filter_3;
- static const IconData ISSUE_EDIT_BOLD = Icons.format_bold;
- static const IconData ISSUE_EDIT_ITALIC = Icons.format_italic;
- static const IconData ISSUE_EDIT_QUOTE = Icons.format_quote;
- static const IconData ISSUE_EDIT_CODE = Icons.format_shapes;
- static const IconData ISSUE_EDIT_LINK = Icons.insert_link;
- static const IconData NOTIFY_ALL_READ =
- const IconData(0xe62f, fontFamily: GSYICons.FONT_FAMILY);
- static const IconData PUSH_ITEM_EDIT = Icons.mode_edit;
- static const IconData PUSH_ITEM_ADD = Icons.add_box;
- static const IconData PUSH_ITEM_MIN = Icons.indeterminate_check_box;
- }
|