impr: Implement borderless window mode for macOS

This commit is contained in:
WerWolv
2024-02-03 22:39:31 +01:00
parent 3555fc01c5
commit fe3facfc95
5 changed files with 97 additions and 61 deletions

View File

@@ -41,6 +41,8 @@ namespace hex {
}
void Window::setupNativeWindow() {
ImHexApi::System::impl::setBorderlessWindowMode(true);
bool themeFollowSystem = ImHexApi::System::usesSystemThemeDetection();
EventOSThemeChanged::subscribe(this, [themeFollowSystem] {
if (!themeFollowSystem) return;