mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-22 02:33:56 +00:00
feat: improve app theming code and add Material You (#58)
This commit is contained in:
@@ -12,8 +12,6 @@ class CustomSwitch extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Color? activeColor = Theme.of(context).colorScheme.tertiary;
|
||||
Color? inactiveColor = Theme.of(context).colorScheme.secondary;
|
||||
return GestureDetector(
|
||||
onTap: () => onChanged(!value),
|
||||
child: SizedBox(
|
||||
@@ -30,7 +28,9 @@ class CustomSwitch extends StatelessWidget {
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(25.0),
|
||||
),
|
||||
color: !value ? activeColor : inactiveColor,
|
||||
color: value
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
AnimatedAlign(
|
||||
|
||||
Reference in New Issue
Block a user