Skip to content

Commit 4d2a9b1

Browse files
committed
Fix border color contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 09345f7 commit 4d2a9b1

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/theming/css/default.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@
5858
--image-background-default: url('/core/img/app-background.jpg');
5959
--color-background-plain: #0082c9;
6060
--primary-invert-if-bright: no;
61-
--color-primary: #00639a;
61+
--color-primary: #006aa3;
6262
--color-primary-default: #0082c9;
6363
--color-primary-text: #ffffff;
6464
--color-primary-hover: #3282ae;
6565
--color-primary-light: #e5eff4;
6666
--color-primary-light-text: #00273d;
6767
--color-primary-light-hover: #dbe4e9;
6868
--color-primary-text-dark: #ededed;
69-
--color-primary-element: #00639a;
69+
--color-primary-element: #006aa3;
7070
--color-primary-element-default-hover: #329bd3;
7171
--color-primary-element-text: #ffffff;
7272
--color-primary-element-hover: #3282ae;

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 = '#00639a';
49+
public const DEFAULT_ACCESSIBLE_COLOR = '#006aa3';
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, 7),
93-
'--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
92+
'--color-border' => $this->util->lighten($colorMainBackground, 30),
93+
'--color-border-dark' => $this->util->lighten($colorMainBackground, 38),
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, 7),
159-
'--color-border-dark' => $this->util->darken($colorMainBackground, 14),
158+
'--color-border' => $this->util->darken($colorMainBackground, 42),
159+
'--color-border-dark' => $this->util->darken($colorMainBackground, 50),
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)