feat: Added support for transparent and blurry window styles

This commit is contained in:
WerWolv
2023-05-22 12:00:35 +02:00
parent 6b28828174
commit f81276f7e3
10 changed files with 96 additions and 10 deletions

View File

@@ -310,6 +310,9 @@
10.0,
10.0
]
},
"imhex": {
"window-blur": 0.0
}
}
}

View File

@@ -310,6 +310,9 @@
10.0,
10.0
]
},
"imhex": {
"window-blur": 0.0
}
}
}

View File

@@ -310,6 +310,9 @@
10.0,
10.0
]
},
"imhex": {
"window-blur": 0.0
}
}
}

View File

@@ -326,6 +326,15 @@ namespace hex::plugin::builtin {
ThemeManager::addStyleHandler("imnodes", ImNodesStyleMap);
}
{
auto &style = ImGui::GetCustomStyle();
const static ThemeManager::StyleMap ImHexStyleMap = {
{ "window-blur", { &style.WindowBlur, 0.0F, 1.0F, true } },
};
ThemeManager::addStyleHandler("imhex", ImHexStyleMap);
}
});
}