mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Fixed style for floating QDockWidgets
This commit is contained in:
@@ -217,8 +217,8 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CInfoArea::paintEvent(QPaintEvent *event)
|
void CInfoArea::paintEvent(QPaintEvent *event)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
CStyleSheetUtility::useStyleSheetInDerivedWidget(this, QStyle::PE_FrameWindow);
|
||||||
CStyleSheetUtility::useStyleSheetInDerivedWidget(this);
|
QMainWindow::paintEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoArea::keyPressEvent(QKeyEvent *event)
|
void CInfoArea::keyPressEvent(QKeyEvent *event)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ there is no opacity with background image, so we need semitransparent images
|
|||||||
use -- instead of :: for namespaces
|
use -- instead of :: for namespaces
|
||||||
|
|
||||||
Used dynamic properties
|
Used dynamic properties
|
||||||
frameless (infobar.qss)
|
frameless (infobar.qss , here)
|
||||||
**/
|
**/
|
||||||
|
|
||||||
/** Main window **/
|
/** Main window **/
|
||||||
@@ -18,15 +18,20 @@ QMainWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** required when dock widget is floating **/
|
/** required when dock widget is floating **/
|
||||||
|
/** background-image not working on QDockWidget, so I use direct children **/
|
||||||
#sw_MainMiddle QDockWidget {
|
#sw_MainMiddle QDockWidget {
|
||||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** required when info area is floating **/
|
#sw_MainMiddle QDockWidget > QWidget {
|
||||||
BlackGui--CInfoArea {
|
|
||||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
|
||||||
background-color: black;
|
background-color: black;
|
||||||
|
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** required when info area is not floating **/
|
||||||
|
BlackGui--CInfoArea {
|
||||||
|
background: black; /** background is background color here **/
|
||||||
|
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** fix scroll areas **/
|
/** fix scroll areas **/
|
||||||
@@ -43,10 +48,11 @@ QAbstractScrollArea #qw_RemarksGenerator {
|
|||||||
|
|
||||||
/** in log component **/
|
/** in log component **/
|
||||||
QAbstractScrollArea #pg_StatusPageMessages { background-color: black; }
|
QAbstractScrollArea #pg_StatusPageMessages { background-color: black; }
|
||||||
QAbstractScrollArea #pg_StatusPageConsole { background-color: black; }
|
QAbstractScrollArea #pg_StatusPageConsole { background-color: black; }
|
||||||
|
|
||||||
/** main GUI parts **/
|
/** main GUI parts **/
|
||||||
|
|
||||||
|
/** style when main window is frameless **/
|
||||||
#wi_CentralWidgetOutside[frameless="true"] {
|
#wi_CentralWidgetOutside[frameless="true"] {
|
||||||
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
||||||
background-color: darkslategray;
|
background-color: darkslategray;
|
||||||
|
|||||||
Reference in New Issue
Block a user