summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-11 23:15:33 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-11 23:15:33 +0200
commit0a5d459c998a22b2d4f7b63fa369d785d9da5158 (patch)
treef3fe4c4251dbfc0ecf8ede7166d7a9e3c255b369
parentcf5bf3036dee4527b93c5bb8e43c0ed3a216e15a (diff)
downloadnextcloud-server-0a5d459c998a22b2d4f7b63fa369d785d9da5158.tar.gz
nextcloud-server-0a5d459c998a22b2d4f7b63fa369d785d9da5158.zip
Disable translucency on high contrast themes
Fix #34514 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--apps/theming/lib/Themes/DarkHighContrastTheme.php2
-rw-r--r--apps/theming/lib/Themes/HighContrastTheme.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/DarkHighContrastTheme.php b/apps/theming/lib/Themes/DarkHighContrastTheme.php
index f219c3b3e87..4937e5f6899 100644
--- a/apps/theming/lib/Themes/DarkHighContrastTheme.php
+++ b/apps/theming/lib/Themes/DarkHighContrastTheme.php
@@ -62,7 +62,7 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
$this->generatePrimaryVariables($colorMainBackground, $colorMainText),
[
'--color-main-background' => $colorMainBackground,
- '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), .1)',
+ '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), 1)',
'--color-main-text' => $colorMainText,
'--color-background-dark' => $this->util->lighten($colorMainBackground, 30),
diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php
index fda02058446..f88020e82a2 100644
--- a/apps/theming/lib/Themes/HighContrastTheme.php
+++ b/apps/theming/lib/Themes/HighContrastTheme.php
@@ -62,7 +62,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
$this->generatePrimaryVariables($colorMainBackground, $colorMainText),
[
'--color-main-background' => $colorMainBackground,
- '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), .1)',
+ '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), 1)',
'--color-main-text' => $colorMainText,
'--color-background-dark' => $this->util->darken($colorMainBackground, 30),