Skip to content

Commit 233ae5a

Browse files
authored
Merge pull request #35454 from nextcloud/revert-35346-backport/35315/stable25
[stable25] Revert "[stable25] Fix border color contrast"
2 parents 723278d + 5137af7 commit 233ae5a

5 files changed

Lines changed: 21 additions & 21 deletions

File tree

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;
@@ -58,21 +58,21 @@
5858
--image-background-default: url('/core/img/app-background.jpg');
5959
--color-background-plain: #0082c9;
6060
--primary-invert-if-bright: no;
61-
--color-primary: #006aa3;
61+
--color-primary: #00639a;
6262
--color-primary-default: #0082c9;
6363
--color-primary-text: #ffffff;
64-
--color-primary-hover: #3287b5;
65-
--color-primary-light: #e5f0f5;
66-
--color-primary-light-text: #002a41;
67-
--color-primary-light-hover: #dbe5ea;
64+
--color-primary-hover: #3282ae;
65+
--color-primary-light: #e5eff4;
66+
--color-primary-light-text: #00273d;
67+
--color-primary-light-hover: #dbe4e9;
6868
--color-primary-text-dark: #ededed;
69-
--color-primary-element: #006aa3;
69+
--color-primary-element: #00639a;
7070
--color-primary-element-default-hover: #329bd3;
7171
--color-primary-element-text: #ffffff;
72-
--color-primary-element-hover: #3287b5;
73-
--color-primary-element-light: #e5f0f5;
74-
--color-primary-element-light-text: #002a41;
75-
--color-primary-element-light-hover: #dbe5ea;
72+
--color-primary-element-hover: #3282ae;
73+
--color-primary-element-light: #e5eff4;
74+
--color-primary-element-light-text: #00273d;
75+
--color-primary-element-light-hover: #dbe4e9;
7676
--color-primary-element-text-dark: #ededed;
7777
--gradient-primary-background: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
7878
}

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 SHIPPED_BACKGROUNDS = [
5252
'anatoly-mikhaltsov-butterfly-wing-scale.jpg' => [

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',

tests/acceptance/features/app-theming.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Feature: app-theming
99
# The "eventually" part is not really needed here, as the colour is not
1010
# being animated at this point, but there is no need to create a specific
1111
# step just for this.
12-
And I see that the primary color is eventually "#006aa3"
12+
And I see that the primary color is eventually "#00639a"
1313
And I see that the non-plain background color variable is eventually "#0082c9"
1414
When I set the "Color" parameter in the Theming app to "#C9C9C9"
1515
Then I see that the parameters in the Theming app are eventually saved
16-
And I see that the primary color is eventually "#006aa3"
16+
And I see that the primary color is eventually "#00639a"
1717
And I see that the non-plain background color variable is eventually "#C9C9C9"
1818

1919
Scenario: resetting the color updates the primary color
@@ -23,9 +23,9 @@ Feature: app-theming
2323
And I see that the color selector in the Theming app has loaded
2424
And I set the "Color" parameter in the Theming app to "#C9C9C9"
2525
And I see that the parameters in the Theming app are eventually saved
26-
And I see that the primary color is eventually "#006aa3"
26+
And I see that the primary color is eventually "#00639a"
2727
And I see that the non-plain background color variable is eventually "#C9C9C9"
2828
When I reset the "Color" parameter in the Theming app to its default value
2929
Then I see that the parameters in the Theming app are eventually saved
30-
And I see that the primary color is eventually "#006aa3"
30+
And I see that the primary color is eventually "#00639a"
3131
And I see that the non-plain background color variable is eventually "#0082c9"

0 commit comments

Comments
 (0)