diff --git a/apps/dashboard/css/dashboard.scss b/apps/dashboard/css/dashboard.scss index aade857464b..f8b8ec24037 100644 --- a/apps/dashboard/css/dashboard.scss +++ b/apps/dashboard/css/dashboard.scss @@ -54,55 +54,3 @@ #appmenu li a:focus::before { display: none !important; } - -$has-custom-logo: variable_exists('theming-logo-mime') and $theming-logo-mime != ''; - -body.dashboard--inverted:not(.dashboard--dark) { - // Do not invert the default logo - @if ($has-custom-logo == false) { - $image-logo: url(icon-color-path('logo', 'logo', #ffffff, 1, true)); - #header .logo { - background-image: $image-logo !important; - opacity: 1; - } - } - - #app-dashboard > h2 { - color: #fff; - } - #appmenu li span { - color: #fff; - } - #appmenu svg image { - filter: invert(0); - } - #appmenu .icon-more-white, - .header-right > div:not(#settings) > *:first-child { - filter: invert(1) hue-rotate(180deg); - } -} - -body.dashboard--dark:not(.dashboard--inverted) { - // invert the default logo - @if ($has-custom-logo == false) { - $image-logo: url(icon-color-path('logo', 'logo', #000000, 1, true)); - #header .logo { - background-image: $image-logo !important; - opacity: 1; - } - } - - #app-dashboard > h2 { - color: #000; - } - #appmenu li span { - color: #000; - } - #appmenu svg { - filter: invert(1) hue-rotate(180deg) !important; - } - #appmenu .icon-more-white, - .header-right > div:not(#settings) > *:first-child { - filter: invert(1) hue-rotate(180deg) !important; - } -} diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php index f9bd987bdca..13ad03cf860 100644 --- a/apps/dashboard/lib/Service/BackgroundService.php +++ b/apps/dashboard/lib/Service/BackgroundService.php @@ -40,6 +40,7 @@ use OCP\Lock\LockedException; use OCP\PreConditionNotMetException; class BackgroundService { + // true when the background is bright and need dark icons public const THEMING_MODE_DARK = 'dark'; public const SHIPPED_BACKGROUNDS = [ diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/DashboardApp.vue similarity index 88% rename from apps/dashboard/src/App.vue rename to apps/dashboard/src/DashboardApp.vue index e8a1933287a..46de7b58827 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -16,7 +16,8 @@ @end="saveLayout">
\n\t\t\t\t\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{{ t('dashboard', 'Weather data from Met.no') }},\n\t\t\t\t\t{{ t('dashboard', 'geocoding with Nominatim') }},\n\t\t\t\t\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\n\t\t\t\t
\n\t\t\t\n\t\t\t\t\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t{{ t('dashboard', 'Weather data from Met.no') }},\n\t\t\t\t\t{{ t('dashboard', 'geocoding with Nominatim') }},\n\t\t\t\t\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\n\t\t\t\t
\n\t\t\t