Correct the blue filter entity type selector on web
This commit is contained in:
parent
3049880432
commit
bc9ba7807a
|
|
@ -476,7 +476,10 @@ class _AppBottomBarState extends State<AppBottomBar> {
|
|||
onPressed: _onColumnsPressed,
|
||||
child: Text(
|
||||
localization.columns,
|
||||
style: TextStyle(color: state.linkColor),
|
||||
style: TextStyle(
|
||||
color: state.prefState.enableDarkMode
|
||||
? Colors.white
|
||||
: Colors.black),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
|
|
|||
|
|
@ -664,6 +664,8 @@ class _EntityFilter extends StatelessWidget {
|
|||
? state.accentColor
|
||||
: Theme.of(context).cardColor;
|
||||
|
||||
print('enableDarkMode: ${state.prefState.enableDarkMode} + hasAccentColor: ${state.hasAccentColor}');
|
||||
|
||||
return Material(
|
||||
color: backgroundColor,
|
||||
child: AnimatedContainer(
|
||||
|
|
@ -709,22 +711,22 @@ class _EntityFilter extends StatelessWidget {
|
|||
),
|
||||
actions: [
|
||||
PopupMenuButton<EntityType>(
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
routeEntityType == filterEntityType
|
||||
? localization.overview
|
||||
: '${localization.lookup(routeEntityType.plural)}',
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: state.prefState.enableDarkMode ||
|
||||
state.hasAccentColor
|
||||
? Colors.white
|
||||
: Theme.of(context).accentColor),
|
||||
),
|
||||
SizedBox(width: 4),
|
||||
Icon(Icons.arrow_drop_down),
|
||||
],
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
routeEntityType == filterEntityType
|
||||
? localization.overview
|
||||
: '${localization.lookup(routeEntityType.plural)}',
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: state.headerTextColor),
|
||||
),
|
||||
SizedBox(width: 4),
|
||||
Icon(Icons.arrow_drop_down),
|
||||
],
|
||||
),
|
||||
),
|
||||
initialValue: routeEntityType,
|
||||
onSelected: (EntityType value) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue