diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-08-17 21:38:33 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-08-19 17:07:28 +0200 |
commit | d02a92e870448c20d22d3ed1939c8d2e3edc6542 (patch) | |
tree | 35ea010781f7a8b78619f82075151771edd04ca8 /apps/dashboard/lib | |
parent | 5661775568e1ade06531b90f3825ff650f861eca (diff) | |
download | nextcloud-server-d02a92e870448c20d22d3ed1939c8d2e3edc6542.tar.gz nextcloud-server-d02a92e870448c20d22d3ed1939c8d2e3edc6542.zip |
WIP: Start off with attribution for shipped backgrounds
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/lib')
-rw-r--r-- | apps/dashboard/lib/Service/BackgroundService.php | 53 |
1 files changed, 43 insertions, 10 deletions
diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php index d4de491aeaa..2b59bef65d9 100644 --- a/apps/dashboard/lib/Service/BackgroundService.php +++ b/apps/dashboard/lib/Service/BackgroundService.php @@ -36,17 +36,50 @@ use OCP\IConfig; class BackgroundService { + const THEMING_MODE_LIGHT = 'light'; + const THEMING_MODE_DARK = 'dark'; + const SHIPPED_BACKGROUNDS = [ - 'anatoly-mikhaltsov-butterfly-wing-scale.jpg', - 'bernie-cetonia-aurata-take-off-composition.jpg', - 'dejan-krsmanovic-ribbed-red-metal.jpg', - 'eduardo-neves-pedra-azul.jpg', - 'european-space-agency-barents-bloom.jpg', - 'european-space-agency-namib-desert.jpg', - 'hannes-fritz-flippity-floppity.jpg', - 'hannes-fritz-roulette.jpg', - 'hannes-fritz-sea-spray.jpg', - 'kamil-porembinski-clouds.jpg', + 'anatoly-mikhaltsov-butterfly-wing-scale.jpg' => [ + 'attribution' => 'Butterfly', + 'attribution_url' => 'https://', + ], + 'bernie-cetonia-aurata-take-off-composition.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'dejan-krsmanovic-ribbed-red-metal.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'eduardo-neves-pedra-azul.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'european-space-agency-barents-bloom.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'european-space-agency-namib-desert.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'hannes-fritz-flippity-floppity.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'hannes-fritz-roulette.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'hannes-fritz-sea-spray.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ], + 'kamil-porembinski-clouds.jpg' => [ + 'attribution' => '', + 'attribution_url' => '', + ] ]; public function __construct(IRootFolder $rootFolder, IAppData $appData, IConfig $config, $userId) { |