summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-11-22 01:54:07 +0000
committerChristopher Ng <chrng8@gmail.com>2022-11-22 18:42:56 +0000
commita0266d1b1668fb2751c78057ffcfacca6f4b2ae8 (patch)
tree979ba2e9ea2a6421c53b2cf1e74cb2918975cf3f /apps/theming/lib
parent0b21a9ac6f85d46097bee08a1a25a10ba50a94da (diff)
downloadnextcloud-server-a0266d1b1668fb2751c78057ffcfacca6f4b2ae8.tar.gz
nextcloud-server-a0266d1b1668fb2751c78057ffcfacca6f4b2ae8.zip
Fix border color contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Service/BackgroundService.php2
-rw-r--r--apps/theming/lib/Themes/DarkTheme.php4
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/theming/lib/Service/BackgroundService.php b/apps/theming/lib/Service/BackgroundService.php
index 3daac7e7215..d49878b11b0 100644
--- a/apps/theming/lib/Service/BackgroundService.php
+++ b/apps/theming/lib/Service/BackgroundService.php
@@ -46,7 +46,7 @@ class BackgroundService {
// true when the background is bright and need dark icons
public const THEMING_MODE_DARK = 'dark';
public const DEFAULT_COLOR = '#0082c9';
- public const DEFAULT_ACCESSIBLE_COLOR = '#00639a';
+ public const DEFAULT_ACCESSIBLE_COLOR = '#006aa3';
public const SHIPPED_BACKGROUNDS = [
'anatoly-mikhaltsov-butterfly-wing-scale.jpg' => [
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php
index ecd4c7d3fd6..e43d0c04e98 100644
--- a/apps/theming/lib/Themes/DarkTheme.php
+++ b/apps/theming/lib/Themes/DarkTheme.php
@@ -89,8 +89,8 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-box-shadow' => $colorBoxShadow,
'--color-box-shadow-rgb' => $colorBoxShadowRGB,
- '--color-border' => $this->util->lighten($colorMainBackground, 7),
- '--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
+ '--color-border' => $this->util->lighten($colorMainBackground, 30),
+ '--color-border-dark' => $this->util->lighten($colorMainBackground, 38),
'--background-invert-if-dark' => 'invert(100%)',
'--background-invert-if-bright' => 'no',
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 94b71eb9d12..85e437a82e5 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -155,8 +155,8 @@ class DefaultTheme implements ITheme {
'--color-box-shadow-rgb' => $colorBoxShadowRGB,
'--color-box-shadow' => "rgba(var(--color-box-shadow-rgb), 0.5)",
- '--color-border' => $this->util->darken($colorMainBackground, 7),
- '--color-border-dark' => $this->util->darken($colorMainBackground, 14),
+ '--color-border' => $this->util->darken($colorMainBackground, 42),
+ '--color-border-dark' => $this->util->darken($colorMainBackground, 50),
'--font-face' => "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, sans-serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
'--default-font-size' => '15px',