Formatted QSS (style sheet)

This commit is contained in:
Klaus Basan
2014-02-07 04:01:28 +01:00
parent 27db22cb44
commit ec3e8d496b
2 changed files with 378 additions and 338 deletions

View File

@@ -33,334 +33,335 @@
<string notr="true">/** http://qt-project.org/doc/qt-4.8/stylesheet-examples.html **/ <string notr="true">/** http://qt-project.org/doc/qt-4.8/stylesheet-examples.html **/
QWidget { QWidget {
background-color: black; background-color: black;
font: bold 10px; font: bold 10px;
color: white; /** font **/ color: white; /** font **/
} }
QProgressBar { QProgressBar {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
padding: 0px; padding: 0px;
height: 16px; height: 16px;
} }
QProgressBar::chunk { QProgressBar::chunk {
background-color: darkblue; background-color: darkblue;
width: 10px; width: 10px;
margin: 0.5px; margin: 0.5px;
} }
#wi_CentralWidgetOutside { #wi_CentralWidgetOutside {
/** there is no opacity with background image, so we need semitransparent images **/ /** there is no opacity with background image, so we need semitransparent images **/
/** background-image: url(:/blackgui/icons/titaniumtexture.jpg) **/ /** background-image: url(:/blackgui/icons/titaniumtexture.jpg) **/
/** border: 2px solid green; **/ /** border: 2px solid green; **/
/** border-radius: 20px; **/ /** border-radius: 20px; **/
background-color: darkslategray; background-color: darkslategray;
margin: 0px; margin: 0px;
padding: 5px; padding: 5px;
} }
#fr_CentralFrameInside { #fr_CentralFrameInside {
background-color: darkslategray; background-color: darkslategray;
margin: 5px; margin: 5px;
} }
#wi_MainKeypadArea { #wi_MainKeypadArea {
background-color: darkslategray; background-color: darkslategray;
} }
#gb_AtcStationsOnlineInfo { #gb_AtcStationsOnlineInfo {
border-style: none; border-style: none;
} }
#sw_MainMiddle { #sw_MainMiddle {
padding: 3px; padding: 3px;
border: 0px; border: 0px;
border-radius: 10px; border-radius: 10px;
} }
#sw_MainMiddle QPushButton { #sw_MainMiddle QPushButton {
font-family: arial-rounded; font-family: arial-rounded;
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
border-style: none; border-style: none;
border-radius:3px; border-radius:3px;
color: yellow; color: yellow;
padding: 3px; padding: 3px;
} }
/* No style for Dial /* No style for Dial
#sw_MainMiddel QDial { #sw_MainMiddel QDial {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
} }
*/ */
#wi_MainKeypadArea QPushButton { #wi_MainKeypadArea QPushButton {
font-family: arial-rounded; font-family: arial-rounded;
background-color: black; background-color: black;
border-style: solid; border-style: solid;
border-width:1px; border-width:1px;
border-radius:6px; border-radius:6px;
border-color: green; border-color: green;
max-height:20px; max-height:20px;
min-width:60px; min-width:60px;
min-height:20px; min-height:20px;
} }
#wi_MainKeypadAreaWindow { #wi_MainKeypadAreaWindow {
background-color: darkslategray; background-color: darkslategray;
} }
#le_CommandLineInput { #le_CommandLineInput {
margin-bottom: 5px; margin-bottom: 5px;
padding: 3px; padding: 3px;
border-radius: 5px; border-radius: 5px;
} }
QTabWidget::pane { /* The tab widget frame */ QTabWidget::pane { /* The tab widget frame */
border: none; border: none;
} }
QTabWidget::tab-bar { QTabWidget::tab-bar {
left: 5px; /* move to the right by 5px */ left: 5px; /* move to the right by 5px */
} }
QTabBar::tab { QTabBar::tab {
border: 1px solid green; border: 1px solid green;
border-top-left-radius: 6px; border-top-left-radius: 6px;
border-top-right-radius: 6px; border-top-right-radius: 6px;
min-width: 30px; min-width: 30px;
padding: 2px; padding: 2px;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
margin-right: 3px; margin-right: 3px;
} }
QTabBar::tab::selected { QTabBar::tab::selected {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
} }
QLabel { QLabel {
background: transparent; background: transparent;
} }
QLineEdit { QLineEdit {
background: black; background: black;
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
} }
QLineEdit[readOnly=&quot;true&quot;] { QLineEdit[readOnly=&quot;true&quot;] {
background: black; background: black;
} }
QCheckBox { QCheckBox {
color: white; /** font **/ color: white; /** font **/
border: 0px solid green; border: 0px solid green;
background: transparent; background: transparent;
} }
QTextEdit { QTextEdit {
border: 1px solid green; border: 1px solid green;
background: transparent; background: transparent;
border-radius: 5px; border-radius: 5px;
} }
QPlainTextEdit { QPlainTextEdit {
border: 1px solid green; border: 1px solid green;
background: transparent; background: transparent;
border-radius: 5px; border-radius: 5px;
} }
QGroupBox { QGroupBox {
border: 1px solid green; border: 1px solid green;
} }
QToolBox { QToolBox {
border: none; border: none;
} }
QToolBox::tab { QToolBox::tab {
border: 1px solid green; border: 1px solid green;
border-radius: 6px; border-radius: 6px;
min-width: 30px; min-width: 30px;
padding: 2px; padding: 2px;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
} }
QToolBox::tab::selected { QToolBox::tab::selected {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
} }
QRadioButton { QRadioButton {
font: 10px; font: 10px;
} }
QComboBox { QComboBox {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
padding: 1px; padding: 1px;
background: transparent; background: transparent;
} }
QDoubleSpinBox { QDoubleSpinBox {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
padding: 1px; padding: 1px;
background: transparent; background: transparent;
} }
QMenuBar { QMenuBar {
background: darkslategray; background: darkslategray;
} }
QMenu { QMenu {
background: black; background: black;
margin: 2px; /* some spacing around the menu */ margin: 2px; /* some spacing around the menu */
} }
QMenu::item { QMenu::item {
padding: 2px 25px 1px 20px; padding: 2px 25px 1px 20px;
border: 2px solid darkslategray; /* reserve space for selection border */ border: 2px solid darkslategray; /* reserve space for selection border */
background: black; background: black;
} }
QMenu::item:selected { QMenu::item:selected {
border-color: darkblue; border-color: darkblue;
background: black; background: black;
} }
QMenu::indicator { QMenu::indicator {
background-color: black; background-color: black;
} }
QMenuBar { QMenuBar {
background-color: darkslategray; background-color: darkslategray;
} }
QMenuBar::item { QMenuBar::item {
spacing: 3px; /* spacing between menu bar items */ spacing: 3px; /* spacing between menu bar items */
padding: 1px 4px; padding: 1px 4px;
background: transparent; background: transparent;
border-radius: 4px; border-radius: 4px;
} }
QMenuBar::item:selected { /* when selected using mouse or keyboard */ QMenuBar::item:selected { /* when selected using mouse or keyboard */
background: black; background: black;
} }
QMenuBar::item:pressed { QMenuBar::item:pressed {
background: black; background: black;
} }
QScrollBar:horizontal { QScrollBar:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: slategray; background: slategray;
height: 10px; height: 10px;
margin: 0px 5px 0 5px; margin: 0px 5px 0 5px;
} }
QScrollBar:vertical { QScrollBar:vertical {
border: 2px solid gray; border: 2px solid gray;
background: slategray; background: slategray;
width: 10px; width: 10px;
margin: 5px 0 5px 0; margin: 5px 0 5px 0;
} }
QScrollBar::handle:horizontal { QScrollBar::handle:horizontal {
background: black; background: black;
min-width: 15px; min-width: 15px;
} }
QScrollBar::handle:vertical { QScrollBar::handle:vertical {
background: black; background: black;
min-height: 15px; min-height: 15px;
} }
QScrollBar::add-line:horizontal { QScrollBar::add-line:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
width: 5px; width: 5px;
subcontrol-position: right; subcontrol-position: right;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::sub-line:horizontal { QScrollBar::sub-line:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
width: 5px; width: 5px;
subcontrol-position: left; subcontrol-position: left;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::add-line:vertical { QScrollBar::add-line:vertical {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
height: 5px; height: 5px;
subcontrol-position: bottom; subcontrol-position: bottom;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::sub-line:vertical { QScrollBar::sub-line:vertical {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
height: 5px; height: 5px;
subcontrol-position: top; subcontrol-position: top;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QHeaderView::section { QHeaderView::section {
border: 1px solid blue; border: 1px solid blue;
background-color: darkslategray; background-color: darkslategray;
padding: 1px; padding: 1px;
margin: 0px; margin: 0px;
} }
QTableView { QTableView {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
background-color: black; background-color: black;
alternate-background-color: darkslategray; alternate-background-color: darkslategray;
selection-background-color: blue; selection-background-color: blue;
margin-left: 2px; margin-left: 2px;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
padding:0; padding:0;
} }
QSlider::groove:horizontal { QSlider::groove:horizontal {
border: 1px solid gray; border: 1px solid gray;
height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: darkslategray; background: darkslategray;
} }
QSlider::handle:horizontal { QSlider::handle:horizontal {
background: lightgray; background: lightgray;
border: 1px solid darkslategra; border: 1px solid darkslategra;
width: 18px; width: 18px;
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
border-radius: 3px; border-radius: 3px;
} }
QSizeGrip { QSizeGrip {
image: url(:/blackgui/icons/resize.png); image: url(:/blackgui/icons/resize.png);
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
QStatusBar { QStatusBar {
background: darkslategray; background: darkslategray;
} }
QStatusBar::item { QStatusBar::item {
border: none; border: none;
} }
QStatusBar QLabel { QStatusBar QLabel {
border: none; border: none;
}</string> }
</string>
</property> </property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonIconOnly</enum> <enum>Qt::ToolButtonIconOnly</enum>

View File

@@ -1,292 +1,331 @@
/** http://qt-project.org/doc/qt-4.8/stylesheet-examples.html **/ /** http://qt-project.org/doc/qt-4.8/stylesheet-examples.html **/
QWidget { QWidget {
background-color: black; background-color: black;
font: bold 10px; font: bold 10px;
color: white; /** font **/ color: white; /** font **/
} }
QStatusBar { QProgressBar {
background-color: darkslategray; border: 1px solid green;
border-radius: 5px;
text-align: center;
padding: 0px;
height: 16px;
}
QProgressBar::chunk {
background-color: darkblue;
width: 10px;
margin: 0.5px;
} }
#wi_CentralWidgetOutside { #wi_CentralWidgetOutside {
/** there is no opacity with background image, so we need semitransparent images **/ /** there is no opacity with background image, so we need semitransparent images **/
/** background-image: url(:/blackgui/icons/titaniumtexture.jpg) **/ /** background-image: url(:/blackgui/icons/titaniumtexture.jpg) **/
/** border: 2px solid green; **/ /** border: 2px solid green; **/
/** border-radius: 20px; **/ /** border-radius: 20px; **/
background-color: darkslategray; background-color: darkslategray;
margin: 0px; margin: 0px;
padding: 5px; padding: 5px;
} }
#fr_CentralFrameInside { #fr_CentralFrameInside {
background-color: darkslategray; background-color: darkslategray;
margin: 5px; margin: 5px;
} }
#wi_MainKeypadArea { #wi_MainKeypadArea {
background-color: darkslategray; background-color: darkslategray;
} }
#gb_AtcStationsOnlineInfo { #gb_AtcStationsOnlineInfo {
border-style: none; border-style: none;
} }
#sw_MainMiddle { #sw_MainMiddle {
padding: 3px; padding: 3px;
border: 0px; border: 0px;
border-radius: 10px; border-radius: 10px;
} }
#sw_MainMiddle QPushButton { #sw_MainMiddle QPushButton {
font-family: arial-rounded; font-family: arial-rounded;
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
border-style: none; border-style: none;
border-radius:3px; border-radius:3px;
color: yellow; color: yellow;
padding: 3px; padding: 3px;
} }
/* No style for Dial /* No style for Dial
#sw_MainMiddel QDial { #sw_MainMiddel QDial {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
} }
*/ */
#wi_MainKeypadArea QPushButton { #wi_MainKeypadArea QPushButton {
font-family: arial-rounded; font-family: arial-rounded;
background-color: black; background-color: black;
border-style: solid; border-style: solid;
border-width:1px; border-width:1px;
border-radius:6px; border-radius:6px;
border-color: green; border-color: green;
max-height:20px; max-height:20px;
min-width:60px; min-width:60px;
min-height:20px; min-height:20px;
} }
#wi_MainKeypadAreaWindow { #wi_MainKeypadAreaWindow {
background-color: darkslategray; background-color: darkslategray;
} }
#le_CommandLineInput { #le_CommandLineInput {
margin-bottom: 5px; margin-bottom: 5px;
padding: 3px; padding: 3px;
border-radius: 5px; border-radius: 5px;
} }
QTabWidget::pane { /* The tab widget frame */ QTabWidget::pane { /* The tab widget frame */
border: none; border: none;
} }
QTabWidget::tab-bar { QTabWidget::tab-bar {
left: 5px; /* move to the right by 5px */ left: 5px; /* move to the right by 5px */
} }
QTabBar::tab { QTabBar::tab {
border: 1px solid green; border: 1px solid green;
border-top-left-radius: 6px; border-top-left-radius: 6px;
border-top-right-radius: 6px; border-top-right-radius: 6px;
min-width: 30px; min-width: 30px;
padding: 2px; padding: 2px;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
margin-right: 3px; margin-right: 3px;
} }
QTabBar::tab::selected { QTabBar::tab::selected {
background-color: rgba(0, 0, 255, 128); background-color: rgba(0, 0, 255, 128);
} }
QLabel { QLabel {
background: transparent; background: transparent;
} }
QLineEdit { QLineEdit {
background: black; background: black;
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
} }
QLineEdit[readOnly="true"] { QLineEdit[readOnly="true"] {
background: black; background: black;
} }
QCheckBox { QCheckBox {
color: white; /** font **/ color: white; /** font **/
border: 0px solid green; border: 0px solid green;
background: transparent; background: transparent;
} }
QTextEdit { QTextEdit {
border: 1px solid green; border: 1px solid green;
background: transparent; background: transparent;
border-radius: 5px; border-radius: 5px;
} }
QPlainTextEdit { QPlainTextEdit {
border: 1px solid green; border: 1px solid green;
background: transparent; background: transparent;
border-radius: 5px; border-radius: 5px;
} }
QGroupBox { QGroupBox {
border: 1px solid green; border: 1px solid green;
}
QToolBox {
border: none;
}
QToolBox::tab {
border: 1px solid green;
border-radius: 6px;
min-width: 30px;
padding: 2px;
padding-left: 4px;
padding-right: 4px;
}
QToolBox::tab::selected {
background-color: rgba(0, 0, 255, 128);
} }
QRadioButton { QRadioButton {
font: 10px; font: 10px;
} }
QComboBox { QComboBox {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
padding: 1px; padding: 1px;
background: transparent; background: transparent;
} }
QDoubleSpinBox { QDoubleSpinBox {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
padding: 1px; padding: 1px;
background: transparent; background: transparent;
} }
QMenuBar { QMenuBar {
background: darkslategray; background: darkslategray;
} }
QMenu { QMenu {
background: black; background: black;
margin: 2px; /* some spacing around the menu */ margin: 2px; /* some spacing around the menu */
} }
QMenu::item { QMenu::item {
padding: 2px 25px 1px 20px; padding: 2px 25px 1px 20px;
border: 2px solid darkslategray; /* reserve space for selection border */ border: 2px solid darkslategray; /* reserve space for selection border */
background: black; background: black;
} }
QMenu::item:selected { QMenu::item:selected {
border-color: darkblue; border-color: darkblue;
background: black; background: black;
} }
QMenu::indicator { QMenu::indicator {
background-color: black; background-color: black;
} }
QMenuBar { QMenuBar {
background-color: darkslategray; background-color: darkslategray;
} }
QMenuBar::item { QMenuBar::item {
spacing: 3px; /* spacing between menu bar items */ spacing: 3px; /* spacing between menu bar items */
padding: 1px 4px; padding: 1px 4px;
background: transparent; background: transparent;
border-radius: 4px; border-radius: 4px;
} }
QMenuBar::item:selected { /* when selected using mouse or keyboard */ QMenuBar::item:selected { /* when selected using mouse or keyboard */
background: black; background: black;
} }
QMenuBar::item:pressed { QMenuBar::item:pressed {
background: black; background: black;
} }
QScrollBar:horizontal { QScrollBar:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: slategray; background: slategray;
height: 10px; height: 10px;
margin: 0px 5px 0 5px; margin: 0px 5px 0 5px;
} }
QScrollBar:vertical { QScrollBar:vertical {
border: 2px solid gray; border: 2px solid gray;
background: slategray; background: slategray;
width: 10px; width: 10px;
margin: 5px 0 5px 0; margin: 5px 0 5px 0;
} }
QScrollBar::handle:horizontal { QScrollBar::handle:horizontal {
background: black; background: black;
min-width: 15px; min-width: 15px;
} }
QScrollBar::handle:vertical { QScrollBar::handle:vertical {
background: black; background: black;
min-height: 15px; min-height: 15px;
} }
QScrollBar::add-line:horizontal { QScrollBar::add-line:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
width: 5px; width: 5px;
subcontrol-position: right; subcontrol-position: right;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::sub-line:horizontal { QScrollBar::sub-line:horizontal {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
width: 5px; width: 5px;
subcontrol-position: left; subcontrol-position: left;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::add-line:vertical { QScrollBar::add-line:vertical {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
height: 5px; height: 5px;
subcontrol-position: bottom; subcontrol-position: bottom;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QScrollBar::sub-line:vertical { QScrollBar::sub-line:vertical {
border: 2px solid gray; border: 2px solid gray;
background: blue; background: blue;
height: 5px; height: 5px;
subcontrol-position: top; subcontrol-position: top;
subcontrol-origin: margin; subcontrol-origin: margin;
} }
QHeaderView::section { QHeaderView::section {
border: 1px solid blue; border: 1px solid blue;
background-color: darkslategray; background-color: darkslategray;
padding: 1px; padding: 1px;
margin: 0px; margin: 0px;
} }
QTableView { QTableView {
border: 1px solid green; border: 1px solid green;
border-radius: 5px; border-radius: 5px;
background-color: black; background-color: black;
alternate-background-color: darkslategray; alternate-background-color: darkslategray;
selection-background-color: blue; selection-background-color: blue;
margin-left: 2px; margin-left: 2px;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
padding:0; padding:0;
} }
QSlider::groove:horizontal { QSlider::groove:horizontal {
border: 1px solid gray; border: 1px solid gray;
height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: darkslategray; background: darkslategray;
} }
QSlider::handle:horizontal { QSlider::handle:horizontal {
background: lightgray; background: lightgray;
border: 1px solid darkslategra; border: 1px solid darkslategra;
width: 18px; width: 18px;
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
border-radius: 3px; border-radius: 3px;
} }
QSizeGrip { QSizeGrip {
image: url(:/blackgui/icons/resize.png); image: url(:/blackgui/icons/resize.png);
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
QStatusBar {
background: darkslategray;
}
QStatusBar::item {
border: none;
}
QStatusBar QLabel {
border: none;
}