done icon color changer in settings
This commit is contained in:
parent
6ed89b2a1e
commit
14e5614adc
@ -109,7 +109,7 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_colorsTabController = TabController(length: 5, vsync: this);
|
_colorsTabController = TabController(length: 6, vsync: this);
|
||||||
_testTabController = TabController(length: 4, vsync: this);
|
_testTabController = TabController(length: 4, vsync: this);
|
||||||
settings = Provider.of<SettingsProvider>(context, listen: false);
|
settings = Provider.of<SettingsProvider>(context, listen: false);
|
||||||
shareProvider = Provider.of<ShareProvider>(context, listen: false);
|
shareProvider = Provider.of<ShareProvider>(context, listen: false);
|
||||||
@ -769,6 +769,12 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
CustomColorMode.accent;
|
CustomColorMode.accent;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 5:
|
||||||
|
setState(() {
|
||||||
|
colorMode =
|
||||||
|
CustomColorMode.icon;
|
||||||
|
});
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
controller: _colorsTabController,
|
controller: _colorsTabController,
|
||||||
@ -796,9 +802,15 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
.accentColor] ??
|
.accentColor] ??
|
||||||
AppColors.of(context)
|
AppColors.of(context)
|
||||||
.text) // idk what else
|
.text) // idk what else
|
||||||
: settings
|
: colorMode ==
|
||||||
.customHighlightColor ??
|
CustomColorMode
|
||||||
unknownColor,
|
.highlight
|
||||||
|
? settings
|
||||||
|
.customHighlightColor ??
|
||||||
|
unknownColor
|
||||||
|
: settings
|
||||||
|
.customIconColor ??
|
||||||
|
unknownColor,
|
||||||
onColorChanged: (c) {
|
onColorChanged: (c) {
|
||||||
setState(() {
|
setState(() {
|
||||||
updateCustomColor(c, false);
|
updateCustomColor(c, false);
|
||||||
@ -821,6 +833,10 @@ class _PremiumCustomAccentColorSettingState
|
|||||||
AppColors.of(context)
|
AppColors.of(context)
|
||||||
.highlight,
|
.highlight,
|
||||||
store: true);
|
store: true);
|
||||||
|
settings.update(
|
||||||
|
customIconColor:
|
||||||
|
const Color(0x00000000),
|
||||||
|
store: true);
|
||||||
} else {
|
} else {
|
||||||
updateCustomColor(c, true);
|
updateCustomColor(c, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user