mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-01-23 21:18:42 -06:00
@@ -18,22 +18,24 @@ namespace hex {
|
||||
}
|
||||
|
||||
View::subscribeEvent(Events::SettingsChanged, [](auto) {
|
||||
int theme = ContentRegistry::Settings::getSettingsData()["hex.builtin.setting.interface"]["hex.builtin.setting.interface.color"];
|
||||
auto theme = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color");
|
||||
|
||||
switch (theme) {
|
||||
default:
|
||||
case 0: /* Dark theme */
|
||||
imnodes::StyleColorsDark();
|
||||
break;
|
||||
case 1: /* Light theme */
|
||||
imnodes::StyleColorsLight();
|
||||
break;
|
||||
case 2: /* Classic theme */
|
||||
imnodes::StyleColorsClassic();
|
||||
break;
|
||||
if (theme.has_value()) {
|
||||
switch (static_cast<int>(theme.value())) {
|
||||
default:
|
||||
case 0: /* Dark theme */
|
||||
imnodes::StyleColorsDark();
|
||||
break;
|
||||
case 1: /* Light theme */
|
||||
imnodes::StyleColorsLight();
|
||||
break;
|
||||
case 2: /* Classic theme */
|
||||
imnodes::StyleColorsClassic();
|
||||
break;
|
||||
}
|
||||
|
||||
imnodes::GetStyle().flags = imnodes::StyleFlags(imnodes::StyleFlags_NodeOutline | imnodes::StyleFlags_GridLines);
|
||||
}
|
||||
|
||||
imnodes::GetStyle().flags = imnodes::StyleFlags(imnodes::StyleFlags_NodeOutline | imnodes::StyleFlags_GridLines);
|
||||
});
|
||||
|
||||
View::subscribeEvent(Events::FileLoaded, [this](auto) {
|
||||
|
||||
Reference in New Issue
Block a user