feat: Implement rich notification settings
This commit is contained in:
parent
d5fe9a257a
commit
ef8638eede
7 changed files with 409 additions and 124 deletions
|
|
@ -64,20 +64,18 @@ class ThemesSettingsState extends State<ThemesSettings> {
|
|||
});
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
L10n.of(context).useAmoledTheme,
|
||||
),
|
||||
trailing: Switch(
|
||||
value: _amoledEnabled,
|
||||
activeColor: Theme.of(context).primaryColor,
|
||||
onChanged: (bool value) {
|
||||
setState(() {
|
||||
_amoledEnabled = value;
|
||||
themeEngine.switchTheme(matrix, _selectedTheme, value);
|
||||
});
|
||||
},
|
||||
),
|
||||
value: _amoledEnabled,
|
||||
activeColor: Theme.of(context).primaryColor,
|
||||
onChanged: (bool value) {
|
||||
setState(() {
|
||||
_amoledEnabled = value;
|
||||
themeEngine.switchTheme(matrix, _selectedTheme, value);
|
||||
});
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue