aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Service
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-29 01:38:23 +0000
committerChristopher Ng <chrng8@gmail.com>2022-10-05 06:19:08 +0000
commit7044191eb69bb1e2aa4c3edaf03ce73c77971793 (patch)
tree6d9d6bb8ed5e17ba8ded049fd521024d4d900b01 /apps/theming/lib/Service
parente962d3fba4430f3a13cda70db9009784fc24112a (diff)
downloadnextcloud-server-7044191eb69bb1e2aa4c3edaf03ce73c77971793.tar.gz
nextcloud-server-7044191eb69bb1e2aa4c3edaf03ce73c77971793.zip
Use brand color for background only and keep accessible color as color primary
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/theming/lib/Service')
-rw-r--r--apps/theming/lib/Service/BackgroundService.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/theming/lib/Service/BackgroundService.php b/apps/theming/lib/Service/BackgroundService.php
index bbf7bde9e5f..0614fe00357 100644
--- a/apps/theming/lib/Service/BackgroundService.php
+++ b/apps/theming/lib/Service/BackgroundService.php
@@ -44,6 +44,8 @@ use OCP\PreConditionNotMetException;
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 = '#00639a';
public const SHIPPED_BACKGROUNDS = [
'anatoly-mikhaltsov-butterfly-wing-scale.jpg' => [
@@ -90,8 +92,7 @@ class BackgroundService {
'kamil-porembinski-clouds.jpg' => [
'attribution' => 'Clouds (Kamil PorembiƄski, CC BY-SA)',
'attribution_url' => 'https://www.flickr.com/photos/paszczak000/8715851521/',
- // Originally #0082c9 but adjusted for accessibility
- 'primary_color' => '#00639a',
+ 'primary_color' => self::DEFAULT_COLOR,
],
'bernard-spragg-new-zealand-fern.jpg' => [
'attribution' => 'New zealand fern (Bernard Spragg, CC0)',