cmake 修改去除css支持

qt6
zcy 2021-07-15 21:59:22 +08:00
parent ea8e182a25
commit 59d732cb48
3 changed files with 20 additions and 20 deletions

View File

@ -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")

View File

@ -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:"微软雅黑";
}

View File

@ -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;
}