Skip to content

Commit 9668526

Browse files
authored
Merge pull request #35563 from nextcloud/revert/35315
Revert "Fix border color contrast"
2 parents 8a1ce0f + 3db3d75 commit 9668526

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

apps/theming/css/default.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
--color-loading-dark: #444444;
3131
--color-box-shadow-rgb: 77,77,77;
3232
--color-box-shadow: rgba(var(--color-box-shadow-rgb), 0.5);
33-
--color-border: #949494;
34-
--color-border-dark: #808080;
33+
--color-border: #ededed;
34+
--color-border-dark: #dbdbdb;
3535
--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';
3636
--default-font-size: 15px;
3737
--animation-quick: 100ms;
@@ -55,21 +55,21 @@
5555
--background-invert-if-bright: invert(100%);
5656
--background-image-invert-if-bright: no;
5757
--primary-invert-if-bright: no;
58-
--color-primary: #006aa3;
58+
--color-primary: #00639a;
5959
--color-primary-default: #0082c9;
6060
--color-primary-text: #ffffff;
61-
--color-primary-hover: #3287b5;
62-
--color-primary-light: #e5f0f5;
63-
--color-primary-light-text: #002a41;
64-
--color-primary-light-hover: #dbe5ea;
61+
--color-primary-hover: #3282ae;
62+
--color-primary-light: #e5eff4;
63+
--color-primary-light-text: #00273d;
64+
--color-primary-light-hover: #dbe4e9;
6565
--color-primary-text-dark: #ededed;
66-
--color-primary-element: #006aa3;
66+
--color-primary-element: #00639a;
6767
--color-primary-element-default-hover: #329bd3;
6868
--color-primary-element-text: #ffffff;
69-
--color-primary-element-hover: #3287b5;
70-
--color-primary-element-light: #e5f0f5;
71-
--color-primary-element-light-text: #002a41;
72-
--color-primary-element-light-hover: #dbe5ea;
69+
--color-primary-element-hover: #3282ae;
70+
--color-primary-element-light: #e5eff4;
71+
--color-primary-element-light-text: #00273d;
72+
--color-primary-element-light-hover: #dbe4e9;
7373
--color-primary-element-text-dark: #ededed;
7474
--gradient-primary-background: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
7575
--image-background-default: url('/apps/theming/img/background/kamil-porembinski-clouds.jpg');

apps/theming/lib/Service/BackgroundService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class BackgroundService {
4646
// true when the background is bright and need dark icons
4747
public const THEMING_MODE_DARK = 'dark';
4848
public const DEFAULT_COLOR = '#0082c9';
49-
public const DEFAULT_ACCESSIBLE_COLOR = '#006aa3';
49+
public const DEFAULT_ACCESSIBLE_COLOR = '#00639a';
5050

5151
public const BACKGROUND_SHIPPED = 'shipped';
5252
public const BACKGROUND_CUSTOM = 'custom';

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public function getCSSVariables(): array {
8989
'--color-box-shadow' => $colorBoxShadow,
9090
'--color-box-shadow-rgb' => $colorBoxShadowRGB,
9191

92-
'--color-border' => $this->util->lighten($colorMainBackground, 30),
93-
'--color-border-dark' => $this->util->lighten($colorMainBackground, 38),
92+
'--color-border' => $this->util->lighten($colorMainBackground, 7),
93+
'--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
9494

9595
'--background-invert-if-dark' => 'invert(100%)',
9696
'--background-invert-if-bright' => 'no',

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public function getCSSVariables(): array {
155155
'--color-box-shadow-rgb' => $colorBoxShadowRGB,
156156
'--color-box-shadow' => "rgba(var(--color-box-shadow-rgb), 0.5)",
157157

158-
'--color-border' => $this->util->darken($colorMainBackground, 42),
159-
'--color-border-dark' => $this->util->darken($colorMainBackground, 50),
158+
'--color-border' => $this->util->darken($colorMainBackground, 7),
159+
'--color-border-dark' => $this->util->darken($colorMainBackground, 14),
160160

161161
'--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'",
162162
'--default-font-size' => '15px',

0 commit comments

Comments
 (0)