1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-18 04:20:37 +01:00

Paint setting icon with color.

This commit is contained in:
stonegate 2020-07-09 00:34:42 +08:00
parent f1989a0565
commit a7d2a95f02
2 changed files with 25 additions and 13 deletions

View File

@ -98,7 +98,7 @@ class _LanguagesSettingState extends State<LanguagesSetting> {
subtitle: Text( subtitle: Text(
"If you'd like to contribute to support more languages, please contact me."), "If you'd like to contribute to support more languages, please contact me."),
trailing: IconButton( trailing: IconButton(
icon: Icon(LineIcons.envelope_open_solid), icon: Icon(LineIcons.heart),
onPressed: () => _launchUrl( onPressed: () => _launchUrl(
'mailto:<tsacdop.app@gmail.com>?subject=Tsacdop localization project')), 'mailto:<tsacdop.app@gmail.com>?subject=Tsacdop localization project')),
), ),

View File

@ -154,7 +154,8 @@ class _SettingsState extends State<Settings>
builder: (context) => ThemeSetting())), builder: (context) => ThemeSetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.adjust_solid), leading: Icon(LineIcons.adjust_solid,
color: context.accentColor),
title: Text(s.settingsAppearance), title: Text(s.settingsAppearance),
subtitle: Text(s.settingsAppearanceDes), subtitle: Text(s.settingsAppearanceDes),
), ),
@ -166,7 +167,8 @@ class _SettingsState extends State<Settings>
builder: (context) => LayoutSetting())), builder: (context) => LayoutSetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.stop_circle_solid), leading: Icon(LineIcons.stop_circle_solid,
color: Colors.blueAccent),
title: Text(s.settingsLayout), title: Text(s.settingsLayout),
subtitle: Text(s.settingsLayoutDes), subtitle: Text(s.settingsLayoutDes),
), ),
@ -178,7 +180,8 @@ class _SettingsState extends State<Settings>
builder: (context) => PlaySetting())), builder: (context) => PlaySetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.play_circle), leading: Icon(LineIcons.play_circle,
color: Colors.redAccent),
title: Text(s.play), title: Text(s.play),
subtitle: Text(s.settingsPlayDes), subtitle: Text(s.settingsPlayDes),
), ),
@ -190,7 +193,8 @@ class _SettingsState extends State<Settings>
builder: (context) => SyncingSetting())), builder: (context) => SyncingSetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.cloud_download_alt_solid), leading: Icon(LineIcons.cloud_download_alt_solid,
color: Colors.yellow[700]),
title: Text(s.settingsSyncing), title: Text(s.settingsSyncing),
subtitle: Text(s.settingsSyncingDes)), subtitle: Text(s.settingsSyncingDes)),
Divider(height: 2), Divider(height: 2),
@ -201,7 +205,8 @@ class _SettingsState extends State<Settings>
builder: (context) => StorageSetting())), builder: (context) => StorageSetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.save), leading:
Icon(LineIcons.save, color: Colors.green[700]),
title: Text(s.settingStorage), title: Text(s.settingStorage),
subtitle: Text(s.settingsStorageDes), subtitle: Text(s.settingsStorageDes),
), ),
@ -213,7 +218,8 @@ class _SettingsState extends State<Settings>
builder: (context) => PlayedHistory())), builder: (context) => PlayedHistory())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(Icons.update), leading:
Icon(Icons.update, color: Colors.indigo[700]),
title: Text(s.settingsHistory), title: Text(s.settingsHistory),
subtitle: Text(s.settingsHistoryDes), subtitle: Text(s.settingsHistoryDes),
), ),
@ -225,7 +231,8 @@ class _SettingsState extends State<Settings>
builder: (context) => LanguagesSetting())), builder: (context) => LanguagesSetting())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.language_solid), leading: Icon(LineIcons.language_solid,
color: Colors.purpleAccent),
title: Text(s.settingsLanguages), title: Text(s.settingsLanguages),
subtitle: Text(s.settingsLanguagesDes), subtitle: Text(s.settingsLanguagesDes),
), ),
@ -236,7 +243,8 @@ class _SettingsState extends State<Settings>
}, },
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.file_code_solid), leading: Icon(LineIcons.file_code_solid,
color: Colors.lightGreen[700]),
title: Text(s.settingsExport), title: Text(s.settingsExport),
subtitle: Text(s.settingsExportDes), subtitle: Text(s.settingsExportDes),
), ),
@ -274,7 +282,8 @@ class _SettingsState extends State<Settings>
builder: (context) => Libries())), builder: (context) => Libries())),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.book_open_solid), leading: Icon(LineIcons.book_open_solid,
color: Colors.purple[700]),
title: Text(s.settingsLibraries), title: Text(s.settingsLibraries),
subtitle: Text(s.settingsLibrariesDes), subtitle: Text(s.settingsLibrariesDes),
), ),
@ -291,7 +300,8 @@ class _SettingsState extends State<Settings>
}, },
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.bug_solid), leading: Icon(LineIcons.bug_solid,
color: Colors.pink[700]),
title: Text(s.settingsFeedback), title: Text(s.settingsFeedback),
subtitle: Text(s.settingsFeedbackDes), subtitle: Text(s.settingsFeedbackDes),
trailing: Transform.rotate( trailing: Transform.rotate(
@ -351,7 +361,8 @@ class _SettingsState extends State<Settings>
}, },
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.capsules_solid), leading: Icon(LineIcons.capsules_solid,
color: Colors.pinkAccent),
title: Text(s.settingsDiscovery), title: Text(s.settingsDiscovery),
), ),
Divider(height: 2), Divider(height: 2),
@ -363,7 +374,8 @@ class _SettingsState extends State<Settings>
SlideIntro(goto: Goto.settings))), SlideIntro(goto: Goto.settings))),
contentPadding: contentPadding:
EdgeInsets.symmetric(horizontal: 25.0), EdgeInsets.symmetric(horizontal: 25.0),
leading: Icon(LineIcons.columns_solid), leading: Icon(LineIcons.columns_solid,
color: Colors.blueGrey),
title: Text(s.settingsAppIntro), title: Text(s.settingsAppIntro),
), ),
Divider(height: 2), Divider(height: 2),