Update color of selection bar
This commit is contained in:
parent
3dad1cc665
commit
98d517874f
2 changed files with 13 additions and 9 deletions
|
@ -42,12 +42,9 @@ extension CustomColorScheme on ColorScheme {
|
|||
? Color.fromRGBO(238, 238, 238, 0.5)
|
||||
: Color.fromRGBO(48, 48, 48, 0.5);
|
||||
|
||||
Color get iconColor =>
|
||||
brightness == Brightness.light ? Colors.black : Colors.white;
|
||||
|
||||
Color get cancelSelectedButtonColor => brightness == Brightness.light
|
||||
? Color.fromRGBO(238, 238, 238, 1)
|
||||
: Color.fromRGBO(48, 48, 48, 0.5);
|
||||
Color get iconColor => brightness == Brightness.light
|
||||
? Colors.black.withOpacity(0.75)
|
||||
: Colors.white;
|
||||
|
||||
Color get bgColorForQuestions => brightness == Brightness.light
|
||||
? Colors.white
|
||||
|
|
|
@ -167,7 +167,11 @@ class _OverlayWidgetState extends State<OverlayWidget> {
|
|||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.subtitle2
|
||||
.copyWith(fontWeight: FontWeight.w600),
|
||||
.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color:
|
||||
Theme.of(context).colorScheme.iconColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
Row(
|
||||
|
@ -195,11 +199,14 @@ class _OverlayWidgetState extends State<OverlayWidget> {
|
|||
width: 86,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.cancelSelectedButtonColor,
|
||||
.frostyBlurBackdropFilterColor,
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Cancel',
|
||||
style: Theme.of(context).textTheme.subtitle2,
|
||||
style: Theme.of(context).textTheme.subtitle2.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Theme.of(context).colorScheme.iconColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue