From 9e96ea43436d5ed200c57d6b229cddf9bdf9e55a Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周一, 10 2月 2025 18:06:41 +0800 Subject: [PATCH] make demo a GUI application in CMake --- examples/mainwindow/dark-style.qss | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/mainwindow/dark-style.qss b/examples/mainwindow/dark-style.qss index ef77219..09f32ab 100644 --- a/examples/mainwindow/dark-style.qss +++ b/examples/mainwindow/dark-style.qss @@ -1,11 +1,13 @@ /* Window bar */ QWK--WindowBar[bar-active=true] { - background-color: #3C3C3C; + /*background-color: #3C3C3C;*/ + background-color: transparent; } QWK--WindowBar[bar-active=false] { - background-color: #505050; + /*background-color: #505050;*/ + background-color: transparent; } @@ -37,7 +39,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 +49,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 { @@ -142,12 +144,12 @@ /* Window */ -MainWindow[custom-style=true] { - background-color: transparent; +MainWindow { + background-color: #1E1E1E; } -MainWindow[custom-style=false] { - background-color: #1E1E1E; +MainWindow[custom-style=true] { + background-color: transparent; } QWidget#clock-widget { -- Gitblit v1.9.1