Skip to content
Snippets Groups Projects
Commit ca38c231 authored by TALBI Oussama's avatar TALBI Oussama
Browse files

Update dark theme - button style + colors

parent c24bedc7
No related branches found
No related tags found
1 merge request!1Dev
/*
COLOR_DARK = #191919
COLOR_MEDIUM = #353535
COLOR_MEDLIGHT = #5A5A5A
COLOR_LIGHT = #DDDDDD
COLOR_ACCENT = #3D7848
*/
* { * {
background: #191919; background: #191919;
color: #DDDDDD; color: #DDDDDD;
border: 1px solid #5A5A5A; border: 1px solid #5A5A5A;
} }
QWidget::item:selected { /* menu */
background: #3D7848; QMenuBar {
background-color: #002470;
color: white;
} }
QCheckBox, QRadioButton { /* menu items */
border: none; QMenuBar::item {
padding: 2px 20px 2px 20px;
border: 1px solid transparent;
} }
QRadioButton::indicator, QCheckBox::indicator { QMenuBar::item:selected {
width: 13px; border-color: rgb(48, 83, 136);
height: 13px; background: #3859a1;
} }
QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked { QMenuBar::item:pressed {
border: 1px solid #5A5A5A; background: #2f477a;
background: none;
} }
QRadioButton::indicator:unchecked:hover, QCheckBox::indicator:unchecked:hover { /* boxes */
border: 1px solid #DDDDDD; #_filesSelector {
border-bottom-right-radius: 10px;
margin-bottom: 5px;
} }
QRadioButton::indicator::checked, QCheckBox::indicator::checked { #_filesSelected {
border: 1px solid #5A5A5A; border-top-right-radius: 10px;
background: #5A5A5A; border-bottom-right-radius: 10px;
margin-bottom: 15px;
} }
QRadioButton::indicator:checked:hover, QCheckBox::indicator:checked:hover { #_toolbox {
border: 1px solid #DDDDDD; border-bottom-left-radius: 10px;
background: #DDDDDD; border-top-left-radius: 10px;
margin-bottom: 5px;
} }
QGroupBox { /* buttons */
margin-top: 6px; #_add_selectable_element {
border-radius: 5px;
border: 1px;
border-color: #085a00;
border-style: inset;
min-height: 20px;
padding-bottom: 2px;
padding-top: 2px;
margin-bottom: 20px;
}
#_add_selectable_element:hover {
background-color: #272727;
border-radius: 5px;
border: 2px;
border-color: #0ea800;
border-style: inset;
}
#_remove_selectable_element {
border-radius: 5px;
border: 1px;
border-color: #790909;
border-style: inset;
min-height: 20px;
padding-bottom: 2px;
padding-top: 2px;
margin-bottom: 20px;
}
#_remove_selectable_element:hover {
background-color: #272727;
border-radius: 5px;
border: 2px;
border-color: #cf0000;
border-style: inset;
} }
QGroupBox::title { #_testButton {
top: -7px; color: rgb(255, 255, 255);
left: 7px; border-radius: 5px;
min-height: 20px;
font-size: 15px;
padding-bottom: 4px;
margin-top: 5px;
margin-bottom: 5px;
margin-right: 15px;
margin-left: 15px;
border: 1px;
border-color: #3a3a3a;
border-style: outset;
}
#_testButton:hover {
background-color: #c2c2c2;
color: rgb(0, 0, 0);
} }
/* scrollbar */
QScrollBar { QScrollBar {
border: 1px solid #5A5A5A; border: 1px solid #5A5A5A;
background: #191919; background: #191919;
...@@ -131,36 +178,7 @@ QScrollBar::add-page, QScrollBar::sub-page { ...@@ -131,36 +178,7 @@ QScrollBar::add-page, QScrollBar::sub-page {
background: none; background: none;
} }
QAbstractButton:hover { /* image container */
background: #353535;
}
QAbstractButton:pressed {
background: #5A5A5A;
}
/* hover menu elements */
QAbstractItemView {
show-decoration-selected: 1;
selection-background-color: #3D7848;
selection-color: #DDDDDD;
alternate-background-color: #353535;
}
QHeaderView {
border: 1px solid #5A5A5A;
}
QHeaderView::section {
background: #191919;
border: 1px solid #5A5A5A;
padding: 4px;
}
QHeaderView::section:selected, QHeaderView::section::checked {
background: #353535;
}
QTableView { QTableView {
gridline-color: #5A5A5A; gridline-color: #5A5A5A;
} }
...@@ -170,7 +188,7 @@ QTabBar { ...@@ -170,7 +188,7 @@ QTabBar {
} }
QTabBar::tab { QTabBar::tab {
border-radius: 0px; border-top-right-radius: 4px;
padding: 4px; padding: 4px;
margin: 4px; margin: 4px;
} }
...@@ -179,38 +197,7 @@ QTabBar::tab:selected { ...@@ -179,38 +197,7 @@ QTabBar::tab:selected {
background: #353535; background: #353535;
} }
QComboBox::down-arrow { /**/
border: 1px solid #5A5A5A;
background: #353535;
}
QComboBox::drop-down {
border: 1px solid #5A5A5A;
background: #353535;
}
QComboBox::down-arrow {
width: 3px;
height: 3px;
border: 1px solid #5A5A5A;
}
QAbstractSpinBox {
padding-right: 15px;
}
QAbstractSpinBox::up-button, QAbstractSpinBox::down-button {
border: 1px solid #5A5A5A;
background: #353535;
subcontrol-origin: border;
}
QAbstractSpinBox::up-arrow, QAbstractSpinBox::down-arrow {
width: 3px;
height: 3px;
border: 1px solid #5A5A5A;
}
QSlider { QSlider {
border: none; border: none;
} }
...@@ -241,47 +228,19 @@ QSlider::handle:vertical { ...@@ -241,47 +228,19 @@ QSlider::handle:vertical {
} }
QSlider::add-page:vertical, QSlider::sub-page:horizontal { QSlider::add-page:vertical, QSlider::sub-page:horizontal {
background: #3D7848; background: #111381;
} }
QSlider::sub-page:vertical, QSlider::add-page:horizontal { QSlider::sub-page:vertical, QSlider::add-page:horizontal {
background: #353535; background: #353535;
} }
QLabel { /**/
border: none;
}
QProgressBar { QProgressBar {
text-align: center; text-align: center;
} }
QProgressBar::chunk { QProgressBar::chunk {
width: 1px; width: 1px;
background-color: #3D7848; background-color: #0e1875;
}
QMenu::separator {
background: #353535;
}
#_filesSelector {
border-radius: 0px 0px 10px 0px;
border-bottom-right-radius: 10px;
} }
#_filesSelected {
margin-top: 5px;
border-top-right-radius: 10px;
}
#_toolbox {
border-bottom-left-radius: 10px;
}
/* tous les boutons */
/*
QPushButton {}
QPushButton:hover {}
QPushButton:pressed {}
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment