From 9b1599d82e86d2d0463b60fe6fa61f94be50f983 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周二, 05 12月 2023 14:48:52 +0800
Subject: [PATCH] port some more code (for os < win10)

---
 examples/mainwindow/mainwindow.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp
index 65c4b12..7246fdd 100644
--- a/examples/mainwindow/mainwindow.cpp
+++ b/examples/mainwindow/mainwindow.cpp
@@ -54,11 +54,17 @@
         return menuBar;
     }();
 
+    static const auto buttonStyleSheet = QLatin1String{ "QPushButton{color:black;};QPushButton:hover{background-color:black;color:white;}" };
+
     auto iconButton = new QPushButton("I");
+    iconButton->setStyleSheet(buttonStyleSheet);
     auto minButton = new QPushButton("鈥�");
+    minButton->setStyleSheet(buttonStyleSheet);
     auto maxButton = new QPushButton("馃棖");
+    maxButton->setStyleSheet(buttonStyleSheet);
     maxButton->setCheckable(true);
     auto closeButton = new QPushButton("鉁�");
+    closeButton->setStyleSheet(buttonStyleSheet);
 
     auto windowBar = new QWK::WindowBar();
     windowBar->setIconButton(iconButton);

--
Gitblit v1.9.1