From 59d732cb48f22cb6f0da41c3f391c767db4c84a4 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Thu, 15 Jul 2021 21:59:22 +0800 Subject: [PATCH] =?UTF-8?q?cmake=20=E4=BF=AE=E6=94=B9=E5=8E=BB=E9=99=A4css?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 +-- css/QssTitleBar.css | 35 ++++++++++++++++++----------------- css/qss.css | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 429a88e..586a7da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,7 @@ aux_source_directory(${CMAKE_CURRENT_LIST_DIR} FORMS) set(QsswraperSource ${DIRSRCS}) list(APPEND SOURCES ${QsswraperSource}) -set(QsswraperQrc "${CMAKE_CURRENT_LIST_DIR}/qss.qrc") -list(APPEND RESOURCES ${QsswraperQrc}) + set(QsswraperUI "${CMAKE_CURRENT_LIST_DIR}/forms/qsstoast.ui") list(APPEND QsswraperUI "${CMAKE_CURRENT_LIST_DIR}/forms/process.ui") diff --git a/css/QssTitleBar.css b/css/QssTitleBar.css index aac2bc4..38a2841 100644 --- a/css/QssTitleBar.css +++ b/css/QssTitleBar.css @@ -1,26 +1,27 @@ QWidget#qssTitleBar{ color: white; - background: rgb(51,101,177); + background: black; border: 0px; margin: 0px; + height: 30px; } QWidget#qssTitleBar > QPushButton#titlebaricon{ background: rgb(51,101,177); width: 25px; - height:25px; + height: 30px; } QWidget#qssTitleBar > QPushButton#titlebarclosebtn{ image: url(":/qss/icon/btn_close_down.svg"); - background: rgb(51,101,177); - width: 25px; - height:25px; + background: black; + height: 30px; + height: 30px; margin-left: 1px; } QWidget#qssTitleBar >QPushButton#titlebarmaxbtn{ - background: rgb(51,101,177); - width: 25px; - height:25px; +background: black; + height: 30px; + height: 30px; margin-left: 1px; image: url(":/qss/icon/btn_max_normal.svg"); @@ -30,9 +31,9 @@ QWidget#qssTitleBar >QPushButton#titlebarclosebtn:enabled:hover{ } QWidget#qssTitleBar >QPushButton#titlebarminbtn{ image: url(":/qss/icon/btn_mini_down.svg"); - background: rgb(51,101,177); - width: 25px; - height:25px; + background: black; + width: 30px; + height: 30px; margin-left: 1px; } QWidget#qssTitleBar >QPushButton#titlebarminbtn:enabled:hover{ @@ -40,9 +41,9 @@ QWidget#qssTitleBar >QPushButton#titlebarminbtn:enabled:hover{ } QWidget#qssTitleBar >QPushButton#titlebarrestorebtn{ image: url(":/qss/icon/btn_max_normal.svg"); - background: rgb(187, 212, 238); - width: 25px; - height:25px; + background: black; + width: 30px; + height: 30px; margin-left: 1px; margin-right: 2px; } @@ -50,7 +51,7 @@ QWidget#qssTitleBar >QPushButton#titlebarrestorebtn:enabled:hover{ background: rgb(187, 212, 238); } QWidget#qssTitleBar >QPushButton#btn_serial:!enabled { - background: rgb(180, 180, 180); + background: black; color: white; } QWidget#qssTitleBar >QPushButton#titlebarmaxbtn:enabled:hover{ @@ -58,7 +59,7 @@ QWidget#qssTitleBar >QPushButton#titlebarmaxbtn:enabled:hover{ } QWidget#qssTitleBar > QLabel#title{ color: white; - font-size: 17px; - font-family:'黑体', Courier, monospace; + font-size: 25px; + font-family:"微软雅黑"; } diff --git a/css/qss.css b/css/qss.css index 094c9a8..5cc1a80 100644 --- a/css/qss.css +++ b/css/qss.css @@ -11,7 +11,7 @@ QMainWindow{ QMainWindow::title{ text-align: right; /* align the text to the left */ - background: rgb(7,71,166); + background: black; padding-left: 5px; }