From bdc57c6ec9b08f74ca65a06b8496fbaa3268c5fd Mon Sep 17 00:00:00 2001 From: Dylan Liu <mentalflow@ourdocs.cn> Date: 周六, 04 5月 2024 20:51:20 +0800 Subject: [PATCH] Fix macOS title bar buttons not displaying properly. --- examples/mainwindow/dark-style.qss | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/mainwindow/dark-style.qss b/examples/mainwindow/dark-style.qss index 095b900..e01c0dc 100644 --- a/examples/mainwindow/dark-style.qss +++ b/examples/mainwindow/dark-style.qss @@ -37,7 +37,7 @@ QWK--WindowBar>QAbstractButton#min-button:hover, QWK--WindowBar>QAbstractButton#min-button:pressed { - background-color: rgba(0, 0, 0, 15%); + background-color: rgba(255, 255, 255, 15%); } QWK--WindowBar>QAbstractButton#max-button { @@ -47,7 +47,7 @@ QWK--WindowBar>QAbstractButton#max-button:hover, QWK--WindowBar>QAbstractButton#max-button:pressed { - background-color: rgba(0, 0, 0, 15%); + background-color: rgba(255, 255, 255, 15%); } QWK--WindowBar>QAbstractButton#close-button { @@ -146,6 +146,10 @@ background-color: #1E1E1E; } +MainWindow[custom-style=true] { + background-color: transparent; +} + QWidget#clock-widget { font-size: 75px; color: #FEFEFE; -- Gitblit v1.9.1