mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(core): app menu icon contrast in dark mode
-e Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
parent
490c6e7c06
commit
bc04903ce6
3 changed files with 6 additions and 7 deletions
|
|
@ -125,10 +125,9 @@ const unreadLabel = computed(() => {
|
|||
&__icon {
|
||||
width: var(--app-item-icon-size);
|
||||
height: var(--app-item-icon-size);
|
||||
// Force the icon to white on the colored circle, then apply the
|
||||
// same vertical alpha gradient (--header-menu-icon-mask) used in
|
||||
// the header so icons read consistently across the design.
|
||||
filter: brightness(0) invert(1);
|
||||
// App icons are bright by default; flip them to dark when the
|
||||
// primary color (circle background) is bright (e.g. white in dark mode).
|
||||
filter: var(--primary-invert-if-bright);
|
||||
mask: var(--header-menu-icon-mask);
|
||||
}
|
||||
|
||||
|
|
|
|||
4
dist/core-main.js
vendored
4
dist/core-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-main.js.map
vendored
2
dist/core-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue