Simplify style sheet
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
bd60d9d1d2
commit
e5cd434500
|
@ -30,27 +30,23 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">#iconButton, #minimizeButton, #maximizeButton, #closeButton {
|
<string notr="true">#iconButton, #minimizeButton, #maximizeButton, #closeButton {
|
||||||
|
border-style: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-radius: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#minimizeButton:hover, #maximizeButton:hover {
|
#minimizeButton:hover, #maximizeButton:hover {
|
||||||
border-style: none;
|
|
||||||
background-color: #80c7c7c7;
|
background-color: #80c7c7c7;
|
||||||
}
|
}
|
||||||
|
|
||||||
#minimizeButton:pressed, #maximizeButton:pressed {
|
#minimizeButton:pressed, #maximizeButton:pressed {
|
||||||
border-style: none;
|
|
||||||
background-color: #80808080;
|
background-color: #80808080;
|
||||||
}
|
}
|
||||||
|
|
||||||
#closeButton:hover {
|
#closeButton:hover {
|
||||||
border-style: none;
|
|
||||||
background-color: #e81123;
|
background-color: #e81123;
|
||||||
}
|
}
|
||||||
|
|
||||||
#closeButton:pressed {
|
#closeButton:pressed {
|
||||||
border-style: none;
|
|
||||||
background-color: #8c0a15;
|
background-color: #8c0a15;
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -61,27 +61,23 @@ const char g_sDontExtendFrame[] = "WNEF_DO_NOT_EXTEND_FRAME";
|
||||||
|
|
||||||
const QLatin1String g_sSystemButtonsStyleSheet(R"(
|
const QLatin1String g_sSystemButtonsStyleSheet(R"(
|
||||||
#iconButton, #minimizeButton, #maximizeButton, #closeButton {
|
#iconButton, #minimizeButton, #maximizeButton, #closeButton {
|
||||||
|
border-style: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-radius: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#minimizeButton:hover, #maximizeButton:hover {
|
#minimizeButton:hover, #maximizeButton:hover {
|
||||||
border-style: none;
|
|
||||||
background-color: #80c7c7c7;
|
background-color: #80c7c7c7;
|
||||||
}
|
}
|
||||||
|
|
||||||
#minimizeButton:pressed, #maximizeButton:pressed {
|
#minimizeButton:pressed, #maximizeButton:pressed {
|
||||||
border-style: none;
|
|
||||||
background-color: #80808080;
|
background-color: #80808080;
|
||||||
}
|
}
|
||||||
|
|
||||||
#closeButton:hover {
|
#closeButton:hover {
|
||||||
border-style: none;
|
|
||||||
background-color: #e81123;
|
background-color: #e81123;
|
||||||
}
|
}
|
||||||
|
|
||||||
#closeButton:pressed {
|
#closeButton:pressed {
|
||||||
border-style: none;
|
|
||||||
background-color: #8c0a15;
|
background-color: #8c0a15;
|
||||||
}
|
}
|
||||||
)");
|
)");
|
||||||
|
|
Loading…
Reference in New Issue