summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2026-03-18 13:32:51 +0000
committerGreg Roach <greg@subaqua.co.uk>2026-03-18 13:32:51 +0000
commit0a5ef79412ff95f494e2782f339d542cf2286f8f (patch)
tree19a39b4d86ae2ec6479807749a0be93ef7250b03 /app
parente46bf5dfd52270f3519094b02afbb8975be23f44 (diff)
downloadwebtrees-0a5ef79412ff95f494e2782f339d542cf2286f8f.tar.gz
webtrees-0a5ef79412ff95f494e2782f339d542cf2286f8f.tar.bz2
webtrees-0a5ef79412ff95f494e2782f339d542cf2286f8f.zip
Bootstrap color scheme can be either fixed (light/dark) or auto (#5338)
Diffstat (limited to 'app')
-rw-r--r--app/Module/MinimalTheme.php4
-rw-r--r--app/Module/ModuleThemeInterface.php2
-rw-r--r--app/Module/ModuleThemeTrait.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/app/Module/MinimalTheme.php b/app/Module/MinimalTheme.php
index a16f07e692..59b3411ef4 100644
--- a/app/Module/MinimalTheme.php
+++ b/app/Module/MinimalTheme.php
@@ -46,8 +46,8 @@ class MinimalTheme extends AbstractModule implements ModuleThemeInterface
];
}
- public function supportsDarkTheme(): bool
+ public function bootstrapColorScheme(): string
{
- return true;
+ return 'auto';
}
}
diff --git a/app/Module/ModuleThemeInterface.php b/app/Module/ModuleThemeInterface.php
index 736ba0757d..d5065ec9c6 100644
--- a/app/Module/ModuleThemeInterface.php
+++ b/app/Module/ModuleThemeInterface.php
@@ -69,5 +69,5 @@ interface ModuleThemeInterface extends ModuleInterface
*/
public function stylesheets(): array;
- public function supportsDarkTheme(): bool;
+ public function bootstrapColorScheme(): string;
}
diff --git a/app/Module/ModuleThemeTrait.php b/app/Module/ModuleThemeTrait.php
index 21b869584e..5b04df4508 100644
--- a/app/Module/ModuleThemeTrait.php
+++ b/app/Module/ModuleThemeTrait.php
@@ -513,8 +513,8 @@ trait ModuleThemeTrait
return [];
}
- public function supportsDarkTheme(): bool
+ public function bootstrapColorScheme(): string
{
- return false;
+ return 'light';
}
}