From 9813c54abc7ad4750f44cf0837afd745f4e4b578 Mon Sep 17 00:00:00 2001 From: Piotr Zarzycki Date: Fri, 29 Dec 2023 14:22:54 +0100 Subject: [PATCH] Themes: Switch theme for DevExpress components (reference #52) --- .../controller/startup/prepareView/CommandSwitchTheme.as | 2 ++ .../src/resources/jewel-index-template.html | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/prepareView/CommandSwitchTheme.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/prepareView/CommandSwitchTheme.as index 15f51c3..f69d09c 100644 --- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/prepareView/CommandSwitchTheme.as +++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/prepareView/CommandSwitchTheme.as @@ -26,10 +26,12 @@ package controller.startup.prepareView case Theme.DARK: themeProxy.themeId = loadCSS("resources/themes/" + Theme.DARK + "/defaults.css"); themeProxy.theme = Theme.DARK; + window["DevExpress"].ui.themes.current("generic." + Theme.DARK); break; default: themeProxy.themeId = loadCSS("resources/themes/" + Theme.LIGHT + "/defaults.css"); themeProxy.theme = Theme.LIGHT; + window["DevExpress"].ui.themes.current("generic." + Theme.LIGHT); break; } } diff --git a/Super.Human.Portal_Royale/src/resources/jewel-index-template.html b/Super.Human.Portal_Royale/src/resources/jewel-index-template.html index d5f20a6..1f9bb18 100644 --- a/Super.Human.Portal_Royale/src/resources/jewel-index-template.html +++ b/Super.Human.Portal_Royale/src/resources/jewel-index-template.html @@ -25,8 +25,9 @@ - - + + +