Skip to content
Snippets Groups Projects
Commit a8d06d63 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Correct style for non-collapsible group header

parent 922a3f8e
No related branches found
No related tags found
1 merge request!2058GUI instrument editor: detector section made more compact
...@@ -30,9 +30,6 @@ void installGroup(QGroupBox* groupBox) ...@@ -30,9 +30,6 @@ void installGroup(QGroupBox* groupBox)
{ {
auto* label = new QLabel(groupBox); auto* label = new QLabel(groupBox);
label->setObjectName("GroupBoxToggler"); label->setObjectName("GroupBoxToggler");
if (appSettings->currentStyle() == ApplicationSettings::Style::native)
label->setStyleSheet(
"QLabel { border: none; text-align: left; font: bold; padding: 5px}");
label->setText(groupBox->title()); label->setText(groupBox->title());
label->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::MinimumExpanding); label->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
......
...@@ -146,6 +146,11 @@ QGroupBox::title{ ...@@ -146,6 +146,11 @@ QGroupBox::title{
} }
QLabel {
padding: 2px;
}
LayerForm { LayerForm {
margin-top:0px; margin-top:0px;
...@@ -390,7 +395,9 @@ QTabWidget::tab-bar ...@@ -390,7 +395,9 @@ QTabWidget::tab-bar
} }
QToolButton{border: none;} QToolButton{
border: none;
}
QToolButton::menu-arrow{ QToolButton::menu-arrow{
width:0px; width:0px;
} }
...@@ -400,23 +407,28 @@ QToolButton::menu-indicator{ ...@@ -400,23 +407,28 @@ QToolButton::menu-indicator{
QToolButton#ViewSelectionButton QToolButton#ViewSelectionButton
{ {
border: none; border: none;
color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop : 0 #153b4c, stop : 1 #347a9c); color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop : 0 #153b4c, stop : 1 #347a9c);
} }
QToolButton#ViewSelectionButton:pressed QToolButton#ViewSelectionButton:pressed
{ {
color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #97a8b0, stop: 1 #dae7ed); color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #97a8b0, stop: 1 #dae7ed);
} }
QToolButton#ViewSelectionButton:hover QToolButton#ViewSelectionButton:hover
{ {
color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #254b5c, stop: 1 #448aac); color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #254b5c, stop: 1 #448aac);
} }
QToolButton#ViewSelectionButton:checked QToolButton#ViewSelectionButton:checked
{ {
color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop : 0 #2b899c, stop : 1 #2abdda); color: white;
background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop : 0 #2b899c, stop : 1 #2abdda);
} }
QToolButton#ViewSelectionButton:disabled QToolButton#ViewSelectionButton:disabled
{ {
color: dimgray; background-color: transparent; color: dimgray;
background-color: transparent;
border-right: 1px solid rgba(100,100,100,25%); border-right: 1px solid rgba(100,100,100,25%);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment