From a0b36925ed4411cea7ac6254d414fc3497aa8edb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 14 Mar 2023 13:19:04 +0100 Subject: [PATCH] fix: Custom styles not being scaled correctly --- lib/libimhex/source/api/theme_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libimhex/source/api/theme_manager.cpp b/lib/libimhex/source/api/theme_manager.cpp index 1410666e9..d60f338c0 100644 --- a/lib/libimhex/source/api/theme_manager.cpp +++ b/lib/libimhex/source/api/theme_manager.cpp @@ -1,4 +1,5 @@ #include +#include #include #include @@ -169,6 +170,8 @@ namespace hex::api { } } } + + ImGui::GetStyle().ScaleAllSizes(ImHexApi::System::getGlobalScale()); } if (theme.contains("image_postfix")) {