This commit is contained in:
seb
2026-10-05 01:07:45 +02:00
parent b766769634
commit 4d653304cd
3 changed files with 27 additions and 7 deletions

View File

@@ -14,6 +14,9 @@ import { artikelQueryPath } from './article/artikelQuery';
import { defaultCategoryPath } from './category/categoryRoute';
import { navigationAutomat } from '../automats';
import {
NAV_ITEM_ACTIVE_ACCENT,
NAV_SUB_ACTIVE,
NAV_SUB_ACTIVE_HOVER,
NAV_SURFACE,
} from '../colors';
import { ChatFab, ChatDrawer } from './chat';
@@ -195,12 +198,16 @@ class AppSubNav extends PureComponent {
justifyContent: 'center',
gap: 0.5,
color: active
? theme.palette.primary.main
? theme.nav?.itemActiveAccent || NAV_ITEM_ACTIVE_ACCENT
: theme.palette.text.secondary,
bgcolor: active ? theme.palette.action.selected : 'transparent',
bgcolor: active ? theme.nav?.subActive || NAV_SUB_ACTIVE : 'transparent',
'&:hover': {
bgcolor: theme.palette.action.hover,
color: theme.palette.primary.main,
bgcolor: active
? theme.nav?.subActiveHover || NAV_SUB_ACTIVE_HOVER
: theme.palette.action.hover,
color: active
? theme.nav?.itemActiveAccent || NAV_ITEM_ACTIVE_ACCENT
: theme.palette.primary.main,
},
})}
>