Style sheet fix

This commit is contained in:
Klaus Basan
2015-11-26 12:20:34 +01:00
parent a5da201701
commit ff1272e1b8

View File

@@ -1,4 +1,4 @@
/** /*
Resources: Resources:
http://qt-project.org/doc/qt-5.3/stylesheet-examples.html http://qt-project.org/doc/qt-5.3/stylesheet-examples.html
http://web.forret.com/tools/color.asp?RGB=2F4F4F&name=Dark+slate+gray http://web.forret.com/tools/color.asp?RGB=2F4F4F&name=Dark+slate+gray
@@ -9,16 +9,16 @@ Remarks:
Used dynamic properties Used dynamic properties
framelessMainWindow (infobar.qss , here) framelessMainWindow (infobar.qss , here)
**/ */
/** Main window **/ /* Main window */
QMainWindow { QMainWindow {
background-image: url(:/textures/icons/textures/texture-outer.jpg); background-image: url(:/textures/icons/textures/texture-outer.jpg);
background-color: darkslategray; background-color: darkslategray;
} }
/** separator between info areas and rest **/ /* separator between info areas and rest */
/** this hides them **/ /* this hides them */
QMainWindow::separator { QMainWindow::separator {
background: transparent; background: transparent;
width: 0px; /* when vertical */ width: 0px; /* when vertical */
@@ -29,14 +29,14 @@ QMainWindow::separator:hover {
background: transparent; background: transparent;
} }
/** Dialog, sometime main window **/ /* Dialog, sometime main window */
QDialog { QDialog {
background-image: url(:/textures/icons/textures/texture-outer.jpg); background-image: url(:/textures/icons/textures/texture-outer.jpg);
background-color: darkslategray; background-color: darkslategray;
} }
/** separator between info areas and rest **/ /* separator between info areas and rest */
/** this hides them **/ /* this hides them */
QDialog::separator { QDialog::separator {
background: transparent; background: transparent;
width: 0px; /* when vertical */ width: 0px; /* when vertical */
@@ -55,23 +55,23 @@ QFileDialog QToolButton {
background: inherit; background: inherit;
} }
/** /*
Required when dock widget is floating Required when dock widget is floating
1) background-image not working on QDockWidget, so I use direct children for that 1) background-image not working on QDockWidget, so I use direct children for that
2) seems to have only effect as normal (floating) window 2) seems to have only effect as normal (floating) window
3) Borders between this widget and the inner child is the margin in gui.ini 3) Borders between this widget and the inner child is the margin in gui.ini
**/ */
BlackGui--CDockWidgetInfoArea { BlackGui--CDockWidgetInfoArea {
background-color: green; /** I use green here so I can adjust the borders in gui.ini **/ background-color: green; /* I use green here so I can adjust the borders in gui.ini */
} }
BlackGui--CDockWidgetInfoArea > QWidget { BlackGui--CDockWidgetInfoArea > QWidget {
background: black; /** background is background color here **/ background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
} }
/** this is the first widget in the dock area **/ /* this is the first widget in the dock area */
/** all dock widgets shall have this QWidget as container **/ /* all dock widgets shall have this QWidget as container */
BlackGui--CDockWidgetInfoArea[framelessDockWidget="true"] > QWidget > QFrame { BlackGui--CDockWidgetInfoArea[framelessDockWidget="true"] > QWidget > QFrame {
margin: 0px; margin: 0px;
padding: 3px; padding: 3px;
@@ -79,7 +79,7 @@ BlackGui--CDockWidgetInfoArea[framelessDockWidget="true"] > QWidget > QFrame {
border-radius: 10px; border-radius: 10px;
} }
/** fix the menu, which is overridden by the above QWidget **/ /* fix the menu, which is overridden by the above QWidget */
BlackGui--CDockWidgetInfoArea > QMenu { BlackGui--CDockWidgetInfoArea > QMenu {
border: 1px solid darkslategray; /* reserve space for selection border */ border: 1px solid darkslategray; /* reserve space for selection border */
background: lightgray; background: lightgray;
@@ -87,20 +87,20 @@ BlackGui--CDockWidgetInfoArea > QMenu {
padding: 0px; padding: 0px;
} }
/** required when info area is not floating **/ /* required when info area is not floating */
BlackGui--CInfoArea { BlackGui--CInfoArea {
background: black; /** background is background color here **/ background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
} }
BlackGui--COverlayMessages { BlackGui--COverlayMessages {
background: black; /** background is background color here **/ background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
border: 2px solid yellow; border: 2px solid yellow;
border-radius: 10px; border-radius: 10px;
} }
/** /*
QTableView[isShowingLoadIndicator="true"] { QTableView[isShowingLoadIndicator="true"] {
background-image: url(:/preloaders/icons/preloaders/FillingRing64.gif); background-image: url(:/preloaders/icons/preloaders/FillingRing64.gif);
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -111,11 +111,11 @@ QTableView[isShowingLoadIndicator="false"] {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
} }
**/ */
/** Validator bar **/ /* Validator bar */
BlackGui--Editors--CValidationIndicator { BlackGui--Editors--CValidationIndicator {
background: black; /** background is background color here **/ background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
} }
@@ -124,12 +124,17 @@ BlackGui--CPluginConfigWindow {
background: black; background: black;
} }
/** default for buttons **/ /* default for buttons */
QToolButton {
background-color: transparent; /* transparent tool buttons */
border: 0px;
}
QPushButton { QPushButton {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
border-style: 1px solid yellow; border-style: 1px solid yellow;
border-radius:3px; border-radius:3px;
color: yellow; /** font color **/ color: yellow; /* font color */
padding: 0px; padding: 0px;
margin-right: 5px; margin-right: 5px;
min-width:60px; min-width:60px;
@@ -137,7 +142,7 @@ QPushButton {
} }
QPushButton::disabled { QPushButton::disabled {
background-color: rgba(77, 88, 99, 128); /** slated gray if a channel) background-color: rgba(77, 88, 99, 128); /* slated gray if a channel) */
border-style: none; border-style: none;
border-radius: 3px; border-radius: 3px;
color: white; color: white;
@@ -145,11 +150,6 @@ QPushButton::disabled {
margin-right: 5px; margin-right: 5px;
} }
QToolButton {
background-color: transparent; /* transparent tool buttons */
border: 0px;
}
QProgressBar { QProgressBar {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
@@ -213,7 +213,7 @@ QSplitter::handle:pressed {
background-color: rgba(0, 255, 255, 255); background-color: rgba(0, 255, 255, 255);
} }
/** /*
QSplitter::handle:horizontal { QSplitter::handle:horizontal {
width: 1px; width: 1px;
} }
@@ -221,7 +221,7 @@ QSplitter::handle:horizontal {
QSplitter::handle:vertical { QSplitter::handle:vertical {
height: 1px; height: 1px;
} }
**/ */
QLabel { QLabel {
background: transparent; background: transparent;
@@ -238,7 +238,7 @@ QLineEdit[readOnly="true"] {
} }
QCheckBox { QCheckBox {
border: 0px solid green; /** also borders label **/ border: 0px solid green; /* also borders label */
background: transparent; background: transparent;
} }
@@ -283,7 +283,7 @@ QToolBox::tab::!selected {
background-color: rgba(0, 0, 255, 48); background-color: rgba(0, 0, 255, 48);
} }
/** no border on page */ /* no border on page */
QToolBox > QWidget { QToolBox > QWidget {
border: 0px; border: 0px;
} }
@@ -295,7 +295,7 @@ QComboBox {
background: transparent; background: transparent;
} }
/** drop down list **/ /* drop down list */
QComboBox QAbstractItemView { QComboBox QAbstractItemView {
background-color: black; background-color: black;
color: lightgray; color: lightgray;
@@ -325,7 +325,7 @@ QMenuBar {
background-image: url(:/textures/icons/textures/texture-outer.jpg); background-image: url(:/textures/icons/textures/texture-outer.jpg);
background-color: darkslategray; background-color: darkslategray;
padding: 0px 0px 0px 10px; padding: 0px 0px 0px 10px;
margin: 0px 0px 20px 0px; /** removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? **/ margin: 0px 0px 20px 0px; /* removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? */
} }
QMenuBar::item { QMenuBar::item {
@@ -357,7 +357,7 @@ QScrollArea {
/* have to set background on widget in scroll area, cannot set directly on scroll area */ /* have to set background on widget in scroll area, cannot set directly on scroll area */
QScrollArea QWidget { QScrollArea QWidget {
background: black; /** background is background color here **/ background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg); background-image: url(:/textures/icons/textures/texture-inner.jpg);
} }
@@ -420,7 +420,7 @@ QScrollBar::sub-line:vertical {
QHeaderView::section { QHeaderView::section {
border: 1px solid black; border: 1px solid black;
background-color: darkslategray; background-color: darkslategray;
color: white; /** font **/ color: white; /* font */
padding: 1px; padding: 1px;
margin: 0px; margin: 0px;
} }