diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-12-03 00:48:49 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-12-03 00:48:49 +0000 |
commit | 3db3d75bb9c168894a0b86bf6497ef356a3ee3cd (patch) | |
tree | c2d65b79c65599e8e1827793b891e67b23cdd905 /apps/theming/lib | |
parent | 835f0ae4decbcdae4ed7439bffd53fcdb0ee9614 (diff) | |
download | nextcloud-server-3db3d75bb9c168894a0b86bf6497ef356a3ee3cd.tar.gz nextcloud-server-3db3d75bb9c168894a0b86bf6497ef356a3ee3cd.zip |
Revert "Fix border color contrast"
This reverts commit a0266d1b1668fb2751c78057ffcfacca6f4b2ae8.
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Service/BackgroundService.php | 2 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 4 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/theming/lib/Service/BackgroundService.php b/apps/theming/lib/Service/BackgroundService.php index 4879ad1cbad..a12d72109da 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 = '#006aa3'; + public const DEFAULT_ACCESSIBLE_COLOR = '#00639a'; public const BACKGROUND_SHIPPED = 'shipped'; public const BACKGROUND_CUSTOM = 'custom'; diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index e43d0c04e98..ecd4c7d3fd6 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, 30), - '--color-border-dark' => $this->util->lighten($colorMainBackground, 38), + '--color-border' => $this->util->lighten($colorMainBackground, 7), + '--color-border-dark' => $this->util->lighten($colorMainBackground, 14), '--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 100d34864fc..1c967cd820e 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, 42), - '--color-border-dark' => $this->util->darken($colorMainBackground, 50), + '--color-border' => $this->util->darken($colorMainBackground, 7), + '--color-border-dark' => $this->util->darken($colorMainBackground, 14), '--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', |