Skip to content

Commit 4045895

Browse files
committed
hack: disable dark theme by default
The dark theme doesn't look great when embedded inside OSRD, which has only a light theme.
1 parent 4bf78c0 commit 4045895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/services/ui/ui.interaction.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class UiInteractionService implements OnDestroy {
239239
this.loadUserSettingFromLocalStorage();
240240
if (this.activeTheme === null) {
241241
// detect at initialization
242-
if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) {
242+
if (false && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) {
243243
this.setActiveTheme(new ThemeFachDark(), false);
244244
} else {
245245
this.setActiveTheme(new ThemeFach(), false);

0 commit comments

Comments
 (0)