]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add new border color variable for increased contrast
authorChristopher Ng <chrng8@gmail.com>
Fri, 2 Dec 2022 00:58:08 +0000 (00:58 +0000)
committerChristopher Ng <chrng8@gmail.com>
Tue, 13 Dec 2022 23:01:55 +0000 (23:01 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 24ffe328452e0e247017894ea9d49944470fd2bc)

apps/theming/css/default.css
apps/theming/lib/Themes/DarkTheme.php
apps/theming/lib/Themes/DefaultTheme.php

index 0d3f3402fce87cbbee8b2ebe087b46647390a1f2..5e8cd6b985dcb8c15d80191de5f517868413c50b 100644 (file)
@@ -32,6 +32,7 @@
   --color-box-shadow: rgba(var(--color-box-shadow-rgb), 0.5);
   --color-border: #ededed;
   --color-border-dark: #dbdbdb;
+  --color-border-maxcontrast: #949494;
   --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;
   --animation-quick: 100ms;
index ecd4c7d3fd69a117cf4eb203e8b6a634e8910361..588f8f5a8a69e982370c2d07ffb201bf51f4cd0f 100644 (file)
@@ -91,6 +91,7 @@ class DarkTheme extends DefaultTheme implements ITheme {
 
                                '--color-border' => $this->util->lighten($colorMainBackground, 7),
                                '--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
+                               '--color-border-maxcontrast' => $this->util->lighten($colorMainBackground, 30),
 
                                '--background-invert-if-dark' => 'invert(100%)',
                                '--background-invert-if-bright' => 'no',
index 94b71eb9d12a862bb2dcffcf768a5f55f53041fc..167b3c05f625635defaea73c6ff50c64efb3208d 100644 (file)
@@ -157,6 +157,7 @@ class DefaultTheme implements ITheme {
 
                        '--color-border' => $this->util->darken($colorMainBackground, 7),
                        '--color-border-dark' => $this->util->darken($colorMainBackground, 14),
+                       '--color-border-maxcontrast' => $this->util->darken($colorMainBackground, 42),
 
                        '--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',