mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
feat: Added support for transparent and blurry window styles
This commit is contained in:
@@ -353,6 +353,24 @@ namespace ImGui {
|
||||
return c;
|
||||
}
|
||||
|
||||
float GetCustomStyleFloat(ImGuiCustomStyle idx) {
|
||||
auto &customData = *static_cast<ImHexCustomData *>(GImGui->IO.UserData);
|
||||
|
||||
switch (idx) {
|
||||
case ImGuiCustomStyle_WindowBlur:
|
||||
return customData.styles.WindowBlur;
|
||||
default:
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
ImVec2 GetCustomStyleVec2(ImGuiCustomStyle idx) {
|
||||
switch (idx) {
|
||||
default:
|
||||
return { };
|
||||
}
|
||||
}
|
||||
|
||||
void StyleCustomColorsDark() {
|
||||
auto &colors = static_cast<ImHexCustomData *>(GImGui->IO.UserData)->Colors;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user