Correct the blue filter entity type selector on web

This commit is contained in:
Hillel Coren 2020-08-26 13:37:35 +03:00
parent 3049880432
commit bc9ba7807a
2 changed files with 22 additions and 17 deletions

View File

@ -476,7 +476,10 @@ class _AppBottomBarState extends State<AppBottomBar> {
onPressed: _onColumnsPressed, onPressed: _onColumnsPressed,
child: Text( child: Text(
localization.columns, localization.columns,
style: TextStyle(color: state.linkColor), style: TextStyle(
color: state.prefState.enableDarkMode
? Colors.white
: Colors.black),
), ),
) )
else else

View File

@ -664,6 +664,8 @@ class _EntityFilter extends StatelessWidget {
? state.accentColor ? state.accentColor
: Theme.of(context).cardColor; : Theme.of(context).cardColor;
print('enableDarkMode: ${state.prefState.enableDarkMode} + hasAccentColor: ${state.hasAccentColor}');
return Material( return Material(
color: backgroundColor, color: backgroundColor,
child: AnimatedContainer( child: AnimatedContainer(
@ -709,6 +711,8 @@ class _EntityFilter extends StatelessWidget {
), ),
actions: [ actions: [
PopupMenuButton<EntityType>( PopupMenuButton<EntityType>(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Row( child: Row(
children: [ children: [
Text( Text(
@ -717,15 +721,13 @@ class _EntityFilter extends StatelessWidget {
: '${localization.lookup(routeEntityType.plural)}', : '${localization.lookup(routeEntityType.plural)}',
style: TextStyle( style: TextStyle(
fontSize: 17, fontSize: 17,
color: state.prefState.enableDarkMode || color: state.headerTextColor),
state.hasAccentColor
? Colors.white
: Theme.of(context).accentColor),
), ),
SizedBox(width: 4), SizedBox(width: 4),
Icon(Icons.arrow_drop_down), Icon(Icons.arrow_drop_down),
], ],
), ),
),
initialValue: routeEntityType, initialValue: routeEntityType,
onSelected: (EntityType value) { onSelected: (EntityType value) {
if (value == filterEntityType) { if (value == filterEntityType) {