forked from firka/firka
settings: fix icons for SettingsBoolean and SettingsDouble
This commit is contained in:
@@ -68,12 +68,20 @@ class SettingsStore {
|
||||
"settings_header": SettingsHeader(0, l10n.s_ag, always),
|
||||
"settings_padding": SettingsPadding(0, 23, always),
|
||||
|
||||
"bell_delay": SettingsDouble(bellRing, null, null,
|
||||
l10n.s_ag_bell_delay, 0, 0, 120, 0, always),
|
||||
"bell_delay": SettingsDouble(
|
||||
bellRing,
|
||||
FirkaIconType.majesticons,
|
||||
Majesticon.bellSolid,
|
||||
l10n.s_ag_bell_delay,
|
||||
0,
|
||||
0,
|
||||
120,
|
||||
0,
|
||||
always),
|
||||
"rounding": SettingsSubGroup(
|
||||
0,
|
||||
null,
|
||||
null,
|
||||
FirkaIconType.majesticons,
|
||||
Majesticon.ruler2Solid,
|
||||
l10n.s_ag_rounding,
|
||||
LinkedHashMap.of({
|
||||
"1": SettingsDouble(rounding1, null, null, l10n.s_ag_r1,
|
||||
|
||||
@@ -135,6 +135,15 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
|
||||
widgets.add(GestureDetector(
|
||||
child: FirkaCard(left: [
|
||||
item.iconType != null
|
||||
? Row(
|
||||
children: [
|
||||
FirkaIconWidget(item.iconType!, item.iconData!,
|
||||
color: appStyle.colors.accent),
|
||||
SizedBox(width: 4),
|
||||
],
|
||||
)
|
||||
: SizedBox(),
|
||||
Text(item.title,
|
||||
style: appStyle.fonts.B_16SB
|
||||
.apply(color: appStyle.colors.textPrimary))
|
||||
@@ -153,6 +162,15 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
if (item is SettingsBoolean) {
|
||||
widgets.add(FirkaCard(
|
||||
left: [
|
||||
item.iconType != null
|
||||
? Row(
|
||||
children: [
|
||||
FirkaIconWidget(item.iconType!, item.iconData!,
|
||||
color: appStyle.colors.accent),
|
||||
SizedBox(width: 4),
|
||||
],
|
||||
)
|
||||
: SizedBox(),
|
||||
Text(item.title,
|
||||
style: appStyle.fonts.B_16SB
|
||||
.apply(color: appStyle.colors.textPrimary))
|
||||
|
||||
Reference in New Issue
Block a user