Skip to content

Commit

Permalink
fix: apply contrast color to header elements
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jul 1, 2024
1 parent 4588959 commit 497dcd4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/talk/renderer/DesktopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default {
height: 50px;
box-sizing: border-box;
margin-bottom: -50px;
color: #FFF;
color: var(--color-header-contrast);
user-select: none;
}

Expand Down
9 changes: 9 additions & 0 deletions src/talk/renderer/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@
:focus-visible {
outline-color: var(--color-main-text);
}

#header {
/*
Adjusting of text and icons appearing on Nextcloud header to contrast with.
Nextcloud (28-29) server has a workaround with '--background-image-color-text' variable.
Starting from Nextcloud 30 server has '--color-background-plain-text' variable.
*/
--color-header-contrast: var(--color-background-plain-text, var(--background-image-color-text, #ffffff))
}
2 changes: 1 addition & 1 deletion src/talk/renderer/components/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const reload = () => window.location.reload()
type="tertiary-no-background"
container="body">
<template #icon>
<MdiMenu :size="20" />
<MdiMenu :size="20" fill-color="var(--color-header-contrast)" />
</template>

<NcActionLink :href="talkWebLink" target="_blank">
Expand Down

0 comments on commit 497dcd4

Please sign in to comment.