From 12f8b52ff1c06cd8d6e7d1f8d8d13391729a76fb Mon Sep 17 00:00:00 2001 From: alexpdev Date: Sun, 10 Dec 2023 23:47:36 -0800 Subject: [PATCH 1/3] update --- QStyler/styler.py | 9 +- QStyler/themes/bluechrome.json | 675 ++++++++++++++ QStyler/themes/coffee.json | 95 ++ QStyler/themes/lighter orange.json | 1364 ++++++++++++++++++++++++++++ QStyler/themes/tab-gaps.json | 268 ++++++ 5 files changed, 2409 insertions(+), 2 deletions(-) create mode 100644 QStyler/themes/bluechrome.json create mode 100644 QStyler/themes/coffee.json create mode 100644 QStyler/themes/lighter orange.json create mode 100644 QStyler/themes/tab-gaps.json diff --git a/QStyler/styler.py b/QStyler/styler.py index bbcd2c2..4d73785 100644 --- a/QStyler/styler.py +++ b/QStyler/styler.py @@ -28,7 +28,7 @@ from PySide6.QtWidgets import (QApplication, QComboBox, QFileDialog, QHBoxLayout, QLabel, QListWidget, QListWidgetItem, QSlider, QTextEdit, QToolBar, - QVBoxLayout, QWidget) + QVBoxLayout, QWidget, QLineEdit) from QStyler.dialog import NewDialog, RenameDialog from QStyler.utils import (ParsingError, QssParser, apply_stylesheet, get_icon, @@ -57,6 +57,7 @@ def __init__(self, parent=None): self.red_layout = QHBoxLayout() self.green_layout = QHBoxLayout() self.blue_layout = QHBoxLayout() + self.line_edit = QLineEdit() self.red_label = QLabel("R") self.green_label = QLabel("G") self.blue_label = QLabel("B") @@ -74,12 +75,14 @@ def __init__(self, parent=None): self.blue_layout.addWidget(self.blue_label) self.blue_layout.addWidget(self.blue_slider) self.layout.addWidget(self.label) + self.layout.addWidget(self.line_edit) self.layout.addLayout(self.red_layout) self.layout.addLayout(self.green_layout) self.layout.addLayout(self.blue_layout) self.blue_slider.setRange(0, 255) self.green_slider.setRange(0, 255) self.red_slider.setRange(0, 255) + self.line_edit.setReadOnly(True) self.blue_slider.valueChanged.connect(self.change_color) self.red_slider.valueChanged.connect(self.change_color) self.green_slider.valueChanged.connect(self.change_color) @@ -98,6 +101,7 @@ def change_color(self, _): red_value = self.red_slider.value() color_val = [f"{i:02x}" for i in [red_value, green_value, blue_value]] color_string = "#" + "".join(color_val) + self.line_edit.setText(color_string) self.label.setStyleSheet(f"background-color: {color_string};") self.colorChanged.emit(color_string) @@ -495,13 +499,14 @@ def insert_color(self, color): cursor.MoveOperation.Left, cursor.MoveMode.KeepAnchor, e - s ) cursor.deleteChar() + self.editor.insertPlainText(color + ";") elif result2: # pragma: nocover s, e = second + result2.start(), pos cursor.movePosition( cursor.MoveOperation.Left, cursor.MoveMode.KeepAnchor, e - s ) cursor.deleteChar() - self.editor.insertPlainText(color + ";") + self.editor.insertPlainText(color + ";") def live_update(self): """Update theme in real time.""" diff --git a/QStyler/themes/bluechrome.json b/QStyler/themes/bluechrome.json new file mode 100644 index 0000000..3c1e147 --- /dev/null +++ b/QStyler/themes/bluechrome.json @@ -0,0 +1,675 @@ +{ + "*": { + "font-size": "14px", + "color": "#d5d5d5", + "font-family": "\"\u9ed1\u4f53\"" + }, + "QWidget": { + "color": "#eff0f1", + "background-color": "#1d2938", + "selection-background-color": "#3daee9", + "selection-color": "#eff0f1", + "background-clip": "border", + "border-image": "none", + "outline": "30" + }, + "QDockWidget": { + "border": "1px solid lightgray" + }, + "QDockWidget::title": { + "text-align": "left", + "background": "#2c3e55", + "padding-left": "2px" + }, + "QDockWidget::title:focus": { + "text-align": "left", + "background": "#0152E0", + "padding-left": "5px" + }, + "QAbstractItemView": { + "alternate-background-color": "#2e4259", + "color": "#eff0f1", + "border": "1px solid 3A3939", + "border-radius": "2px" + }, + "QTabWidget:focus": { + "border": "none" + }, + "QCheckBox:focus": { + "border": "none" + }, + "QRadioButton:focus": { + "border": "none" + }, + "QSlider:focus": { + "border": "none" + }, + "QLabel": { + "background": "transparent" + }, + "QFrame": { + "border-color": "#1d2938", + "border-width": "1px", + "border-radius": "3px" + }, + "QPushButton": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #5B5F5F, stop: 0.5 #0C2436, stop: 1.0 #27405A)", + "border-style": "outset", + "border-width": "1px", + "border-radius": "5px", + "border-color": "#11223F", + "padding": "1px" + }, + "QToolButton": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #5B5F5F, stop: 0.5 #0C2436, stop: 1.0 #27405A)", + "border-style": "outset", + "border-width": "1px", + "border-radius": "5px", + "border-color": "#11223F", + "padding": "1px" + }, + "QPushButton::hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QToolButton::hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QPushButton::pressed": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #969B9C, stop: 0.5 #16354B, stop: 1.0 #244F76)", + "border-color": "#11505C" + }, + "QToolButton::pressed": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #969B9C, stop: 0.5 #16354B, stop: 1.0 #244F76)", + "border-color": "#11505C" + }, + "QPushButton::disabled": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1d2938, stop: 0.5 #1d2938, stop: 1.0 #1d2938)", + "color": "#76797C" + }, + "QToolButton::disabled": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1d2938, stop: 0.5 #1d2938, stop: 1.0 #1d2938)", + "color": "#76797C" + }, + "QAbstractSpinBox": { + "padding": "2px 5px 2px 5px", + "border": "1px solid #32435E", + "border-radius": "2px", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)" + }, + "QAbstractSpinBox::hover": { + "border-color": "#5D8B9E" + }, + "QAbstractSpinBox:up-button": { + "background-color": "transparent", + "subcontrol-origin": "border", + "subcontrol-position": "center right", + "height": "100%", + "border-left": "1px solid #32435E", + "border-top": "none", + "border-right": "none", + "border-bottom": "none", + "padding-left": "2px", + "padding-right": "2px", + "width": "15px" + }, + "QAbstractSpinBox:down-button": { + "background-color": "transparent", + "subcontrol-origin": "border", + "subcontrol-position": "center left", + "height": "100%", + "border-left": "none", + "border-top": "none", + "border-right": "1px solid #32435E", + "border-bottom": "none", + "padding-left": "2px", + "padding-right": "2px", + "width": "15px" + }, + "QAbstractSpinBox::up-arrow": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::up-arrow:disabled": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::up-arrow:off": { + "width": "10px", + "height": "10px" + }, + "QSpinBox::up-arrow": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::up-arrow:hover": {}, + "QSpinBox::up-arrow:hover": {}, + "QAbstractSpinBox::down-arrow": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::down-arrow:disabled": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::down-arrow:off": { + "width": "10px", + "height": "10px" + }, + "QAbstractSpinBox::down-arrow:hover": {}, + "QDialog QPushButton": { + "min-width": "30px", + "min-height": "23px" + }, + "QDialog QToolButton": { + "min-width": "30px", + "min-height": "23px" + }, + "QLineEdit": { + "border": "1px solid #32435E", + "border-radius": "3px", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)", + "selection-background-color": "#0A246A" + }, + "QTextEdit": { + "border": "1px solid #32435E", + "border-radius": "3px", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)", + "selection-background-color": "#0A246A" + }, + "QLineEdit:disabled": { + "padding": "1px", + "border-style": "solid", + "border": "1px solid #76797C", + "border-radius": "3px", + "color": "#76797C" + }, + "QTextEdit:disabled": { + "padding": "1px", + "border-style": "solid", + "border": "1px solid #76797C", + "border-radius": "3px", + "color": "#76797C" + }, + "QPlainTextEdit:disabled": { + "padding": "1px", + "border-style": "solid", + "border": "1px solid #76797C", + "border-radius": "3px", + "color": "#76797C" + }, + "QAbstractSpinBox:disabled": { + "padding": "1px", + "border-style": "solid", + "border": "1px solid #76797C", + "border-radius": "3px", + "color": "#76797C" + }, + "QLineEdit::hover": { + "border-color": "#5D8B9E" + }, + "QLineEdit[echoMode=\"3\"]": { + "lineedit-password-character": "9679" + }, + "QTabBar::tab": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #292F31, stop: 1 #0C131E)" + }, + "QTabBar::tab:selected": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #113845, stop: 1.0 #15A8FF)" + }, + "QTabBar::tab:hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #113845, stop: 1.0 #0E6F80)" + }, + "#QTabBar::tab:selected": { + "border-color": "#32435E" + }, + "#QTabBar::tab:!selected": {}, + "#QTabBar:tab:first:selected": { + "margin-top": "0" + }, + "QTabBar:tab:last:selected": { + "margin-right": "0" + }, + "QTabBar:tab:only-one": { + "margin": "0" + }, + "QListWidget": { + "border": "1px solid #32435E", + "background": "#1d2938" + }, + "QTreeWidget": { + "border": "1px solid #32435E", + "background": "#1d2938" + }, + "QListWidget::item:hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QTreeView::item:hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QListWidget::item:selected": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #969B9C, stop: 0.5 #16354B, stop: 1.0 #244F76)", + "border-color": "#11505C" + }, + "QTreeView::item:selected": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #969B9C, stop: 0.5 #16354B, stop: 1.0 #244F76)", + "border-color": "#11505C" + }, + "QListWidget::item:selected:!active": { + "border-width": "0px " + }, + "QListWidget::item:selected:active": { + "border-width": "1px" + }, + "QComboBox": { + "border": "1px solid #32435E", + "border-radius": "2px", + "padding": "2px" + }, + "QComboBox::hover": { + "border-color": "#5D8B9E" + }, + "QComboBox:editable": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)" + }, + "QComboBox:!editable": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)" + }, + "QComboBox::drop-down:editable": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F)" + }, + "QComboBox:!editable:on": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F);" + }, + "QComboBox::drop-down:editable:on": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F);" + }, + "padding-top: 3px;padding-left: 4px;": {}, + "QComboBox::drop-down": { + "subcontrol-origin": "padding", + "subcontrol-position": "top right", + "width": "15px", + "border-left-width": "1px", + "border-left-color": "32435E", + "border-bottom-right-radius": "3px" + }, + "QComboBox::down-arrow": {}, + "top: 1px;left: 1px;": {}, + "QComboBox::down-arrow:on": {}, + "QComboBox::down-arrow:hover": {}, + "QComboBox::down-arrow:focus": {}, + "QComboBox QAbstractItemView": { + "border": "2px solid #32435E", + "selection-background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #506B79, stop: 1.0 #0D95A6)", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1d2938, stop: 0.4 #1d2938, stop: 0.5 #1d2938, stop: 1.0 #1d2938)" + }, + "QCheckBox": { + "spacing": "5px" + }, + "QCheckBox:disabled": { + "color": "#76797C" + }, + "QCheckBox::indicator": { + "width": "18px", + "height": "18px" + }, + "QGroupBox::indicator": { + "margin-left": "2px" + }, + "QCheckBox::indicator:unchecked": { + "height": "14px", + "width": "14px", + "border-style": "solid", + "border-width": "1px", + "border-color": "qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(50,67,94), stop:1 rgba(50,67,94))" + }, + "QCheckBox::indicator:unchecked:hover": { + "border": "none" + }, + "QCheckBox::indicator:unchecked:focus": { + "border": "none" + }, + "QCheckBox::indicator:unchecked:pressed": { + "border": "none" + }, + "QGroupBox::indicator:unchecked:hover": { + "border": "none" + }, + "QGroupBox::indicator:unchecked:focus": { + "border": "none" + }, + "QGroupBox::indicator:unchecked:pressed": { + "border": "none" + }, + "QCheckBox::indicator:checked": { + "height": "14px", + "width": "14px", + "border-style": "solid", + "border-width": "1px", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QCheckBox::indicator:checked:hover": { + "border": "none" + }, + "QCheckBox::indicator:checked:focus": { + "border": "none" + }, + "QCheckBox::indicator:checked:pressed": { + "border": "none" + }, + "QGroupBox::indicator:checked:hover": { + "border": "none" + }, + "QGroupBox::indicator:checked:focus": { + "border": "none" + }, + "QGroupBox::indicator:checked:pressed": { + "border": "none" + }, + "QCheckBox::indicator:indeterminate": {}, + "QCheckBox::indicator:indeterminate:focus": {}, + "QCheckBox::indicator:indeterminate:hover": {}, + "QCheckBox::indicator:indeterminate:pressed": {}, + "QCheckBox::indicator:checked:disabled": {}, + "QGroupBox::indicator:checked:disabled": {}, + "QCheckBox::indicator:unchecked:disabled": {}, + "QGroupBox::indicator:unchecked:disabled": {}, + "QMenu": { + "background-color": "#030406", + "border-width": "0px", + "margin": "2px" + }, + "QMenu::item": { + "background-color": "#1D2838", + "padding": "2px 25px 2px 20px", + "border-color": "transparent", + "color": "#858E94" + }, + "QMenu::item:!enabled": { + "background-color": "#1D2838", + "padding": "2px 25px 2px 20px", + "border-color": "transparent", + "color": "#76746C" + }, + "QMenu::item:selected": { + "border-width": "1px", + "border-color": "#516589", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1E293A, stop: 1.0 #2C547E)", + "color": "#E6FFFF" + }, + "background: gray;border: 1px inset gray;position: absolute;top: 1px;right: 1px;bottom: 1px;left: 1px;": {}, + "QMenu::separator": { + "height": "1px", + "background": "#1D99A9" + }, + "QMenu::indicator": { + "width": "13px", + "height": "13px" + }, + "QMenu::indicator:non-exclusive:unchecked": {}, + "QMenu::indicator:non-exclusive:unchecked:selected": {}, + "QMenu::indicator:non-exclusive:checked": {}, + "QMenu::indicator:non-exclusive:checked:selected": {}, + "QMenu::indicator:exclusive:unchecked": {}, + "QMenu::indicator:exclusive:unchecked:selected": {}, + "QMenu::indicator:exclusive:checked": {}, + "QMenu::indicator:exclusive:checked:selected": {}, + "QMenuBar": { + "background-color": "#2c3e55", + "color": "#eff0f1" + }, + "QMenuBar::item": { + "background": "transparent" + }, + "QMenuBar::item:selected": { + "background": "transparent", + "border": "1px solid #76797C" + }, + "QMenuBar::item:pressed": { + "border": "1px solid #76797C", + "background-color": "#3daee9", + "color": "#eff0f1", + "margin-bottom": "-1px", + "padding-bottom": "1px" + }, + "QListView": { + "border": "1px solid #32435E", + "background": "#1d2938" + }, + "QRadioButton": { + "color": "#d5d5d5", + "padding": "2px" + }, + "QRadioButton:disabled": { + "color": "#76797C" + }, + "QRadioButton::indicator:unchecked": { + "height": "16px", + "width": "16px", + "border-width": "1px", + "border-radius": "6px", + "border-color": "qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(50,67,94), stop:1 rgba(50,67,94))" + }, + "QRadioButton::indicator:unchecked:hover": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:unchecked:focus": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:unchecked:pressed": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:checked": { + "height": "16px", + "width": "16px", + "border-width": "1px", + "border-radius": "6px", + "border-color": "qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(50,67,94), stop:1 rgba(50,67,94))", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)" + }, + "QRadioButton::indicator:checked:hover": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:checked:focus": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:checked:pressed": { + "border": "none", + "outline": "none" + }, + "QRadioButton::indicator:checked:disabled": { + "outline": "none" + }, + "QRadioButton::indicator:unchecked:disabled": {}, + "QGroupBox": { + "border": "1px solid #2E3D57", + "border-radius": "2px", + "margin-top": "20px" + }, + "QGroupBox::title": { + "subcontrol-origin": "margin", + "subcontrol-position": "top center", + "padding-left": "10px", + "padding-right": "10px", + "padding-top": "10px" + }, + "QScrollBar:vertical": { + "background": "#405c7d", + "max-width": "13px", + "border": "1px transparent grey", + "margin": "15px 0px 15px 0px", + "border-radius": "4px" + }, + "QScrollBar:horizontal": { + "background": "#405c7d", + "max-height": "13px", + "border": "1px transparent grey", + "margin": "0px 15px 0px 15px", + "border-radius": "4px" + }, + "QScrollBar::handle:vertical": { + "background": "qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #60788C, stop:1 #1084BD)", + "min-height": "20px", + "border-radius": "4px" + }, + "QScrollBar::handle:vertical:hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #758385, stop: 0.5 #1e4b61, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QScrollBar::handle:horizontal": { + "background": "qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #60788C, stop:1 #1084BD)", + "min-width": "20px", + "border-radius": "4px" + }, + "QScrollBar::handle:horizontal:hover": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #1e4b61, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QScrollBar::add-line:horizontal": { + "margin": "0px 3px 0px 3px", + "width": "12px", + "height": "12px", + "subcontrol-position": "right", + "subcontrol-origin": "margin", + "background-color": "#AAABB3", + "border": "none" + }, + "QScrollBar::sub-line:horizontal": { + "margin": "0px 3px 0px 3px", + "height": "12px", + "width": "12px", + "subcontrol-position": "left", + "subcontrol-origin": "margin", + "background-color": "#AAABB3", + "border": "none" + }, + "QScrollBar::add-line:horizontal:hover": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::add-line:horizontal:on": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::sub-line:horizontal:hover": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::sub-line:horizontal:on": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::sub-line:vertical": { + "margin": "3px 0px 3px 0px", + "height": "12px", + "width": "12px", + "subcontrol-position": "top", + "subcontrol-origin": "margin", + "background-color": "#AAABB3", + "border": "none" + }, + "QScrollBar::add-line:vertical": { + "margin": "3px 0px 3px 0px", + "height": "12px", + "width": "12px", + "subcontrol-position": "bottom", + "subcontrol-origin": "margin", + "background-color": "#AAABB3", + "border": "none" + }, + "QScrollBar::sub-line:vertical:hover": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::sub-line:vertical:on": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::add-line:vertical:hover": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::add-line:vertical:on": { + "background-color": "#E8E8E8", + "border": "1px solid #000" + }, + "QScrollBar::up-arrow:horizontal": { + "background": "none" + }, + "QScrollBar::down-arrow:horizontal": { + "background": "none" + }, + "QScrollBar::add-page:horizontal": { + "background": "none" + }, + "QScrollBar::sub-page:horizontal": { + "background": "none" + }, + "QScrollBar::up-arrow:vertical": { + "background": "none" + }, + "QScrollBar::down-arrow:vertical": { + "background": "none" + }, + "QScrollBar::add-page:vertical": { + "background": "none" + }, + "QScrollBar::sub-page:vertical": { + "background": "none" + }, + "QToolBar": { + "border": "1px transparent #393838", + "background": "1px solid #1d2938", + "font-weight": "bold" + }, + "QToolBar::handle:horizontal": {}, + "QToolBar::handle:vertical": {}, + "QToolBar::separator:horizontal": {}, + "QToolBar::separator:vertical": {}, + "QToolTip": { + "border": "1.5px solid #179BAB", + "padding": "3px", + "border-radius": "8px", + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0C1016, stop: 1.0 #233043)" + }, + "QStatusBar": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #07090E, stop: 1.0 #202C3D)" + }, + "QStatusBar::item": { + "border": "1px solid #3E58A5", + "border-radius": "3px" + }, + "#QStatusBar QLabel": { + "border": "1px solid #6AF0FF" + }, + "image: url(qss/sizegrip.png);width: 16px;height: 16px;": {}, + "QHeaderView::section": { + "background-color": "qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #353B43, stop:1 #151A20)", + "color": "white", + "padding-left": "4px", + "border": "1px solid #447684" + }, + "QHeaderView::down-arrow": {}, + "QHeaderView::up-arrow": {}, + "QTableView": { + "border": "1px solid #76797C", + "gridline-color": "#31363b", + "background-color": "#1d2938" + }, + "QTableView::item:selected": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", + "border-color": "#11505C" + }, + "QFrame#customTitleBar": { + "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #454F53, stop: 1.0 #135263)" + } +} diff --git a/QStyler/themes/coffee.json b/QStyler/themes/coffee.json new file mode 100644 index 0000000..e4a96fe --- /dev/null +++ b/QStyler/themes/coffee.json @@ -0,0 +1,95 @@ +{ + "QPushButton": { + "background-color": "palegoldenrod", + "border-width": "2px", + "border-color": "darkkhaki", + "border-style": "solid", + "border-radius": "5", + "padding": "3px", + "min-width": "9ex", + "min-height": "2.5ex" + }, + "QPushButton:hover": { + "background-color": "khaki" + }, + "QPushButton:pressed": { + "padding-left": "5px", + "padding-top": "5px", + "background-color": "#d0d67c" + }, + "QLabel": { + "border": "none", + "padding": "0", + "background": "none" + }, + "QAbstractButton": { + "font": "bold" + }, + "QStatusBar QLabel": { + "font": "normal" + }, + "QStatusBar::item": { + "border-width": "1", + "border-color": "darkkhaki", + "border-style": "solid", + "border-radius": "2" + }, + "QComboBox": { + "background-color": "cornsilk", + "selection-color": "#0a214c", + "selection-background-color": "#C19A6B" + }, + "QLineEdit": { + "border-width": "2px", + "padding": "1px", + "border-style": "solid", + "border-color": "darkkhaki", + "border-radius": "5px" + }, + "QSpinBox": { + "background-color": "cornsilk", + "selection-color": "#0a214c", + "selection-background-color": "#C19A6B" + }, + "QTextEdit": { + "background-color": "cornsilk", + "selection-color": "#0a214c", + "selection-background-color": "#C19A6B" + }, + "QListView": { + "show-decoration-selected": "1" + }, + "QListView::item:hover": { + "background-color": "wheat" + }, + "QFrame": { + "border-width": "2px", + "padding": "1px", + "border-style": "solid", + "border-color": "darkkhaki", + "border-radius": "5px" + }, + "QLineEdit:focus": { + "border-width": "3px", + "padding": "0px" + }, + "QFrame:focus": { + "border-width": "3px", + "padding": "0px" + }, + "QToolTip": { + "border": "2px solid darkkhaki", + "padding": "5px", + "border-radius": "3px", + "opacity": "200" + }, + "QRadioButton:hover": { + "background-color": "wheat" + }, + "QCheckBox:hover": { + "background-color": "wheat" + }, + "QDialogButtonBox": { + "button-layout": "0" + } +} \ No newline at end of file diff --git a/QStyler/themes/lighter orange.json b/QStyler/themes/lighter orange.json new file mode 100644 index 0000000..80bd0d0 --- /dev/null +++ b/QStyler/themes/lighter orange.json @@ -0,0 +1,1364 @@ +{ + "QAbstractScrollArea": { + "border-radius": "2px", + "border": "1px solid #3A3939", + "background-color": "transparent" + }, + "QCheckBox": { + "color": "#828282", + "padding": "3px", + "outline": "none", + "background-color": "transparent" + }, + "QColumnView": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QComboBox": { + "margin": "0px 2px 0px 2px", + "border-radius": "3px" + }, + "QDateEdit": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QDateTimeEdit": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QDialog": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QDialogButtonBox": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QDockWidget": { + "color": "#828282", + "border": "1px solid #e6e6e6" + }, + "QDoubleSpinBox": { + "margin": "0px 2px 0px 2px", + "border-radius": "3px" + }, + "QFrame": { + "border": "1px solid #e6e6e6", + "border-radius": "3px", + "padding": "0px" + }, + "QGroupBox": { + "color": "#828282", + "font-weight": "bold", + "border": "1px solid blue", + "border-radius": "4px", + "margin-top": "20px", + "background-color": "rgba(255, 255, 255, 15)" + }, + "QHeaderView": { + "border": "none", + "background-color": "#828282", + "border-top-left-radius": "3px", + "border-top-right-radius": "3px", + "border-bottom-left-radius": "0px", + "border-bottom-right-radius": "0px", + "margin": "0px", + "padding": "0px" + }, + "QLabel": { + "padding-top": "3px", + "padding-bottom": "3px", + "background-color": "transparent" + }, + "QLineEdit": { + "margin": "0px 2px 0px 2px", + "border-radius": "3px" + }, + "QListView": { + "margin": "0px", + "paint-alternating-row-colors-for-empty-area": "1", + "position": "absolute", + "subcontrol-origin": "margin", + "subcontrol-position": "left top" + }, + "QListWidget": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QMainWindow": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QMenu": { + "color": "#ffffff", + "background-color": "#828282", + "margin": "2px", + "border": "1px solid transparent" + }, + "QMenuBar": { + "color": "#ffffff", + "background-color": "#e0e0e0" + }, + "QMessageBox": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QProgressBar": { + "background": "#d3d1cd", + "border": "1px solid #b6b6b6", + "text-align": "center", + "padding": "1px", + "border-radius": "4px" + }, + "QPushButton": { + "color": "#ffffff", + "text-align": "center", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #b6b6b6, stop:1 #e6e6e6)", + "border": "1px solid #828282", + "padding": "5px 12px 5px 12px", + "margin": "4px 8px 4px 8px", + "border-radius": "3px", + "min-width": "14px", + "min-height": "14px" + }, + "QRadioButton": { + "color": "#828282", + "padding": "3px", + "outline": "none", + "background-color": "transparent" + }, + "QScrollBar": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QSizeGrip": { + "width": "16px", + "height": "16px", + "background-color": "transparent" + }, + "QSlider": { + "border": "none", + "background-color": "transparent" + }, + "QSpinBox": { + "margin": "0px 2px 0px 2px", + "border-radius": "3px" + }, + "QSplitter": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QStatusBar": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QTabBar": { + "qproperty-drawBase": "0", + "left": "5px", + "background-color": "transparent" + }, + "QTabWidget": { + "border": "none" + }, + "QTableView": { + "color": "#828282", + "border": "1px solid #b6b6b6", + "gridline-color": "#f5f5f5", + "background-color": "#d3d1cd", + "selection-color": "#828282", + "selection-background-color": "#fce6b1", + "border-radius": "3px", + "padding": "0px", + "margin": "0px" + }, + "QTableWidget": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QTextEdit": { + "color": "#828282", + "background-color": "#d3d1cd", + "border": "1px solid #b6b6b6", + "padding": "0px", + "margin": "0px" + }, + "QTimeEdit": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QToolBar": { + "border": "1px transparent #393838", + "background-color": "#e6e6e6", + "font-weight": "bold", + "margin": "0px", + "padding": "0px" + }, + "QToolButton": { + "color": "#ffffff", + "text-align": "center", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #b6b6b6, stop:1 #e6e6e6)", + "border": "1px solid #828282", + "padding-top": "5px", + "padding-bottom": "5px", + "padding-left": "15px", + "padding-right": "15px", + "margin-top": "5px", + "margin-bottom": "5px", + "margin-left": "10px", + "margin-right": "10px", + "border-radius": "3px", + "outline": "none" + }, + "QToolBox": { + "padding": "3px", + "color": "#9d7106", + "border": "none" + }, + "QToolTip": { + "background-color": "#828282", + "color": "black", + "padding": "4px", + "border-radius": "4px" + }, + "QTreeView": { + "color": "#828282", + "border": "1px solid #e6e6e6", + "border-radius": "4px", + "selection-color": "black", + "padding": "0px", + "margin": "0px 4px 0px 4px" + }, + "QTreeWidget": { + "padding": "0px", + "margin": "0px", + "border": "0px", + "border-style": "none" + }, + "QWidget": { + "color": "#828282", + "background-color": "#e6e6e6", + "background-clip": "border", + "border-image": "none", + "outline": "0" + }, + "QMdiArea[showImage=\"true\"]": { + "background-position": "center", + "background-repeat": "no-repeat" + }, + "QProgressBar:horizontal": { + "background": "#d3d1cd", + "border": "1px solid #b6b6b6", + "text-align": "center", + "padding": "1px", + "border-radius": "4px" + }, + "QProgressBar::chunk": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-radius": "3px" + }, + "QProgressBar::chunk:horizontal": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-radius": "3px" + }, + "QWidget:focus": { + "border": "1px solid #828282" + }, + "QWidget:disabled": { + "color": "#f5f5f5" + }, + "QMenuBar::item": { + "background-color": "#e0e0e0" + }, + "QMenuBar::item:selected": { + "color": "#9d7106", + "border": "1px solid #f8bf36", + "background-color": "#f8bf36" + }, + "QMenuBar::item:pressed": { + "color": "#9d7106", + "border": "1px solid #fad57a", + "background-color": "#fad57a", + "margin-bottom": "-1px", + "padding-bottom": "1px" + }, + "QMenu::icon": { + "margin": "5px", + "border-style": "none" + }, + "QMenu::item": { + "color": "#ffffff", + "background-color": "#828282", + "padding": "2px 30px 2px 30px" + }, + "QMenu::item:selected": { + "color": "#9d7106", + "background-color": "#fad57a" + }, + "QMenu::separator": { + "height": "1px", + "background-color": "#b6b6b6", + "margin-top": "2px", + "margin-bottom": "2px", + "margin-left": "6px", + "margin-right": "6px" + }, + "QMenu::indicator:non-exclusive": { + "color": "#ffffff", + "background-color": "#f5f5f5", + "border": "1px solid #828282", + "width": "11px", + "height": "11px", + "border-radius": "2px" + }, + "QMenu::indicator:non-exclusive:checked": { + "background-color": "#e0a108", + "border": "1px solid #9d7106" + }, + "QGroupBox::title": { + "subcontrol-origin": "margin", + "subcontrol-position": "top left", + "padding-left": "10px", + "padding-right": "10px", + "padding-top": "10px", + "background-color": "transparent" + }, + "QAbstractScrollArea::corner": { + "border": "none", + "background-color": "#e6e6e6" + }, + "QScrollBar:horizontal": { + "height": "15px", + "margin": "3px 15px 3px 15px", + "border": "1px transparent #828282", + "border-radius": "4px", + "background-color": "#828282" + }, + "QScrollBar::handle:horizontal": { + "background-color": "#b6b6b6", + "min-width": "5px", + "border-radius": "4px" + }, + "QScrollBar::add-line:horizontal": { + "width": "6px", + "height": "10px", + "subcontrol-position": "right", + "subcontrol-origin": "margin" + }, + "QScrollBar::sub-line:horizontal": { + "height": "10px", + "width": "6px", + "subcontrol-position": "left", + "subcontrol-origin": "margin" + }, + "QScrollBar::up-arrow:horizontal": { + "background": "none" + }, + "QScrollBar::down-arrow:horizontal": { + "background": "none" + }, + "QScrollBar::add-page:horizontal": { + "background": "none" + }, + "QScrollBar::sub-page:horizontal": { + "background": "none" + }, + "QScrollBar:vertical": { + "background-color": "#828282", + "width": "15px", + "margin": "15px 3px 15px 3px", + "border": "1px transparent #828282", + "border-radius": "4px" + }, + "QScrollBar::handle:vertical": { + "background-color": "#b6b6b6", + "min-height": "5px", + "border-radius": "4px" + }, + "QScrollBar::sub-line:vertical": { + "height": "6px", + "width": "10px", + "subcontrol-position": "top", + "subcontrol-origin": "margin" + }, + "QScrollBar::add-line:vertical": { + "height": "6px", + "width": "10px", + "subcontrol-position": "bottom", + "subcontrol-origin": "margin" + }, + "QScrollBar::up-arrow:vertical": { + "background": "none" + }, + "QScrollBar::down-arrow:vertical": { + "background": "none" + }, + "QScrollBar::add-page:vertical": { + "background": "none" + }, + "QScrollBar::sub-page:vertical": { + "background": "none" + }, + "QPlainTextEdit": { + "color": "#828282", + "background-color": "#d3d1cd", + "border-radius": "2px", + "border": "1px solid #b6b6b6", + "padding": "0px", + "margin": "0px" + }, + "QRadioButton::indicator:unchecked": { + "color": "#828282", + "background-color": "#f5f5f5", + "border": "1px solid #828282" + }, + "QRadioButton::indicator:checked": { + "background-color": "#e0a108", + "border": "1px solid #9d7106" + }, + "QCheckBox:disabled": { + "color": "#b6b6b6", + "background-color": "transparent" + }, + "QRadioButton:disabled": { + "color": "#828282", + "padding": "3px", + "outline": "none", + "background-color": "transparent" + }, + "QCheckBox::indicator": { + "width": "11px", + "height": "11px", + "border-radius": "2px" + }, + "QGroupBox::indicator": { + "color": "#ffffff", + "background-color": "#f5f5f5", + "border": "1px solid #828282" + }, + "QRadioButton::indicator": { + "width": "11px", + "height": "11px", + "border-radius": "6px" + }, + "QRadioButton::indicator:pressed": { + "border-color": "#fce6b1" + }, + "QCheckBox::indicator:pressed": { + "border-color": "#fce6b1" + }, + "QCheckBox::indicator:non-exclusive:checked:pressed": { + "border-color": "#fce6b1" + }, + "QCheckBox::indicator:indeterminate:pressed": { + "border-color": "#fce6b1" + }, + "QCheckBox::indicator:checked:pressed": { + "border-color": "#fce6b1" + }, + "QCheckBox::indicator:checked": { + "background-color": "#e0a108", + "border": "1px solid #9d7106" + }, + "QGroupBox::indicator:checked": { + "background-color": "#e0a108", + "border": "1px solid #9d7106" + }, + "QCheckBox::indicator:disabled": { + "background-color": "#e6e6e6" + }, + "QRadioButton::indicator:disabled": { + "color": "#b6b6b6", + "background-color": "transparent" + }, + "QGroupBox::indicator:disabled": { + "background-color": "#e6e6e6" + }, + "QMenu::indicator:non-exclusive:disabled": { + "background-color": "#e6e6e6" + }, + "QCheckBox::indicator:indeterminate": { + "background-color": "#e0a108", + "border": "1px solid #9d7106" + }, + "QCheckBox:focus": { + "border": "none" + }, + "QRadioButton:focus": { + "border": "none" + }, + "QFrame:pressed": { + "border": "1px solid #e6e6e6", + "border-radius": "3px", + "padding": "0px" + }, + "QFrame:focus": { + "border": "1px solid #e6e6e6", + "border-radius": "3px", + "padding": "0px" + }, + "QFrame:on": { + "border": "1px solid #e6e6e6", + "border-radius": "3px", + "padding": "0px" + }, + "QComboBox QFrame": { + "border": "1px solid #828282", + "background-color": "#828282", + "padding": "0px", + "margin": "0px" + }, + "QComboBox QFrame:pressed": { + "border": "1px solid #828282", + "background-color": "#828282", + "padding": "0px", + "margin": "0px" + }, + "QComboBox QFrame:focus": { + "border": "1px solid #828282", + "background-color": "#828282", + "padding": "0px", + "margin": "0px" + }, + "QComboBox QFrame:on": { + "border": "1px solid #828282", + "background-color": "#828282", + "padding": "0px", + "margin": "0px" + }, + "QFrame[frameShape=\"0\"]": { + "border-radius": "3px" + }, + "QFrame[height=\"3\"]": { + "border-top-color": "#b6b6b6" + }, + "QFrame[width=\"3\"]": { + "border-left-color": "#b6b6b6" + }, + "QPushButton:hover": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QPushButton:focus": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QPushButton:disabled": { + "color": "#b6b6b6", + "background-color": "#e6e6e6", + "border-color": "#b6b6b6" + }, + "QPushButton:disabled:checked": { + "color": "#b6b6b6", + "background-color": "#e6e6e6", + "border-color": "#b6b6b6" + }, + "QPushButton:pressed": { + "background-color": "#e0a108" + }, + "QPushButton:checked": { + "background-color": "#f8bf36", + "border-color": "#e0a108" + }, + "Gui--ColorButton": { + "border-color": "transparent", + "background-color": "transparent", + "height": "24px", + "padding": "0px", + "margin": "0px" + }, + "Gui--ColorButton:disabled": { + "border-color": "transparent", + "background-color": "transparent", + "height": "24px", + "padding": "0px", + "margin": "0px" + }, + "Gui--ColorButton:hover": { + "border-color": "#e0e0e0", + "background-color": "#e0e0e0" + }, + "QToolBar QPushButton": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0e0e0, stop:1 #e6e6e6)", + "border": "1px solid #b6b6b6", + "min-width": "22px", + "min-height": "22px", + "margin-left": "2px", + "margin-right": "2px", + "margin-top": "1px", + "padding": "1px" + }, + "QToolBar QPushButton:hover": { + "color": "#ffffff", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0e0e0, stop:1 #e6e6e6)", + "border": "1px solid #828282" + }, + "QToolBar QPushButton:focus": { + "color": "#ffffff", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0e0e0, stop:1 #e6e6e6)", + "border": "1px solid #828282" + }, + "QToolBar QPushButton:disabled": { + "background-color": "#e6e6e6", + "border-color": "#e0e0e0" + }, + "QToolBar QPushButton:disabled:checked": { + "background-color": "#e6e6e6", + "border-color": "#e0e0e0" + }, + "QToolBar QPushButton:pressed": { + "background-color": "#b6b6b6", + "border-color": "#b6b6b6" + }, + "QToolBar QPushButton:checked": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.8, x2:1, y2:0, stop:0 #f8bf36, stop:1 #fad57a)", + "border-color": "#f8bf36" + }, + "QToolBar QPushButton:checked:hover": { + "color": "#ffffff", + "border": "1px solid #e0a108" + }, + "QToolBar QPushButton:checked:focus": { + "color": "#ffffff", + "border": "1px solid #e0a108" + }, + "QToolBar::handle:horizontal": { + "width": "10px", + "margin": "6px 2px 6px 2px", + "background-position": "top right", + "background-repeat": "repeat-y" + }, + "QToolBar::handle:vertical": { + "height": "10px", + "margin": "2px 6px 2px 6px", + "background-position": "left bottom", + "background-repeat": "repeat-x" + }, + "QToolBar::separator:horizontal": { + "width": "10px", + "margin": "6px 2px 6px 2px", + "background-position": "center center", + "background-repeat": "repeat-y" + }, + "QToolBar::separator:vertical": { + "height": "10px", + "margin": "2px 6px 2px 6px", + "background-position": "center center", + "background-repeat": "repeat-x" + }, + "QStackedWidget": { + "background-color": "#e6e6e6", + "border": "1px transparent #e6e6e6" + }, + "QAbstractSpinBox": { + "margin": "0px 2px 0px 2px", + "border-radius": "3px" + }, + "QAbstractSpinBox:disabled": { + "color": "#f5f5f5", + "background-color": "#e0e0e0", + "border-color": "#e0e0e0" + }, + "QAbstractSpinBox:up-button": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.8, x2:1, y2:0, stop:0 #f9ca58, stop:1 #fad57a)", + "subcontrol-origin": "border", + "subcontrol-position": "top right", + "border-top-right-radius": "3px", + "height": "13px", + "width": "20px" + }, + "QAbstractSpinBox:down-button": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.8, x2:1, y2:0, stop:0 #f8bf36, stop:1 #f9ca58)", + "subcontrol-origin": "border", + "subcontrol-position": "bottom right", + "border-bottom-right-radius": "3px", + "height": "13px", + "width": "20px" + }, + "QAbstractSpinBox:up-button:disabled": { + "background-color": "transparent" + }, + "QAbstractSpinBox:down-button:disabled": { + "background-color": "transparent" + }, + "QAbstractSpinBox::up-arrow:disabled": { + "image": "none" + }, + "QAbstractSpinBox::down-arrow:disabled": { + "image": "none" + }, + "QToolBar QAbstractSpinBox": { + "margin-top": "0px", + "margin-bottom": "0px" + }, + "QAbstractSpinBox:focus": { + "border-color": "#fad57a" + }, + "QLineEdit:focus": { + "border-color": "#fad57a" + }, + "QComboBox:focus": { + "border-color": "#fad57a" + }, + "QComboBox:on": { + "color": "black", + "background-color": "#b6b6b6", + "border-color": "#fad57a" + }, + "QComboBox::drop-down": { + "subcontrol-origin": "margin", + "subcontrol-position": "top right", + "width": "20px", + "border-left-width": "1px", + "border-left-color": "transparent", + "border-left-style": "solid", + "border-top-right-radius": "3px", + "border-bottom-right-radius": "3px", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.8, x2:1, y2:0, stop:0 #f8bf36, stop:1 #fad57a)" + }, + "QComboBox QAbstractItemView": { + "color": "#ffffff", + "background-color": "#828282", + "border-radius": "3px", + "margin": "0px", + "padding": "0px", + "border": "none" + }, + "QAbstractItemView": { + "color": "#828282", + "border": "1px solid #828282", + "border-radius": "3px", + "padding": "0px" + }, + "QTreeView QLabel": { + "color": "transparent", + "background-color": "transparent", + "border": "none", + "border-radius": "0px", + "margin": "0px", + "padding": "0px" + }, + "QTreeView QLabel:disabled": { + "color": "transparent", + "background-color": "transparent", + "border": "none", + "border-radius": "0px", + "margin": "0px", + "padding": "0px" + }, + "QTreeView QLineEdit": { + "margin-left": "0px", + "margin-right": "0px" + }, + "QTreeView QLineEdit:read-only": { + "color": "transparent", + "border-color": "transparent", + "background-color": "transparent", + "selection-color": "transparent", + "selection-background-color": "transparent" + }, + "QTreeView QLineEdit:disabled": { + "color": "transparent", + "border-color": "transparent", + "background-color": "transparent", + "selection-color": "transparent", + "selection-background-color": "transparent" + }, + "QTreeView QAbstractSpinBox:read-only": { + "color": "transparent", + "border-color": "transparent", + "background-color": "transparent", + "selection-color": "transparent", + "selection-background-color": "transparent" + }, + "QTreeView QAbstractSpinBox:disabled": { + "color": "transparent", + "border-color": "transparent", + "background-color": "transparent", + "selection-color": "transparent", + "selection-background-color": "transparent" + }, + "QTreeView QSpinBox": { + "margin-left": "0px", + "margin-right": "0px" + }, + "QTreeView QDoubleSpinBox": { + "margin-left": "0px", + "margin-right": "0px" + }, + "QTreeView QAbstractSpinBox": { + "margin-left": "0px", + "margin-right": "0px" + }, + "QTreeView QComboBox": { + "margin-left": "0px", + "margin-right": "0px" + }, + "QTreeView QPushButton": { + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #b6b6b6, stop:1 #e6e6e6)", + "border-top": "none", + "border-bottom": "none", + "border-right": "none", + "border-left": "1px solid #b6b6b6", + "border-radius": "0px", + "margin": "0px", + "padding": "0px", + "height": "24px" + }, + "QAbstractItemView Gui--ColorButton": { + "padding": "0px", + "margin": "0px", + "height": "10px" + }, + "QAbstractItemView QPushButton:hover": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QAbstractItemView QPushButton:disabled": { + "color": "transparent", + "background-color": "transparent", + "border-color": "transparent" + }, + "QTabWidget:focus": { + "border": "none" + }, + "QTabWidget::pane": { + "border": "none", + "padding": "0px", + "background-color": "#e6e6e6", + "position": "absolute", + "top": "-15px", + "padding-top": "15px" + }, + "QTabWidget::tab-bar": { + "alignment": "center" + }, + "QTabBar:focus": { + "border": "0px transparent black" + }, + "QTabBar::close-button": { + "padding": "0px", + "margin": "0px", + "border-radius": "2px", + "background-position": "center center", + "background-repeat": "none" + }, + "QTabBar::close-button:hover": { + "background-color": "#fad57a" + }, + "QTabBar::close-button:pressed": { + "background-color": "#fce6b1" + }, + "QTabBar QToolButton": { + "margin-top": "4px", + "margin-bottom": "4px", + "margin-left": "0px", + "margin-right": "0px", + "padding": "0px", + "border": "none", + "background-color": "#e6e6e6", + "border-radius": "0px" + }, + "QTabBar QToolButton:hover": { + "margin-top": "4px", + "margin-bottom": "4px", + "margin-left": "0px", + "margin-right": "0px", + "padding": "0px", + "border": "none", + "background-color": "#e6e6e6", + "border-radius": "0px" + }, + "QTabBar::tab:top": { + "color": "#ffffff", + "border": "1px solid #b6b6b6", + "border-left-color": "#e6e6e6", + "border-right-width": "0px", + "background-color": "#b6b6b6", + "padding": "5px 15px", + "margin-top": "4px", + "margin-bottom": "4px", + "position": "center" + }, + "QTabBar::tab:bottom": { + "color": "#ffffff", + "border": "1px solid #b6b6b6", + "border-left-color": "#e6e6e6", + "border-right-width": "0px", + "background-color": "#b6b6b6", + "padding": "5px 15px", + "margin-top": "4px", + "margin-bottom": "4px", + "position": "center" + }, + "QTabBar::tab:top:first": { + "border-top-left-radius": "6px", + "border-bottom-left-radius": "6px" + }, + "QTabBar::tab:bottom:first": { + "border-top-left-radius": "6px", + "border-bottom-left-radius": "6px" + }, + "QTabBar::tab:top:last": { + "border-top-right-radius": "6px", + "border-bottom-right-radius": "6px", + "border-right-width": "1px" + }, + "QTabBar::tab:bottom:last": { + "border-top-right-radius": "6px", + "border-bottom-right-radius": "6px", + "border-right-width": "1px" + }, + "QTabBar::tab:top:selected": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QTabBar::tab:bottom:selected": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QTabBar::tab:top:!selected:hover": { + "color": "black" + }, + "QTabBar::tab:bottom:!selected:hover": { + "color": "black" + }, + "QTabBar::tab:top:only-one": { + "border": "1px solid #9d7106", + "border-radius": "6px" + }, + "QTabBar::tab:bottom:only-one": { + "border": "1px solid #9d7106", + "border-radius": "6px" + }, + "QTabBar::tab:left": { + "color": "#ffffff", + "border": "1px solid #b6b6b6", + "border-top-color": "#e6e6e6", + "border-bottom-width": "0px", + "background-color": "#b6b6b6", + "padding": "15px 5px", + "margin-left": "4px", + "margin-right": "4px", + "position": "center" + }, + "QTabBar::tab:right": { + "color": "#ffffff", + "border": "1px solid #b6b6b6", + "border-top-color": "#e6e6e6", + "border-bottom-width": "0px", + "background-color": "#b6b6b6", + "padding": "15px 5px", + "margin-left": "4px", + "margin-right": "4px", + "position": "center" + }, + "QTabBar::tab:left:first": { + "border-top-left-radius": "6px", + "border-top-right-radius": "6px" + }, + "QTabBar::tab:right:first": { + "border-top-left-radius": "6px", + "border-top-right-radius": "6px" + }, + "QTabBar::tab:left:last": { + "border-bottom-left-radius": "6px", + "border-bottom-right-radius": "6px", + "border-bottom-width": "1px" + }, + "QTabBar::tab:right:last": { + "border-bottom-left-radius": "6px", + "border-bottom-right-radius": "6px", + "border-bottom-width": "1px" + }, + "QTabBar::tab:left:selected": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:0.545, y1:1, x2:0, y2:1, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QTabBar::tab:right:selected": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:0.545, y1:1, x2:0, y2:1, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QTabBar::tab:left:!selected:hover": { + "color": "black" + }, + "QTabBar::tab:right:!selected:hover": { + "color": "black" + }, + "QTabBar::tab:left:only-one": { + "border": "1px solid #9d7106", + "border-radius": "6px" + }, + "QTabBar::tab:right:only-one": { + "border": "1px solid #9d7106", + "border-radius": "6px" + }, + "QDockWidget::title": { + "text-align": "center", + "background-color": "#e0e0e0", + "padding": "4px", + "border-radius": "4px" + }, + "QDockWidget::close-button": { + "right": "4px" + }, + "QDockWidget::float-button": { + "right": "22px" + }, + "QDockWidget::close-button:hover": { + "background": "#f5f5f5" + }, + "QDockWidget::float-button:hover": { + "background": "#f5f5f5" + }, + "QDockWidget::close-button:pressed": { + "background-color": "#e0e0e0" + }, + "QDockWidget::float-button:pressed": { + "background-color": "#e0e0e0" + }, + "QListView QAbstractItemView": { + "margin": "0px", + "paint-alternating-row-colors-for-empty-area": "1", + "position": "absolute", + "subcontrol-origin": "margin", + "subcontrol-position": "left top" + }, + "QComboBox QTreeView": { + "margin": "0px", + "padding": "0px" + }, + "QComboBox QListView": { + "margin": "0px", + "padding": "0px" + }, + "QListView::item:selected": { + "color": "black" + }, + "QTreeView::item:selected": { + "color": "black" + }, + "QTreeView::branch": { + "background": "transparent" + }, + "QSlider:active": { + "border": "none", + "background-color": "transparent" + }, + "QSlider:!active": { + "border": "none", + "background-color": "transparent" + }, + "QSlider:horizontal": { + "padding": "0px 10px" + }, + "QSlider:vertical": { + "padding": "10px 0px" + }, + "QSlider::groove:horizontal": { + "border": "1px solid #b6b6b6", + "background-color": "#b6b6b6", + "height": "8px", + "border-radius": "5px", + "margin": "4px 0" + }, + "QSlider::groove:vertical": { + "border": "1px solid #b6b6b6", + "background-color": "#b6b6b6", + "width": "8px", + "border-radius": "5px", + "margin": "4px 0" + }, + "QSlider::groove:horizontal:disabled": { + "border-color": "#e0e0e0", + "background-color": "#e0e0e0" + }, + "QSlider::groove:vertical:disabled": { + "border-color": "#e0e0e0", + "background-color": "#e0e0e0" + }, + "QSlider::handle:horizontal": { + "margin": "-4px 0" + }, + "QSlider::handle:vertical": { + "margin": "0 -4px" + }, + "QSlider::handle:horizontal:hover": { + "border-color": "#e0a108", + "background-color": "#e0a108" + }, + "QSlider::handle:vertical:hover": { + "border-color": "#e0a108", + "background-color": "#e0a108" + }, + "QSlider::handle:horizontal:pressed": { + "border-color": "#9d7106", + "background-color": "#9d7106" + }, + "QSlider::handle:vertical:pressed": { + "border-color": "#9d7106", + "background-color": "#9d7106" + }, + "QSlider::handle:horizontal:disabled": { + "border-color": "#b6b6b6", + "background-color": "#e6e6e6" + }, + "QSlider::handle:vertical:disabled": { + "border-color": "#b6b6b6", + "background-color": "#e6e6e6" + }, + "QToolButton:hover": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QToolButton:focus": { + "color": "black", + "background-color": "qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #e0a108, stop:1 #f8bf36)", + "border-color": "#e0a108" + }, + "QToolButton:disabled": { + "color": "#b6b6b6", + "background-color": "#e6e6e6", + "border-color": "#b6b6b6" + }, + "QToolButton:disabled:checked": { + "color": "#b6b6b6", + "background-color": "#e6e6e6", + "border-color": "#b6b6b6" + }, + "QToolButton:pressed": { + "border-color": "#fad57a" + }, + "QToolButton:checked": { + "background-color": "#f8bf36", + "border-color": "#e0a108" + }, + "QToolButton::menu-indicator": { + "subcontrol-origin": "padding", + "subcontrol-position": "center right", + "right": "4px" + }, + "QToolButton#qt_toolbar_ext_button": { + "border-radius": "0px", + "margin": "0px", + "padding": "0px", + "image": "transparent", + "background-repeat": "none", + "background-position": "center left" + }, + "QToolButton#qt_toolbar_ext_button:hover": { + "border-color": "#e0e0e0", + "background-color": "#e0e0e0" + }, + "QToolButton#qt_toolbar_ext_button:on": { + "border-color": "#e0e0e0", + "background-color": "#e0e0e0" + }, + "QToolBar QToolButton": { + "color": "#828282", + "background-color": "#e6e6e6", + "border": "1px transparent #e6e6e6", + "border-radius": "3px", + "margin": "0px", + "padding": "2px" + }, + "QToolBar QToolButton:disabled": { + "background-color": "#e6e6e6" + }, + "QToolBar QToolButton:checked": { + "color": "#9d7106", + "background-color": "#f8bf36", + "border": "1px solid #f8bf36" + }, + "QToolBar QToolButton:hover": { + "background-color": "#e6e6e6" + }, + "QToolBar QToolButton:pressed": { + "background-color": "#e0e0e0", + "border": "1px solid #e0e0e0" + }, + "QToolBar QToolButton::menu-button:pressed": { + "background-color": "#e0e0e0", + "border": "1px solid #e0e0e0" + }, + "QToolBar QToolButton::menu-indicator:hover": { + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-indicator:pressed": { + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-button": { + "border": "1px transparent #4A4949", + "border-top-right-radius": "3px", + "border-bottom-right-radius": "3px", + "outline": "none", + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-button:hover": { + "border-color": "transparent", + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-button:active": { + "border-color": "transparent", + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-button:disabled": { + "border-color": "transparent", + "background-color": "transparent" + }, + "QToolBar QToolButton::menu-arrow": { + "background-position": "center center", + "background-repeat": "none", + "subcontrol-origin": "padding", + "subcontrol-position": "bottom right" + }, + "QToolBar:tear": { + "color": "blue", + "background-color": "red" + }, + "QTableView::item:hover": { + "background": "#cbc9c4" + }, + "QTableView::item:disabled": { + "color": "#e6e6e6" + }, + "QTableView::item:selected": { + "color": "#9d7106", + "background-color": "#fad57a" + }, + "QTableView QLineEdit": { + "color": "#828282", + "background-color": "#cfcdc9", + "border-radius": "0px", + "margin": "0px", + "padding": "0px" + }, + "QHeaderView::section": { + "background-color": "transparent", + "color": "#ffffff", + "border": "1px solid transparent", + "border-radius": "0px", + "text-align": "center" + }, + "QHeaderView::section::vertical": { + "padding": "0px 6px 0px 6px", + "border-bottom": "1px solid #b6b6b6" + }, + "QHeaderView::section::vertical:first": { + "border-top": "1px solid #b6b6b6" + }, + "QHeaderView::section::vertical:last": { + "border-bottom": "none" + }, + "QHeaderView::section::vertical:only-one": { + "border": "none" + }, + "QHeaderView::section::horizontal": { + "padding": "0px 0px 0px 6px", + "border-right": "1px solid #b6b6b6" + }, + "QHeaderView::section::horizontal:first": { + "border-left": "1px solid #b6b6b6" + }, + "QHeaderView::section::horizontal:last": { + "border-left": "none" + }, + "QHeaderView::section::horizontal:only-one": { + "border": "none" + }, + "QHeaderView::section:checked": { + "color": "#9d7106", + "background-color": "#fad57a" + }, + "QTableCornerButton::section": { + "background-color": "#828282", + "border": "1px solid #828282", + "border-radius": "0px" + }, + "QStatusBar::item": { + "color": "#ffffff", + "background-color": "#e6e6e6", + "border": "1px solid #e6e6e6", + "border-radius": "2px" + }, + "QSplitter::handle": { + "background-color": "#e6e6e6", + "margin": "0px 11px", + "padding": "0px", + "border-radius": "3px" + }, + "QSplitter::handle:vertical": { + "background-position": "center center", + "background-repeat": "none", + "margin": "2px 10px 2px 10px", + "height": "2px" + }, + "QSplitter::handle:horizontal": { + "background-position": "center center", + "background-repeat": "none", + "margin": "10px 2px 10px 2px", + "width": "2px" + }, + "QSplitter::handle:horizontal:hover": { + "background-color": "#e6e6e6" + }, + "QSplitter::handle:vertical:hover": { + "background-color": "#e6e6e6" + }, + "QMainWindow::separator": { + "border": "1px solid #e6e6e6", + "background-color": "#e6e6e6", + "background-position": "center center", + "background-repeat": "none" + }, + "QMainWindow::separator:hover": { + "background-color": "#e6e6e6" + }, + "QMainWindow::separator:horizontal": { + "height": "4px" + }, + "QMainWindow::separator:vertical": { + "width": "4px" + }, + "QLabel:disabled": { + "color": "#b6b6b6", + "background-color": "transparent" + }, + "QFrame[class=\"panel\"]": { + "border": "none", + "background-color": "#e6e6e6" + } +} \ No newline at end of file diff --git a/QStyler/themes/tab-gaps.json b/QStyler/themes/tab-gaps.json new file mode 100644 index 0000000..801c2f7 --- /dev/null +++ b/QStyler/themes/tab-gaps.json @@ -0,0 +1,268 @@ +{ + "QLabel#canvasText": { + "font-family": "'Helvetica'", + "font-size": "16pt", + "background-color": "rgba(72, 75, 106, 0.9)", + "color": "#eff0f1", + "margin-top": "0.02em", + "margin-left": "0.02em", + "padding": "0.25em" + }, + "QLabel": { + "font-size": "10pt", + "color": "#333333" + }, + "QWidget": { + "background-color": "#f5f5f5", + "font-family": "'Helvetica'" + }, + "QPushButton": { + "background-color": "#9394a5", + "border": "0.1em solid #76797c", + "min-height": "1.5em" + }, + "QPushButton:hover": { + "border": "0.1em solid #3b3b42", + "color": "#eff0f1" + }, + "QPushButton:checked": { + "background-color": "#484b6a", + "border": "0.1em solid #76797c", + "color": "#eff0f1" + }, + "QPushButton:checked:hover": { + "background-color": "#484b6a", + "border": "0.1em solid #3b3b42", + "color": "#eff0f1" + }, + "QPushButton:pressed": { + "background-color": "#6e6f7d", + "padding-bottom": "-0.16em", + "color": "#eff0f1" + }, + "QDialogButtonBox QPushButton": { + "color": "#eff0f1", + "min-height": "1.5em", + "min-width": "6em", + "font-size": "9pt" + }, + "QMessageBox QPushButton": { + "color": "#eff0f1", + "min-height": "1.5em", + "min-width": "6em", + "font-size": "9pt" + }, + "QComboBox": { + "border": "0.1em solid #76797c", + "padding": "0.23em", + "min-width": "2.5em", + "color": "#eff0f1", + "font-size": "10pt", + "background-color": "#9394a5" + }, + "QComboBox:open": { + "border-width": "0.1em", + "border-color": "#76797c", + "color": "#eff0f1" + }, + "QComboBox:closed": { + "border-width": "0.1em", + "border-color": "#76797c", + "color": "#eff0f1" + }, + "QComboBox:hover": { + "border": "0.1em solid #3b3b42", + "color": "#eff0f1" + }, + "QComboBox:focus": { + "border": "0.1em solid #3b3b42", + "color": "#eff0f1" + }, + "QComboBox::drop-down": { + "subcontrol-origin": "padding", + "subcontrol-position": "top right", + "width": "0.65em", + "border-left-width": "0em", + "border-left-style": "solid", + "border-top-right-radius": "0.13em", + "border-bottom-right-radius": "0.13em" + }, + "QComboBox::down-arrow": { + "width": "1em", + "height": "1em", + "margin-right": "0.4em" + }, + "QComboBox::down-arrow:on": { + "width": "1em", + "height": "1em", + "margin-right": "0.4em" + }, + "QAbstractSpinBox": { + "padding": "0.2em", + "border": "0.1em solid #76797c", + "background-color": "#9394a5", + "color": "#eff0f1", + "border-radius": "0.1em", + "min-width": "3em", + "min-height": "1.5em", + "font-size": "9pt" + }, + "QLineEdit": { + "padding": "0.2em", + "border": "0.1em solid #76797c", + "background-color": "#9394a5", + "color": "#eff0f1", + "border-radius": "0.1em", + "min-width": "3em", + "font-size": "10pt" + }, + "QLineEdit:hover": { + "border": "0.1em solid #3b3b42" + }, + "QAbstractSpinBox:hover": { + "border": "0.1em solid #3b3b42" + }, + "QTextEdit": { + "background-color": "#9394a5", + "color": "#eff0f1", + "font-size": "16pt" + }, + "QAbstractSpinBox:up-button": { + "width": "0em", + "height": "0em" + }, + "QAbstractSpinBox:down-button": { + "width": "0em", + "height": "0em" + }, + "QComboBox QAbstractItemView": { + "background-color": "#9394a5", + "selection-background-color": "#8087c2", + "outline-color": "0em", + "border-radius": "0.09em" + }, + "QAbstractItemView": { + "color": "#eff0f1" + }, + "QAbstractItemView::item:pressed": { + "background": "#7b80bd", + "color": "#eff0f1" + }, + "QAbstractItemView::item:selected:!active": { + "background": "rgba(135, 143, 230, 0.1)" + }, + "QTreeView::item": { + "color": "#333333" + }, + "QTreeView::item:!selected:hover": { + "background-color": "rgba(135, 143, 230, 0.1)", + "outline": "0", + "color": "#333333" + }, + "QHeaderView::section": { + "background-color": "#9394a5", + "border": "0.04em solid #76797c", + "color": "#eff0f1", + "padding-top": "0.3em", + "padding-bottom": "-0.3em", + "border-radius": "0em", + "text-align": "center" + }, + "QTabWidget::pane:top": { + "border": "0.04em solid #76797c", + "top": "-0.04em" + }, + "QTabWidget::pane:bottom": { + "border": "0.04em solid #76797c", + "bottom": "-0.04em" + }, + "QTabWidget::pane:left": { + "border": "0.04em solid #76797c", + "left": "-0.04em" + }, + "QTabWidget::pane:right": { + "border": "0.04em solid #76797c", + "right": "-0.04em" + }, + "QTabWidget::tab-bar": { + "left": "0.6em", + "bottom": "0.06em" + }, + "QTabBar::tab": { + "color": "#eff0f1", + "background-color": "#9394a5", + "border": "0.1em solid #76797c", + "border-bottom-color": "#76797c", + "border-top-left-radius": "0.5em", + "border-top-right-radius": "0.5em", + "margin-right": "0.3em", + "min-width": "4em", + "padding": "0.1em" + }, + "QTabBar::tab:selected": { + "border-color": "#3b3b42", + "background-color": "#6e6f7d" + }, + "QTabBar::tab:hover": { + "border-color": "#3b3b42", + "border-bottom-color": "#76797c" + }, + "QScrollBar:vertical": { + "background-color": "#d2d3db", + "width": "1em", + "margin": "0.65em 0.13em 0.65em 0.13em", + "border": "0.04em #d2d3db", + "border-radius": "0.4em" + }, + "QScrollBar::handle:vertical": { + "background-color": "#76797c", + "border": "0.04em solid #76797c", + "min-height": "0.5em", + "border-radius": "0.4em" + }, + "QScrollBar::handle:vertical:hover": { + "background-color": "#5c5e61", + "border": "0.04em solid #5c5e61" + }, + "QScrollBar::sub-line:vertical": { + "height": "0em", + "width": "0em" + }, + "QScrollBar::add-page:vertical": { + "background": "none" + }, + "QScrollBar::sub-page:vertical": { + "background": "none" + }, + "QScrollBar:horizontal": { + "background-color": "#d2d3db", + "height": "1em", + "margin": "0.13em 0.65em 0.13em 0.65em", + "border": "0.04em #d2d3db", + "border-radius": "0.4em" + }, + "QScrollBar::handle:horizontal": { + "background-color": "#76797c", + "border": "0.04em solid #76797c", + "min-width": "0.5em", + "border-radius": "0.4em" + }, + "QScrollBar::handle:horizontal:hover": { + "background-color": "#5c5e61", + "border": "0.04em solid #5c5e61" + }, + "QScrollBar::add-line:horizontal": { + "width": "0em", + "height": "0em" + }, + "QScrollBar::sub-line:horizontal": { + "width": "0em", + "height": "0em" + }, + "QScrollBar::add-page:horizontal": { + "background": "none" + }, + "QScrollBar::sub-page:horizontal": { + "background": "none" + } +} \ No newline at end of file From 153fa9802dd50b6748ca09a15783bef8c06241a3 Mon Sep 17 00:00:00 2001 From: alexpdev Date: Sun, 10 Dec 2023 23:58:02 -0800 Subject: [PATCH 2/3] added line edit for color picker --- QStyler/styler.py | 4 +- QStyler/themes/Coastal.json | 733 +----------------------------------- tests/test_window.py | 6 +- 3 files changed, 5 insertions(+), 738 deletions(-) diff --git a/QStyler/styler.py b/QStyler/styler.py index 4d73785..8666c30 100644 --- a/QStyler/styler.py +++ b/QStyler/styler.py @@ -26,9 +26,9 @@ from PySide6.QtCore import Qt, Signal from PySide6.QtGui import QAction, QFontMetricsF from PySide6.QtWidgets import (QApplication, QComboBox, QFileDialog, - QHBoxLayout, QLabel, QListWidget, + QHBoxLayout, QLabel, QLineEdit, QListWidget, QListWidgetItem, QSlider, QTextEdit, QToolBar, - QVBoxLayout, QWidget, QLineEdit) + QVBoxLayout, QWidget) from QStyler.dialog import NewDialog, RenameDialog from QStyler.utils import (ParsingError, QssParser, apply_stylesheet, get_icon, diff --git a/QStyler/themes/Coastal.json b/QStyler/themes/Coastal.json index ede5059..9e26dfe 100644 --- a/QStyler/themes/Coastal.json +++ b/QStyler/themes/Coastal.json @@ -1,732 +1 @@ -{ - "QMainWindow": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.4 rgb(194, 216, 242), stop: 0.4 rgb(194, 216, 242), stop: 1.0 rgb(156, 193, 239))", - "color": "rgb(59, 90, 130)" - }, - "QWidget": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.4 rgb(194, 216, 242), stop: 0.4 rgb(194, 216, 242), stop: 1.0 rgb(156, 193, 239))", - "color": "rgb(59, 90, 130)" - }, - "QDockWidget > QWidget": { - "border-style": "none", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.4 rgb(194, 216, 242), stop: 0.4 rgb(194, 216, 242), stop: 1.0 rgb(156, 193, 239))", - "padding": "1px", - "border-radius": "0px", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)" - }, - "QWidget > QDockWidget": { "background": "white" }, - "QCalendarWidget > QWidget > QToolButton": { - "border-style": "none", - "color": "rgb(59, 90, 130)", - "background": "transparent", - "padding": "1px", - "border-radius": "0px" - }, - "QCalendarWidget > QWidget#qt_calendar_navigationbar": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "background": "transparent", - "border-top-left-radius": "8px", - "border-top-right-radius": "8px" - }, - "QCalendarWidget > QWidget#qt_calendar_calendarview": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "background": "white", - "border-radius": "0px", - "border-bottom-left-radius": "8px", - "border-bottom-right-radius": "8px" - }, - "QGroupBox": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px" - }, - "QGroupBox::title": { - "subcontrol-origin": "margin", - "subcontrol-position": "top left", - "padding": "0 3px" - }, - "QTabWidget::pane": { - "margin": "1px, 1px, 1px, 1px", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "border-radius": "8px", - "border-top-left-radius": "0px", - "padding": "0px" - }, - "QTabBar::tab": { - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.4 rgb(194, 216, 242), stop: 0.4 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(136, 163, 205)", - "border-right": "1px solid rgb(136, 163, 205)", - "border-top-right-radius": "15", - "border-top-left-radius": "5", - "color": "rgb(59, 90, 130)", - "padding": "5px", - "min-width": "80px" - }, - "QTabBar::tab:!selected": {}, - "QTabBar::tab:first": { - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.4 rgb(194, 216, 242), stop: 0.4 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(136, 163, 205)", - "border-right": "1px solid rgb(136, 163, 205)", - "border-top-right-radius": "15", - "border-top-left-radius": "5", - "color": "rgb(59, 90, 130)", - "padding": "5px" - }, - "QTabBar::tab::selected": { - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "border-top-right-radius": "15", - "border-top-left-radius": "5", - "color": "rgb(59, 90, 130)", - "padding": "5px" - }, - "QTabWidget::tab-bar": {}, - "QTabBar::tab:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QPushButton:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QToolButton:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QComboBox:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QCheckBox:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QRadioButton:hover": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))" - }, - "QComboBox:!editable": { - "min-width": "80px", - "min-height": "19px", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QComboBox:!editable:on": { - "min-width": "80px", - "min-height": "19px", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QComboBox:editable": { - "min-width": "80px", - "min-height": "18px", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "background": "white", - "padding": "3px", - "border-radius": "8px" - }, - "QComboBox::drop-down": { - "subcontrol-origin": "padding", - "subcontrol-position": "top right", - "width": "20px", - "border-left-width": "1px", - "border-left-color": "darkgray" - }, - "QComboBox::down-arrow": { - "background-color": "transparent", - "border-left": "5px solid none", - "border-right": "5px solid none", - "border-top": "5px solid #808080", - "width": "1px", - "height": "1px", - "} QComboBox QAbstractItemView { border": "1px solid gray" - }, - "QLabel": { "background-color": "transparent" }, - "QLineEdit": { - "background": "white", - "min-width": "80px", - "min-height": "16px", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QTextEdit": { - "background": "white", - "min-width": "80px", - "min-height": "16px", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QRadioButton": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "min-width": "80px", - "min-height": "20px", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QCheckBox": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "min-width": "80px", - "min-height": "20px", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QPushButton": { - "border-style": "none", - "min-width": "80px", - "min-height": "20px", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "padding": "3px", - "border-radius": "8px" - }, - "QPushButton::pressed": { - "border-style": "none", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "padding": "3px", - "border-radius": "8px" - }, - "QToolButton": { - "border-style": "none", - "min-width": "80px", - "min-height": "16px", - "border-left": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(136, 163, 205)", - "border-right": "2px solid rgb(136, 163, 205)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "padding": "3px", - "border-radius": "8px" - }, - "QCheckBox:checked": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-right": "2px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)" - }, - "QRadioButton:checked": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-right": "2px solid rgb(255, 255, 255)", - "border-bottom": "2px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)" - }, - "QCheckBox:indeterminate": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.8 rgb(194, 216, 242), stop: 0.2 rgb(194, 216, 242), stop: 1.0 rgb(217, 231, 247))", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "1px solid rgb(136, 163, 205)", - "border-left": "1px solid rgb(136, 163, 205)" - }, - "QToolButton:pressed": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "padding": "3px", - "border-radius": "8px" - }, - "QMenu": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "color": "rgb(59, 90, 130)" - }, - "QMenuBar": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "color": "rgb(59, 90, 130)" - }, - "QMenuBar::item": { "background": "transparent" }, - "QTableView": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "border-radius": "8px", - "padding": "0 8px", - "color": "rgb(59, 90, 130)" - }, - "QHeaderView": { "background": "transparent" }, - "QHeaderView::section": { - "background": "transparent", - "border": "1px solid gray", - "padding": "3px" - }, - "QTreeView": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px", - "show-decoration-selected": "0" - }, - "QToolBox": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px" - }, - "QListWidget": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px", - "show-decoration-selected": "1" - }, - "QToolBox > QWidget": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px" - }, - "QToolBox::tab": { - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-right": "1px solid rgb(255, 255, 255)", - "color": "rgb(59, 90, 130)", - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-radius": "8px" - }, - "QSpinBox": { - "background": "white", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QDoubleSpinBox": { - "background": "white", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QDateEdit": { - "background": "white", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QTimeEdit": { - "background": "white", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QDateTimeEdit": { - "background": "white", - "border-right": "1px solid rgb(255, 255, 255)", - "border-bottom": "1px solid rgb(255, 255, 255)", - "border-top": "2px solid rgb(136, 163, 205)", - "border-left": "2px solid rgb(136, 163, 205)", - "padding": "3px", - "border-radius": "8px" - }, - "QSpinBox::up-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-top": "2px solid rgb(136, 163, 205)" - }, - "QDoubleSpinBox::up-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-top": "2px solid rgb(136, 163, 205)" - }, - "QDateEdit::up-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-top": "2px solid rgb(136, 163, 205)" - }, - "QTimeEdit::up-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-top": "2px solid rgb(136, 163, 205)" - }, - "QDateTimeEdit::up-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-top": "2px solid rgb(136, 163, 205)" - }, - "QSpinBox::up-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDoubleSpinBox::up-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDateEdit::up-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QTimeEdit::up-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QSpinBox::up-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "15px", - "border-left": "1px solid #BEBEBE", - "border-top": "3px solid rgb(136, 163, 205)" - }, - "QDoubleSpinBox::up-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "15px", - "border-left": "1px solid #BEBEBE", - "border-top": "3px solid rgb(136, 163, 205)" - }, - "QDateEdit::up-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "15px", - "border-left": "1px solid #BEBEBE", - "border-top": "3px solid rgb(136, 163, 205)" - }, - "QTimeEdit::up-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "15px", - "border-left": "1px solid #BEBEBE", - "border-top": "3px solid rgb(136, 163, 205)" - }, - "QDateTimeEdit::up-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "top right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-top-right-radius": "8px", - "border-width": "1px", - "width": "15px", - "border-left": "1px solid #BEBEBE", - "border-top": "3px solid rgb(136, 163, 205)" - }, - "QSpinBox::up-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDoubleSpinBox::up-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDateEdit::up-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QTimeEdit::up-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-bottom": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QSpinBox::down-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-bottom": "0px" - }, - "QDoubleSpinBox::down-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-bottom": "0px" - }, - "QDateEdit::down-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-bottom": "0px" - }, - "QTimeEdit::down-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-bottom": "0px" - }, - "QDateTimeEdit::down-button": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "16px", - "border-bottom": "0px" - }, - "QSpinBox::down-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDoubleSpinBox::down-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDateEdit::down-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QTimeEdit::down-arrow": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QSpinBox::down-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "14px", - "border-left": "1px solid #BEBEBE", - "border-top": "1px solid #BEBEBE", - "border-right": "1px solid #BEBEBE", - "border-bottom": "0px" - }, - "QDoubleSpinBox::down-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "14px", - "border-left": "1px solid #BEBEBE", - "border-top": "1px solid #BEBEBE", - "border-right": "1px solid #BEBEBE", - "border-bottom": "0px" - }, - "QDateEdit::down-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "14px", - "border-left": "1px solid #BEBEBE", - "border-top": "1px solid #BEBEBE", - "border-right": "1px solid #BEBEBE", - "border-bottom": "0px" - }, - "QTimeEdit::down-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "14px", - "border-left": "1px solid #BEBEBE", - "border-top": "1px solid #BEBEBE", - "border-right": "1px solid #BEBEBE", - "border-bottom": "0px" - }, - "QDateTimeEdit::down-button:pressed": { - "subcontrol-origin": "margin", - "subcontrol-position": "bottom right", - "background-color": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(217, 231, 247), stop: 0.1 rgb(194, 216, 242), stop: 0.5 rgb(194, 216, 242), stop: 1.0 rgb(174, 204, 242))", - "border-bottom-right-radius": "8px", - "border-width": "1px", - "width": "14px", - "border-left": "1px solid #BEBEBE", - "border-top": "1px solid #BEBEBE", - "border-right": "1px solid #BEBEBE", - "border-bottom": "0px" - }, - "QSpinBox::down-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDoubleSpinBox::down-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QDateEdit::down-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - }, - "QTimeEdit::down-arrow:pressed": { - "background-color": "transparent", - "border-left": "3px solid none", - "border-right": "3px solid none", - "border-top": "3px solid #808080", - "width": "1px", - "height": "1px" - } -} +{} \ No newline at end of file diff --git a/tests/test_window.py b/tests/test_window.py index b21ca5f..c8438f6 100644 --- a/tests/test_window.py +++ b/tests/test_window.py @@ -162,7 +162,7 @@ def test_toolbar_reset_theme(app, wind): toolbar.load_action.trigger() toolbar.reset_action.trigger() toolbar.load_action.trigger() - assert toolbar.themes_combo.currentText() + assert not toolbar.themes_combo.currentText() def test_new_dialog(app): @@ -208,9 +208,7 @@ def test_toolbar_buttons(app, wind, theme): assert wind.styler.editor.toPlainText() == "" -@pytest.mark.parametrize( - "theme", ["SummerBreeze", "DarkSkyline", "Coastal"] -) +@pytest.mark.parametrize("theme", ["SummerBreeze", "DarkSkyline", "Coastal"]) def test_styler_with_theme(app, wind, theme): """Test function for toolbar buttons.""" wind.tabWidget.setCurrentIndex(0) From 4734c7faad55217d750cd8f7e3576ad3541b7375 Mon Sep 17 00:00:00 2001 From: alexpdev Date: Wed, 3 Jan 2024 20:53:41 -0800 Subject: [PATCH 3/3] update --- QStyler/themes/bluechrome.json | 100 +-- coverage.xml | 1195 ++++++++++++++++++++++++++++++++ 2 files changed, 1196 insertions(+), 99 deletions(-) create mode 100644 coverage.xml diff --git a/QStyler/themes/bluechrome.json b/QStyler/themes/bluechrome.json index 3c1e147..a7ee642 100644 --- a/QStyler/themes/bluechrome.json +++ b/QStyler/themes/bluechrome.json @@ -1,8 +1,7 @@ { "*": { "font-size": "14px", - "color": "#d5d5d5", - "font-family": "\"\u9ed1\u4f53\"" + "color": "#d5d5d5" }, "QWidget": { "color": "#eff0f1", @@ -143,8 +142,6 @@ "width": "10px", "height": "10px" }, - "QAbstractSpinBox::up-arrow:hover": {}, - "QSpinBox::up-arrow:hover": {}, "QAbstractSpinBox::down-arrow": { "width": "10px", "height": "10px" @@ -221,19 +218,6 @@ "QTabBar::tab:hover": { "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #113845, stop: 1.0 #0E6F80)" }, - "#QTabBar::tab:selected": { - "border-color": "#32435E" - }, - "#QTabBar::tab:!selected": {}, - "#QTabBar:tab:first:selected": { - "margin-top": "0" - }, - "QTabBar:tab:last:selected": { - "margin-right": "0" - }, - "QTabBar:tab:only-one": { - "margin": "0" - }, "QListWidget": { "border": "1px solid #32435E", "background": "#1d2938" @@ -287,7 +271,6 @@ "QComboBox::drop-down:editable:on": { "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #080B10, stop: 1.0 #212C3F);" }, - "padding-top: 3px;padding-left: 4px;": {}, "QComboBox::drop-down": { "subcontrol-origin": "padding", "subcontrol-position": "top right", @@ -297,7 +280,6 @@ "border-bottom-right-radius": "3px" }, "QComboBox::down-arrow": {}, - "top: 1px;left: 1px;": {}, "QComboBox::down-arrow:on": {}, "QComboBox::down-arrow:hover": {}, "QComboBox::down-arrow:focus": {}, @@ -326,24 +308,6 @@ "border-width": "1px", "border-color": "qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(50,67,94), stop:1 rgba(50,67,94))" }, - "QCheckBox::indicator:unchecked:hover": { - "border": "none" - }, - "QCheckBox::indicator:unchecked:focus": { - "border": "none" - }, - "QCheckBox::indicator:unchecked:pressed": { - "border": "none" - }, - "QGroupBox::indicator:unchecked:hover": { - "border": "none" - }, - "QGroupBox::indicator:unchecked:focus": { - "border": "none" - }, - "QGroupBox::indicator:unchecked:pressed": { - "border": "none" - }, "QCheckBox::indicator:checked": { "height": "14px", "width": "14px", @@ -352,32 +316,6 @@ "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", "border-color": "#11505C" }, - "QCheckBox::indicator:checked:hover": { - "border": "none" - }, - "QCheckBox::indicator:checked:focus": { - "border": "none" - }, - "QCheckBox::indicator:checked:pressed": { - "border": "none" - }, - "QGroupBox::indicator:checked:hover": { - "border": "none" - }, - "QGroupBox::indicator:checked:focus": { - "border": "none" - }, - "QGroupBox::indicator:checked:pressed": { - "border": "none" - }, - "QCheckBox::indicator:indeterminate": {}, - "QCheckBox::indicator:indeterminate:focus": {}, - "QCheckBox::indicator:indeterminate:hover": {}, - "QCheckBox::indicator:indeterminate:pressed": {}, - "QCheckBox::indicator:checked:disabled": {}, - "QGroupBox::indicator:checked:disabled": {}, - "QCheckBox::indicator:unchecked:disabled": {}, - "QGroupBox::indicator:unchecked:disabled": {}, "QMenu": { "background-color": "#030406", "border-width": "0px", @@ -401,7 +339,6 @@ "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #1E293A, stop: 1.0 #2C547E)", "color": "#E6FFFF" }, - "background: gray;border: 1px inset gray;position: absolute;top: 1px;right: 1px;bottom: 1px;left: 1px;": {}, "QMenu::separator": { "height": "1px", "background": "#1D99A9" @@ -410,14 +347,6 @@ "width": "13px", "height": "13px" }, - "QMenu::indicator:non-exclusive:unchecked": {}, - "QMenu::indicator:non-exclusive:unchecked:selected": {}, - "QMenu::indicator:non-exclusive:checked": {}, - "QMenu::indicator:non-exclusive:checked:selected": {}, - "QMenu::indicator:exclusive:unchecked": {}, - "QMenu::indicator:exclusive:unchecked:selected": {}, - "QMenu::indicator:exclusive:checked": {}, - "QMenu::indicator:exclusive:checked:selected": {}, "QMenuBar": { "background-color": "#2c3e55", "color": "#eff0f1" @@ -474,22 +403,6 @@ "border-color": "qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(50,67,94), stop:1 rgba(50,67,94))", "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)" }, - "QRadioButton::indicator:checked:hover": { - "border": "none", - "outline": "none" - }, - "QRadioButton::indicator:checked:focus": { - "border": "none", - "outline": "none" - }, - "QRadioButton::indicator:checked:pressed": { - "border": "none", - "outline": "none" - }, - "QRadioButton::indicator:checked:disabled": { - "outline": "none" - }, - "QRadioButton::indicator:unchecked:disabled": {}, "QGroupBox": { "border": "1px solid #2E3D57", "border-radius": "2px", @@ -631,10 +544,6 @@ "background": "1px solid #1d2938", "font-weight": "bold" }, - "QToolBar::handle:horizontal": {}, - "QToolBar::handle:vertical": {}, - "QToolBar::separator:horizontal": {}, - "QToolBar::separator:vertical": {}, "QToolTip": { "border": "1.5px solid #179BAB", "padding": "3px", @@ -648,10 +557,6 @@ "border": "1px solid #3E58A5", "border-radius": "3px" }, - "#QStatusBar QLabel": { - "border": "1px solid #6AF0FF" - }, - "image: url(qss/sizegrip.png);width: 16px;height: 16px;": {}, "QHeaderView::section": { "background-color": "qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #353B43, stop:1 #151A20)", "color": "white", @@ -668,8 +573,5 @@ "QTableView::item:selected": { "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #758385, stop: 0.5 #122C39, stop: 1.0 #0E7788)", "border-color": "#11505C" - }, - "QFrame#customTitleBar": { - "background": "qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #454F53, stop: 1.0 #135263)" } } diff --git a/coverage.xml b/coverage.xml new file mode 100644 index 0000000..8a64d2c --- /dev/null +++ b/coverage.xml @@ -0,0 +1,1195 @@ + + + + + + C:\Users\asp\Documents\Code\repos\QStyler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +