diff --git a/3rdparty/dark_style_sheet/qdarkstyle/rc/close-hover.png b/3rdparty/dark_style_sheet/qdarkstyle/rc/close-hover.png index 657943a..fbd7463 100644 Binary files a/3rdparty/dark_style_sheet/qdarkstyle/rc/close-hover.png and b/3rdparty/dark_style_sheet/qdarkstyle/rc/close-hover.png differ diff --git a/3rdparty/dark_style_sheet/qdarkstyle/rc/close.png b/3rdparty/dark_style_sheet/qdarkstyle/rc/close.png index bc0f576..2a5f8ed 100644 Binary files a/3rdparty/dark_style_sheet/qdarkstyle/rc/close.png and b/3rdparty/dark_style_sheet/qdarkstyle/rc/close.png differ diff --git a/3rdparty/dark_style_sheet/qdarkstyle/rc/undock-hover.png b/3rdparty/dark_style_sheet/qdarkstyle/rc/undock-hover.png new file mode 100644 index 0000000..1dfd698 Binary files /dev/null and b/3rdparty/dark_style_sheet/qdarkstyle/rc/undock-hover.png differ diff --git a/3rdparty/dark_style_sheet/qdarkstyle/rc/undock.png b/3rdparty/dark_style_sheet/qdarkstyle/rc/undock.png index 88691d7..a54c9f6 100644 Binary files a/3rdparty/dark_style_sheet/qdarkstyle/rc/undock.png and b/3rdparty/dark_style_sheet/qdarkstyle/rc/undock.png differ diff --git a/3rdparty/dark_style_sheet/qdarkstyle/style.qrc b/3rdparty/dark_style_sheet/qdarkstyle/style.qrc index 6294039..6520860 100644 --- a/3rdparty/dark_style_sheet/qdarkstyle/style.qrc +++ b/3rdparty/dark_style_sheet/qdarkstyle/style.qrc @@ -1,5 +1,5 @@ - + rc/up_arrow_disabled.png rc/Hmovetoolbar.png rc/stylesheet-branch-end.png @@ -40,6 +40,7 @@ rc/radio_unchecked_focus.png rc/radio_unchecked.png rc/extend.png + rc/undock-hover.png style.qss diff --git a/3rdparty/dark_style_sheet/qdarkstyle/style.qss b/3rdparty/dark_style_sheet/qdarkstyle/style.qss index acc358b..1c2fa3a 100644 --- a/3rdparty/dark_style_sheet/qdarkstyle/style.qss +++ b/3rdparty/dark_style_sheet/qdarkstyle/style.qss @@ -80,7 +80,7 @@ QCheckBox::indicator{ QCheckBox::indicator:unchecked { - image: url(:/qss_icons/rc/checkbox_unchecked.png); + image: url(:/qss_qdark_icons/rc/checkbox_unchecked.png); } QCheckBox::indicator:unchecked:hover, @@ -91,12 +91,12 @@ QGroupBox::indicator:unchecked:focus, QGroupBox::indicator:unchecked:pressed { border: none; - image: url(:/qss_icons/rc/checkbox_unchecked_focus.png); + image: url(:/qss_qdark_icons/rc/checkbox_unchecked_focus.png); } QCheckBox::indicator:checked { - image: url(:/qss_icons/rc/checkbox_checked.png); + image: url(:/qss_qdark_icons/rc/checkbox_checked.png); } QCheckBox::indicator:checked:hover, @@ -107,32 +107,32 @@ QGroupBox::indicator:checked:focus, QGroupBox::indicator:checked:pressed { border: none; - image: url(:/qss_icons/rc/checkbox_checked_focus.png); + image: url(:/qss_qdark_icons/rc/checkbox_checked_focus.png); } QCheckBox::indicator:indeterminate { - image: url(:/qss_icons/rc/checkbox_indeterminate.png); + image: url(:/qss_qdark_icons/rc/checkbox_indeterminate.png); } QCheckBox::indicator:indeterminate:focus, QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed { - image: url(:/qss_icons/rc/checkbox_indeterminate_focus.png); + image: url(:/qss_qdark_icons/rc/checkbox_indeterminate_focus.png); } QCheckBox::indicator:checked:disabled, QGroupBox::indicator:checked:disabled { - image: url(:/qss_icons/rc/checkbox_checked_disabled.png); + image: url(:/qss_qdark_icons/rc/checkbox_checked_disabled.png); } QCheckBox::indicator:unchecked:disabled, QGroupBox::indicator:unchecked:disabled { - image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png); + image: url(:/qss_qdark_icons/rc/checkbox_unchecked_disabled.png); } QGroupBox::indicator @@ -166,7 +166,7 @@ QRadioButton::indicator QRadioButton::indicator:unchecked { - image: url(:/qss_icons/rc/radio_unchecked.png); + image: url(:/qss_qdark_icons/rc/radio_unchecked.png); } QRadioButton::indicator:unchecked:hover, @@ -175,14 +175,14 @@ QRadioButton::indicator:unchecked:pressed { border: none; outline: none; - image: url(:/qss_icons/rc/radio_unchecked_focus.png); + image: url(:/qss_qdark_icons/rc/radio_unchecked_focus.png); } QRadioButton::indicator:checked { border: none; outline: none; - image: url(:/qss_icons/rc/radio_checked.png); + image: url(:/qss_qdark_icons/rc/radio_checked.png); } QRadioButton::indicator:checked:hover, @@ -191,18 +191,18 @@ QRadioButton::indicator:checked:pressed { border: none; outline: none; - image: url(:/qss_icons/rc/radio_checked_focus.png); + image: url(:/qss_qdark_icons/rc/radio_checked_focus.png); } QRadioButton::indicator:checked:disabled { outline: none; - image: url(:/qss_icons/rc/radio_checked_disabled.png); + image: url(:/qss_qdark_icons/rc/radio_checked_disabled.png); } QRadioButton::indicator:unchecked:disabled { - image: url(:/qss_icons/rc/radio_unchecked_disabled.png); + image: url(:/qss_qdark_icons/rc/radio_unchecked_disabled.png); } QMenuBar @@ -273,41 +273,41 @@ QMenu::indicator { /* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */ QMenu::indicator:non-exclusive:unchecked { - image: url(:/qss_icons/rc/checkbox_unchecked.png); + image: url(:/qss_qdark_icons/rc/checkbox_unchecked.png); } QMenu::indicator:non-exclusive:unchecked:selected { - image: url(:/qss_icons/rc/checkbox_unchecked_disabled.png); + image: url(:/qss_qdark_icons/rc/checkbox_unchecked_disabled.png); } QMenu::indicator:non-exclusive:checked { - image: url(:/qss_icons/rc/checkbox_checked.png); + image: url(:/qss_qdark_icons/rc/checkbox_checked.png); } QMenu::indicator:non-exclusive:checked:selected { - image: url(:/qss_icons/rc/checkbox_checked_disabled.png); + image: url(:/qss_qdark_icons/rc/checkbox_checked_disabled.png); } /* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */ QMenu::indicator:exclusive:unchecked { - image: url(:/qss_icons/rc/radio_unchecked.png); + image: url(:/qss_qdark_icons/rc/radio_unchecked.png); } QMenu::indicator:exclusive:unchecked:selected { - image: url(:/qss_icons/rc/radio_unchecked_disabled.png); + image: url(:/qss_qdark_icons/rc/radio_unchecked_disabled.png); } QMenu::indicator:exclusive:checked { - image: url(:/qss_icons/rc/radio_checked.png); + image: url(:/qss_qdark_icons/rc/radio_checked.png); } QMenu::indicator:exclusive:checked:selected { - image: url(:/qss_icons/rc/radio_checked_disabled.png); + image: url(:/qss_qdark_icons/rc/radio_checked_disabled.png); } QMenu::right-arrow { margin: 5px; - image: url(:/qss_icons/rc/right_arrow.png) + image: url(:/qss_qdark_icons/rc/right_arrow.png) } @@ -397,7 +397,7 @@ QScrollBar::handle:horizontal QScrollBar::add-line:horizontal { margin: 0px 3px 0px 3px; - border-image: url(:/qss_icons/rc/right_arrow_disabled.png); + border-image: url(:/qss_qdark_icons/rc/right_arrow_disabled.png); width: 10px; height: 10px; subcontrol-position: right; @@ -407,7 +407,7 @@ QScrollBar::add-line:horizontal QScrollBar::sub-line:horizontal { margin: 0px 3px 0px 3px; - border-image: url(:/qss_icons/rc/left_arrow_disabled.png); + border-image: url(:/qss_qdark_icons/rc/left_arrow_disabled.png); height: 10px; width: 10px; subcontrol-position: left; @@ -416,7 +416,7 @@ QScrollBar::sub-line:horizontal QScrollBar::add-line:horizontal:hover,QScrollBar::add-line:horizontal:on { - border-image: url(:/qss_icons/rc/right_arrow.png); + border-image: url(:/qss_qdark_icons/rc/right_arrow.png); height: 10px; width: 10px; subcontrol-position: right; @@ -426,7 +426,7 @@ QScrollBar::add-line:horizontal:hover,QScrollBar::add-line:horizontal:on QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on { - border-image: url(:/qss_icons/rc/left_arrow.png); + border-image: url(:/qss_qdark_icons/rc/left_arrow.png); height: 10px; width: 10px; subcontrol-position: left; @@ -463,7 +463,7 @@ QScrollBar::handle:vertical QScrollBar::sub-line:vertical { margin: 3px 0px 3px 0px; - border-image: url(:/qss_icons/rc/up_arrow_disabled.png); + border-image: url(:/qss_qdark_icons/rc/up_arrow_disabled.png); height: 10px; width: 10px; subcontrol-position: top; @@ -473,7 +473,7 @@ QScrollBar::sub-line:vertical QScrollBar::add-line:vertical { margin: 3px 0px 3px 0px; - border-image: url(:/qss_icons/rc/down_arrow_disabled.png); + border-image: url(:/qss_qdark_icons/rc/down_arrow_disabled.png); height: 10px; width: 10px; subcontrol-position: bottom; @@ -483,7 +483,7 @@ QScrollBar::add-line:vertical QScrollBar::sub-line:vertical:hover,QScrollBar::sub-line:vertical:on { - border-image: url(:/qss_icons/rc/up_arrow.png); + border-image: url(:/qss_qdark_icons/rc/up_arrow.png); height: 10px; width: 10px; subcontrol-position: top; @@ -493,7 +493,7 @@ QScrollBar::sub-line:vertical:hover,QScrollBar::sub-line:vertical:on QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on { - border-image: url(:/qss_icons/rc/down_arrow.png); + border-image: url(:/qss_qdark_icons/rc/down_arrow.png); height: 10px; width: 10px; subcontrol-position: bottom; @@ -534,7 +534,7 @@ QHeaderView::section } QSizeGrip { - image: url(:/qss_icons/rc/sizegrip.png); + image: url(:/qss_qdark_icons/rc/sizegrip.png); width: 12px; height: 12px; } @@ -598,17 +598,33 @@ QToolBar { border-bottom: 1px solid #2b2b2b; } +QToolBar:top{ + border-bottom: 1px solid #2b2b2b; +} + +QToolBar:left{ + border-right: 1px solid #2b2b2b; +} + +QToolBar:right{ + border-left: 1px solid #2b2b2b; +} + +QToolBar:bottom{ + border-top: 1px solid #2b2b2b; +} + QToolBar::handle:horizontal { - image: url(:/qss_icons/rc/Hmovetoolbar.png); + image: url(:/qss_qdark_icons/rc/Hmovetoolbar.png); } QToolBar::handle:vertical { - image: url(:/qss_icons/rc/Vmovetoolbar.png); + image: url(:/qss_qdark_icons/rc/Vmovetoolbar.png); } QToolBar::separator:horizontal { - image: url(:/qss_icons/rc/Hsepartoolbar.png); + image: url(:/qss_qdark_icons/rc/Hsepartoolbar.png); } QToolBar::separator:vertical { - image: url(:/qss_icons/rc/Vsepartoolbar.png); + image: url(:/qss_qdark_icons/rc/Vsepartoolbar.png); } QToolButton#qt_toolbar_ext_button { @@ -616,7 +632,7 @@ QToolButton#qt_toolbar_ext_button { min-width: 8px; width: 8px; padding: 1px; - qproperty-icon: url(:/qss_icons/rc/extend.png); + qproperty-icon: url(:/qss_qdark_icons/rc/extend.png); } QPushButton @@ -714,13 +730,13 @@ QComboBox::drop-down QComboBox::down-arrow { - image: url(:/qss_icons/rc/down_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/down_arrow_disabled.png); } QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus { - image: url(:/qss_icons/rc/down_arrow.png); + image: url(:/qss_qdark_icons/rc/down_arrow.png); } QAbstractSpinBox { @@ -750,25 +766,25 @@ QAbstractSpinBox:down-button } QAbstractSpinBox::up-arrow,QAbstractSpinBox::up-arrow:disabled,QAbstractSpinBox::up-arrow:off { - image: url(:/qss_icons/rc/up_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/up_arrow_disabled.png); width: 10px; height: 10px; } QAbstractSpinBox::up-arrow:hover { - image: url(:/qss_icons/rc/up_arrow.png); + image: url(:/qss_qdark_icons/rc/up_arrow.png); } QAbstractSpinBox::down-arrow,QAbstractSpinBox::down-arrow:disabled,QAbstractSpinBox::down-arrow:off { - image: url(:/qss_icons/rc/down_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/down_arrow_disabled.png); width: 10px; height: 10px; } QAbstractSpinBox::down-arrow:hover { - image: url(:/qss_icons/rc/down_arrow.png); + image: url(:/qss_qdark_icons/rc/down_arrow.png); } @@ -807,18 +823,18 @@ QTabBar:focus } QTabBar::close-button { - image: url(:/qss_icons/rc/close.png); + image: url(:/qss_qdark_icons/rc/close.png); background: transparent; } QTabBar::close-button:hover { - image: url(:/qss_icons/rc/close-hover.png); + image: url(:/qss_qdark_icons/rc/close-hover.png); background: transparent; } QTabBar::close-button:pressed { - image: url(:/qss_icons/rc/close-pressed.png); + image: url(:/qss_qdark_icons/rc/close-pressed.png); background: transparent; } @@ -844,6 +860,16 @@ QTabBar::tab:top:!selected:hover { background-color: #2e2e2e; } +QTabBar::tab:top:!selected:hover { + background-color: #505050; +} + +QTabBar::tab::top:selected +{ + border-top: 2px solid #8fa876; + background-color: #2b2b2b; +} + /* BOTTOM TABS */ QTabBar::tab:bottom { color: #eff0f1; @@ -863,7 +889,13 @@ QTabBar::tab:bottom:!selected } QTabBar::tab:bottom:!selected:hover { - background-color: #2e2e2e; + background-color: #819a67; +} + +QTabBar::tab::bottom:selected +{ + border-bottom: 2px solid #8fa876; + background-color: #2b2b2b; } /* LEFT TABS */ @@ -887,6 +919,16 @@ QTabBar::tab:left:!selected:hover { background-color: #2e2e2e; } +QTabBar::tab:left:!selected:hover { + background-color: #505050; +} + +QTabBar::tab::left:selected +{ + border-left: 2px solid #8fa876; + background-color: #2b2b2b; +} + /* RIGHT TABS */ QTabBar::tab:right { color: #eff0f1; @@ -908,33 +950,44 @@ QTabBar::tab:right:!selected:hover { background-color: #2e2e2e; } +QTabBar::tab:right:!selected:hover { + background-color: #505050; +} + +QTabBar::tab::right:selected +{ + border-bottom: 2px solid #8fa876; + background-color: #2b2b2b; +} + QTabBar QToolButton::right-arrow:enabled { - image: url(:/qss_icons/rc/right_arrow.png); + image: url(:/qss_qdark_icons/rc/right_arrow.png); } QTabBar QToolButton::left-arrow:enabled { - image: url(:/qss_icons/rc/left_arrow.png); + image: url(:/qss_qdark_icons/rc/left_arrow.png); } QTabBar QToolButton::right-arrow:disabled { - image: url(:/qss_icons/rc/right_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/right_arrow_disabled.png); } QTabBar QToolButton::left-arrow:disabled { - image: url(:/qss_icons/rc/left_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/left_arrow_disabled.png); } QDockWidget { background: #383838; border: 1px solid #403F3F; - titlebar-close-icon: url(:/qss_icons/rc/close.png); - titlebar-normal-icon: url(:/qss_icons/rc/undock.png); + titlebar-close-icon: url(:/qss_qdark_icons/rc/transparent.png); + titlebar-normal-icon: url(:/qss_qdark_icons/rc/transparent.png); } QDockWidget::title{ background: #383838; padding-left: 5px; + padding-top: 4px; margin-top: 4px; } @@ -946,7 +999,7 @@ QDockWidget::close-button, QDockWidget::float-button { } QDockWidget::close-button:hover, QDockWidget::float-button:hover { - background: rgba(255, 255, 255, 10); +\\ background: rgba(255, 255, 255, 10); } QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { @@ -954,8 +1007,24 @@ QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { background: rgba(255, 255, 255, 10); } +QDockWidget::close-button { + image: url(:/qss_qdark_icons/rc/close.png); +} + +QDockWidget::close-button:hover { + image: url(:/qss_qdark_icons/rc/close-hover.png); +} + +QDockWidget::float-button { + image: url(:/qss_qdark_icons/rc/undock.png); +} + +QDockWidget::float-button:hover { + image: url(:/qss_qdark_icons/rc/undock-hover.png); +} + QLabel#limeReportLabel{ - color: #7faa18; + color: #8fa876; } QTreeView, QListView @@ -981,35 +1050,35 @@ QTreeView::branch:!selected:hover, QTreeView::item:!selected:hover{ } QTreeView::branch:has-siblings:!adjoins-item { - border-image: url(:/qss_icons/rc/transparent.png); + border-image: url(:/qss_qdark_icons/rc/transparent.png); } QTreeView::branch:has-siblings:adjoins-item { - border-image: url(:/qss_icons/rc/transparent.png); + border-image: url(:/qss_qdark_icons/rc/transparent.png); } QTreeView::branch:!has-children:!has-siblings:adjoins-item { - border-image: url(:/qss_icons/rc/transparent.png); + border-image: url(:/qss_qdark_icons/rc/transparent.png); } QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { - image: url(:/qss_icons/rc/branch_closed.png); + image: url(:/qss_qdark_icons/rc/branch_closed.png); } QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings { - image: url(:/qss_icons/rc/branch_open.png); + image: url(:/qss_qdark_icons/rc/branch_open.png); } QTreeView::branch:has-children:!has-siblings:closed:hover, QTreeView::branch:closed:has-children:has-siblings:hover { - image: url(:/qss_icons/rc/branch_closed-on.png); + image: url(:/qss_qdark_icons/rc/branch_closed-on.png); } QTreeView::branch:open:has-children:!has-siblings:hover, QTreeView::branch:open:has-children:has-siblings:hover { - image: url(:/qss_icons/rc/branch_open-on.png); + image: url(:/qss_qdark_icons/rc/branch_open-on.png); } QSlider::groove:horizontal { @@ -1055,13 +1124,13 @@ QToolButton { QToolButton:hover, QToolButton::menu-button:hover { background-color: #2b2b2b; - border: 1px solid #7faa18; + border: 1px solid #8fa876; } QToolButton:checked, QToolButton:pressed, QToolButton::menu-button:pressed { background-color: #2e2e2e; - border: 1px solid #7faa18; + border: 1px solid #8fa876; } QToolButton:text{ @@ -1087,7 +1156,7 @@ QToolButton:disabled{ \\ \\/* the subcontrol below is used only in the InstantPopup or DelayedPopup mode */ \\QToolButton::menu-indicator { -\\ image: url(:/qss_icons/rc/down_arrow.png); +\\ image: url(:/qss_qdark_icons/rc/down_arrow.png); \\ top: -7px; left: -2px; /* shift it a bit */ \\} \\ @@ -1102,7 +1171,7 @@ QToolButton:disabled{ \\} \\ \\QToolButton::menu-arrow { -\\ image: url(:/qss_icons/rc/down_arrow.png); +\\ image: url(:/qss_qdark_icons/rc/down_arrow.png); \\} \\ \\QToolButton::menu-arrow:open { @@ -1190,11 +1259,11 @@ QHeaderView::section:checked /* style the sort indicator */ QHeaderView::down-arrow { - image: url(:/qss_icons/rc/down_arrow.png); + image: url(:/qss_qdark_icons/rc/down_arrow.png); } QHeaderView::up-arrow { - image: url(:/qss_icons/rc/up_arrow.png); + image: url(:/qss_qdark_icons/rc/up_arrow.png); } @@ -1214,7 +1283,7 @@ QToolBox::tab { font-weight: bold; background-color: #383838; \\ background-color: #2b2b2b; - border: 1px solid #d0d0d0; + border: 2px solid #d0d0d0; border-top: 1px transparent #383838; border-left: 1px transparent #383838; border-right: 1px transparent #383838; @@ -1225,7 +1294,7 @@ QToolBox::tab { QToolBox::tab:hover{ background-color: #2b2b2b; - border-color: #7faa18; + border-color: #8fa876; } QToolBox::tab:selected { /* italicize selected tabs */ @@ -1233,7 +1302,7 @@ QToolBox::tab:selected { /* italicize selected tabs */ font-weight: bold; \\ background-color: #383838; background-color: #2b2b2b; - border-color: #7faa18; + border-color: #8fa876; } QStatusBar::item { @@ -1312,11 +1381,11 @@ QDateEdit::drop-down QDateEdit::down-arrow { - image: url(:/qss_icons/rc/down_arrow_disabled.png); + image: url(:/qss_qdark_icons/rc/down_arrow_disabled.png); } QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus { - image: url(:/qss_icons/rc/down_arrow.png); + image: url(:/qss_qdark_icons/rc/down_arrow.png); } diff --git a/3rdparty/light_style_sheet/COPYING b/3rdparty/light_style_sheet/COPYING new file mode 100644 index 0000000..49f878c --- /dev/null +++ b/3rdparty/light_style_sheet/COPYING @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) <2013-2017> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/3rdparty/light_style_sheet/qlightstyle/lightstyle.qrc b/3rdparty/light_style_sheet/qlightstyle/lightstyle.qrc new file mode 100644 index 0000000..dcc7c27 --- /dev/null +++ b/3rdparty/light_style_sheet/qlightstyle/lightstyle.qrc @@ -0,0 +1,48 @@ + + + rc/up_arrow_disabled.png + rc/Hmovetoolbar.png + rc/stylesheet-branch-end.png + rc/branch_closed-on.png + rc/stylesheet-vline.png + rc/branch_closed.png + rc/branch_open-on.png + rc/transparent.png + rc/right_arrow_disabled.png + rc/sizegrip.png + rc/close.png + rc/close-hover.png + rc/close-pressed.png + rc/down_arrow.png + rc/Vmovetoolbar.png + rc/left_arrow.png + rc/stylesheet-branch-more.png + rc/up_arrow.png + rc/right_arrow.png + rc/left_arrow_disabled.png + rc/Hsepartoolbar.png + rc/branch_open.png + rc/Vsepartoolbar.png + rc/down_arrow_disabled.png + rc/undock.png + rc/undock-hover.png + rc/checkbox_checked_disabled.png + rc/checkbox_checked_focus.png + rc/checkbox_checked.png + rc/checkbox_indeterminate.png + rc/checkbox_indeterminate_focus.png + rc/checkbox_unchecked_disabled.png + rc/checkbox_unchecked_focus.png + rc/checkbox_unchecked.png + rc/radio_checked_disabled.png + rc/radio_checked_focus.png + rc/radio_checked.png + rc/radio_unchecked_disabled.png + rc/radio_unchecked_focus.png + rc/radio_unchecked.png + rc/extend.png + + + lightstyle.qss + + diff --git a/3rdparty/light_style_sheet/qlightstyle/lightstyle.qss b/3rdparty/light_style_sheet/qlightstyle/lightstyle.qss new file mode 100644 index 0000000..61af1cb --- /dev/null +++ b/3rdparty/light_style_sheet/qlightstyle/lightstyle.qss @@ -0,0 +1,1425 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) <2013-2014> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +QToolTip +{ + border: 1px solid #b6b6b6; + background-color: #f0f0f0; + color: #000; +\\ padding: 5px; + +} + +QWidget +{ + color: #000; + background-color: #f0f0f0; + selection-background-color:#000; + selection-color: #000; + background-clip: border; + border-image: none; + border: 0px transparent black; + outline: 0; +} + +QWidget:item:hover +{ + background-color: #b5da91; + color: #000; +} + +QWidget:item:selected +{ + background-color: #b5da91; +} + +QCheckBox +{ + spacing: 5px; + outline: none; + color: #000; + margin-right: 2px; + +} + +QCheckBox::item{ + background-color: #ffffff; +} + +QCheckBox:disabled +{ + color: #494949; +} + +QCheckBox::indicator{ + width: 16px; + height: 16px; + color: #222222; +} + + +QCheckBox::indicator:unchecked +{ + image: url(:/qss_qlight_icons/rc/checkbox_unchecked.png); +} + +QCheckBox::indicator:unchecked:hover, +QCheckBox::indicator:unchecked:focus, +QCheckBox::indicator:unchecked:pressed, +QGroupBox::indicator:unchecked:hover, +QGroupBox::indicator:unchecked:focus, +QGroupBox::indicator:unchecked:pressed +{ + border: none; + image: url(:/qss_qlight_icons/rc/checkbox_unchecked_focus.png); +} + +QCheckBox::indicator:checked +{ + image: url(:/qss_qlight_icons/rc/checkbox_checked.png); +} + +QCheckBox::indicator:checked:hover, +QCheckBox::indicator:checked:focus, +QCheckBox::indicator:checked:pressed, +QGroupBox::indicator:checked:hover, +QGroupBox::indicator:checked:focus, +QGroupBox::indicator:checked:pressed +{ + border: none; + image: url(:/qss_qlight_icons/rc/checkbox_checked_focus.png); +} + + +QCheckBox::indicator:indeterminate +{ + image: url(:/qss_qlight_icons/rc/checkbox_indeterminate.png); +} + +QCheckBox::indicator:indeterminate:focus, +QCheckBox::indicator:indeterminate:hover, +QCheckBox::indicator:indeterminate:pressed +{ + image: url(:/qss_qlight_icons/rc/checkbox_indeterminate_focus.png); +} + +QCheckBox::indicator:checked:disabled, +QGroupBox::indicator:checked:disabled +{ + image: url(:/qss_qlight_icons/rc/checkbox_checked_disabled.png); +} + +QCheckBox::indicator:unchecked:disabled, +QGroupBox::indicator:unchecked:disabled +{ + image: url(:/qss_qlight_icons/rc/checkbox_unchecked_disabled.png); +} + +QGroupBox::indicator +{ + width: 18px; + height: 18px; +} +QGroupBox::indicator +{ + margin-left: 2px; +} + +QRadioButton +{ + spacing: 5px; + outline: none; + color: #000; + margin-bottom: 2px; +} + +QRadioButton:disabled +{ + color: #b6b6b6; +} + +QRadioButton::indicator +{ + width: 16px; + height: 16px; +} + +QRadioButton::indicator:unchecked +{ + image: url(:/qss_qlight_icons/rc/radio_unchecked.png); +} + +QRadioButton::indicator:unchecked:hover, +QRadioButton::indicator:unchecked:focus, +QRadioButton::indicator:unchecked:pressed +{ + border: none; + outline: none; + image: url(:/qss_qlight_icons/rc/radio_unchecked_focus.png); +} + +QRadioButton::indicator:checked +{ + border: none; + outline: none; + image: url(:/qss_qlight_icons/rc/radio_checked.png); +} + +QRadioButton::indicator:checked:hover, +QRadioButton::indicator:checked:focus, +QRadioButton::indicator:checked:pressed +{ + border: none; + outline: none; + image: url(:/qss_qlight_icons/rc/radio_checked_focus.png); +} + +QRadioButton::indicator:checked:disabled +{ + outline: none; + image: url(:/qss_qlight_icons/rc/radio_checked_disabled.png); +} + +QRadioButton::indicator:unchecked:disabled +{ + image: url(:/qss_qlight_icons/rc/radio_unchecked_disabled.png); +} + +QMenuBar +{ + background-color: #f9f9f9; + color: #000; + border-bottom: 1px solid #b6b6b6; +} + +QMenuBar::item +{ + background: transparent; +} + +QMenuBar::item:selected +{ + background: transparent; + background-color: #75bf3f; + border: 1px solid #b6b6b6; +} + +QMenuBar::item:pressed +{ + border: 1px solid #b6b6b6; +\\ background-color: #f9f9f9; + background-color: #75bf3f; + color: #000; + margin-bottom:-1px; + padding-bottom:1px; +} + +QMenu +{ + border: 1px solid #b6b6b6; + color: #000; +\\ margin: 2px; +} + +QMenu::icon +{ + margin: 5px; +} + +QMenu::item +{ + padding: 5px 30px 5px 30px; + border: 1px solid transparent; /* reserve space for selection border */ +} + +QMenu::item:selected +{ + color: #000; +} + +QMenu::separator { + height: 2px; + background: lightblue; + margin-left: 10px; + margin-right: 5px; +} + +QMenu::indicator { + width: 18px; + height: 18px; + padding-left: 4px; +} + +/* non-exclusive indicator = check box style indicator + (see QActionGroup::setExclusive) */ +QMenu::indicator:non-exclusive:unchecked { + image: url(:/qss_qlight_icons/rc/checkbox_unchecked.png); +} + +QMenu::indicator:non-exclusive:unchecked:selected { + image: url(:/qss_qlight_icons/rc/checkbox_unchecked_disabled.png); +} + +QMenu::indicator:non-exclusive:checked { + image: url(:/qss_qlight_icons/rc/checkbox_checked.png); +} + +QMenu::indicator:non-exclusive:checked:selected { + image: url(:/qss_qlight_icons/rc/checkbox_checked_disabled.png); +} + +/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */ +QMenu::indicator:exclusive:unchecked { + image: url(:/qss_qlight_icons/rc/radio_unchecked.png); +} + +QMenu::indicator:exclusive:unchecked:selected { + image: url(:/qss_qlight_icons/rc/radio_unchecked_disabled.png); +} + +QMenu::indicator:exclusive:checked { + image: url(:/qss_qlight_icons/rc/radio_checked.png); +} + +QMenu::indicator:exclusive:checked:selected { + image: url(:/qss_qlight_icons/rc/radio_checked_disabled.png); +} + +QMenu::right-arrow { + margin: 5px; + image: url(:/qss_qlight_icons/rc/right_arrow.png) +} + + +QWidget:disabled +{ + color: #7a7a7a; + background-color: #ffffff; +} + +QAbstractItemView +{ + alternate-background-color: #f0f0f0; + color: #000; + border: 1px solid 3A3939; +\\ border-radius: 2px; +} + +QWidget:focus, QMenuBar:focus +{ + border: 1px solid #4b6807; +} + +QTabWidget:focus, QCheckBox:focus, QRadioButton:focus, QSlider:focus +{ + border: none; +} + +QLineEdit +{ + background-color: #ffffff; + padding-right: 5px; + padding-left: 5px; + padding-top: 1px; + padding-bottom: 1px; + margin: 1px; + border-style: solid; + border: 1px solid #b6b6b6; +\\ border-radius: 2px; + color: #000; +} + +QLineEdit:disabled{ + color: #858585; +} + +QAbstractItemView QLineEdit +{ + padding: 0; +} + +QGroupBox { + margin-top: 1.5em; +} + +QGroupBox::title { + subcontrol-origin: margin; + subcontrol-position: top left; + padding-left: 0px; + padding-right: 0px; + margin-top: 2px; + margin-bottom: 2px; +} + +QAbstractScrollArea +{ +\\ border-radius: 2px; + border: 1px solid #b6b6b6; + background-color: transparent; +} + +QScrollBar:horizontal +{ + height: 15px; + margin: 3px 15px 3px 15px; + border: 1px transparent #efefef; + border-radius: 4px; + background-color: #efefef; +} + +QScrollBar::handle:horizontal +{ + background-color: #8f8f8f; + min-width: 5px; + border-radius: 4px; +} + +QScrollBar::add-line:horizontal +{ + margin: 0px 3px 0px 3px; + border-image: url(:/qss_qlight_icons/rc/right_arrow_disabled.png); + width: 10px; + height: 10px; + subcontrol-position: right; + subcontrol-origin: margin; +} + +QScrollBar::sub-line:horizontal +{ + margin: 0px 3px 0px 3px; + border-image: url(:/qss_qlight_icons/rc/left_arrow_disabled.png); + height: 10px; + width: 10px; + subcontrol-position: left; + subcontrol-origin: margin; +} + +QScrollBar::add-line:horizontal:hover,QScrollBar::add-line:horizontal:on +{ + border-image: url(:/qss_qlight_icons/rc/right_arrow.png); + height: 10px; + width: 10px; + subcontrol-position: right; + subcontrol-origin: margin; +} + + +QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on +{ + border-image: url(:/qss_qlight_icons/rc/left_arrow.png); + height: 10px; + width: 10px; + subcontrol-position: left; + subcontrol-origin: margin; +} + +QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal +{ + background: none; +} + + +QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal +{ + background: none; +} + +QScrollBar:vertical +{ + background-color: #efefef; + width: 15px; + margin: 15px 3px 15px 3px; + border: 1px transparent #efefef; + border-radius: 4px; +} + +QScrollBar::handle:vertical +{ + background-color: #8f8f8f; + min-height: 5px; + border-radius: 4px; +} + +QScrollBar::sub-line:vertical +{ + margin: 3px 0px 3px 0px; + border-image: url(:/qss_qlight_icons/rc/up_arrow_disabled.png); + height: 10px; + width: 10px; + subcontrol-position: top; + subcontrol-origin: margin; +} + +QScrollBar::add-line:vertical +{ + margin: 3px 0px 3px 0px; + border-image: url(:/qss_qlight_icons/rc/down_arrow_disabled.png); + height: 10px; + width: 10px; + subcontrol-position: bottom; + subcontrol-origin: margin; +} + +QScrollBar::sub-line:vertical:hover,QScrollBar::sub-line:vertical:on +{ + + border-image: url(:/qss_qlight_icons/rc/up_arrow.png); + height: 10px; + width: 10px; + subcontrol-position: top; + subcontrol-origin: margin; +} + + +QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on +{ + border-image: url(:/qss_qlight_icons/rc/down_arrow.png); + height: 10px; + width: 10px; + subcontrol-position: bottom; + subcontrol-origin: margin; +} + +QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical +{ + background: none; +} + +QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical +{ + background: none; +} + +QTextEdit +{ + background-color: #ffffff; + color: #000; + border: 1px solid #b6b6b6; +} + +QPlainTextEdit +{ + background-color: #ffffff;; + color: #000; +\\ border-radius: 2px; + border: 1px solid #b6b6b6; +} + +QHeaderView::section +{ + background-color: #b6b6b6; + color: #000; + padding: 5px; + border: 1px solid #b6b6b6; +} + +QSizeGrip { + image: url(:/qss_qlight_icons/rc/sizegrip.png); + width: 12px; + height: 12px; +} + + +QMainWindow::separator +{ + background-color: #f0f0f0; + color: white; + padding-left: 4px; + spacing: 2px; + border: 1px dashed #b6b6b6; +} + +QMainWindow::separator:hover +{ + + background-color: #787876; + color: white; + padding-left: 4px; + border: 1px solid #b6b6b6; + spacing: 2px; +} + + +QMenu::separator +{ + height: 1px; + background-color: #b6b6b6; + color: white; + padding-left: 4px; + margin-left: 10px; + margin-right: 5px; +} + + +QFrame +{ + border-radius: 0px; +\\ border-top: 1px solid #494949; +\\ border-left: 1px solid #494949; + border-top: 1px solid #b6b6b6; + border-left: 1px solid #b6b6b6; + border-bottom: 1px solid #b6b6b6; + border-right: 1px solid #b6b6b6; +} + +QFrame[frameShape="0"] +{ +\\ border-radius: 2px; + border: 1px transparent #b6b6b6; +} + +QStackedWidget +{ + border: 1px transparent black; +} + +QToolBar { +\\ border: 1px solid #b6b6b6; +\\ background: #f0f0f0; + font-weight: bold; + border-bottom: 1px solid #b6b6b6; +} + +QToolBar:top{ + border-bottom: 1px solid #b6b6b6; +} + +QToolBar:left{ + border-right: 1px solid #b6b6b6; +} + +QToolBar:right{ + border-left: 1px solid #b6b6b6; +} + +QToolBar:bottom{ + border-top: 1px solid #b6b6b6; +} + +QToolBar::handle:horizontal { + image: url(:/qss_qlight_icons/rc/Hmovetoolbar.png); +} +QToolBar::handle:vertical { + image: url(:/qss_qlight_icons/rc/Vmovetoolbar.png); +} +QToolBar::separator:horizontal { + image: url(:/qss_qlight_icons/rc/Hsepartoolbar.png); +} +QToolBar::separator:vertical { + image: url(:/qss_qlight_icons/rc/Vsepartoolbar.png); +} + +QToolButton#qt_toolbar_ext_button { + background: transparent; + min-width: 8px; + width: 8px; + padding: 1px; + qproperty-icon: url(:/qss_qlight_icons/rc/extend.png); +} + +QPushButton +{ + color: #000; + background-color: #ffffff; + border-width: 1px; + border-color: #b6b6b6; + border-style: solid; + padding: 5px; +\\ border-radius: 2px; + outline: none; +} + +QPushButton:disabled +{ + background-color: #f0f0f0; + border-width: 1px; + border-color: #454545; + border-style: solid; + padding-top: 5px; + padding-bottom: 5px; + padding-left: 10px; + padding-right: 10px; +\\ border-radius: 2px; + color: #454545; +} + +QPushButton:focus { + background-color: #b5da91; + color: #000; +} + +QPushButton:pressed +{ + background-color: #f9f9f9; + padding-top: -15px; + padding-bottom: -17px; +} + +QComboBox +{ + background-color: #fff; + selection-background-color: #f9f9f9; + border-style: solid; + border: 1px solid #b6b6b6; +\\ border-radius: 2px; + padding-right: 5px; + padding-left: 5px; + padding-top: 1px; + padding-bottom: 1px; + margin: 1px; + min-width: 75px; +} + +QPushButton:checked{ + background-color: #b6b6b6; + border-color: #6A6969; +} + +QComboBox:hover,QPushButton:hover,QAbstractSpinBox:hover,QLineEdit:hover, +QTextEdit:hover,QPlainTextEdit:hover,QAbstractView:hover,QTreeView:hover, +QTableView:hover, QTableWidget::hover, QListWidget::hover +{ + border: 1px solid #75bf3f; + color: #000; +} + +QPushButton:hover +{ + background-color: #c3e9a7; +} + +QComboBox:on +{ + padding-top: 3px; + padding-left: 4px; + selection-background-color: #4a4a4a; +} + +QAbstractItemView +{ + background-color: #ffffff; +\\ border-radius: 2px; + border: 1px solid #b6b6b6; + selection-color: #000; + selection-background-color: #b5da91; +} + +QComboBox QAbstractItemView +{ + background-color: #ffffff; +\\ border-radius: 2px; + border: 1px solid #b6b6b6; + selection-color: #000; + selection-background-color: #b5da91; +} + +QComboBox::drop-down +{ + subcontrol-origin: padding; + subcontrol-position: top right; + width: 15px; + + border-left-width: 0px; + border-left-color: darkgray; + border-left-style: solid; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +QComboBox::down-arrow +{ + image: url(:/qss_qlight_icons/rc/down_arrow_disabled.png); +} + +QComboBox::down-arrow:on, QComboBox::down-arrow:hover, +QComboBox::down-arrow:focus +{ +\\ image: url(:/qss_qlight_icons/rc/down_arrow.png); +} + +QAbstractSpinBox { + padding-right: 5px; + padding-left: 5px; + padding-top: 1px; + padding-bottom: 1px; + margin: 1px; + border: 1px solid #b6b6b6; + background-color: #ffffff; + color: #000; +\\ border-radius: 2px; +} + +QAbstractSpinBox:up-button +{ + background-color: transparent; + subcontrol-origin: border; + subcontrol-position: top right; +} + +QAbstractSpinBox:down-button +{ + background-color: transparent; + subcontrol-origin: border; + subcontrol-position: bottom right; +} + +QAbstractSpinBox::up-arrow,QAbstractSpinBox::up-arrow:disabled,QAbstractSpinBox::up-arrow:off { + image: url(:/qss_qlight_icons/rc/up_arrow_disabled.png); + width: 10px; + height: 10px; +} +QAbstractSpinBox::up-arrow:hover +{ + image: url(:/qss_qlight_icons/rc/up_arrow.png); +} + + +QAbstractSpinBox::down-arrow,QAbstractSpinBox::down-arrow:disabled,QAbstractSpinBox::down-arrow:off +{ + image: url(:/qss_qlight_icons/rc/down_arrow_disabled.png); + width: 10px; + height: 10px; +} +QAbstractSpinBox::down-arrow:hover +{ + image: url(:/qss_qlight_icons/rc/down_arrow.png); +} + + +QLabel +{ + border: 0px solid black; +} + +QTabWidget{ + border: 0px transparent black; +} + +QTabWidget::pane { + border: 1px solid #b6b6b6; + background-color: #ffffff; + padding: 5px; +} + +QTabWidget QWidget{ + background-color: #ffffff; +} + +QTabWidget::tab-bar { + left: 5px; /* move to the right by 5px */ +} + +QTabBar +{ + qproperty-drawBase: 0; + border-radius: 3px; +} + +QTabBar:focus +{ + border: 0px transparent black; +} + +QTabBar::close-button { + image: url(:/qss_qlight_icons/rc/close.png); + background: transparent; +} + +QTabBar::close-button:hover +{ + image: url(:/qss_qlight_icons/rc/close-hover.png); + background: transparent; +} + +QTabBar::close-button:pressed { + image: url(:/qss_qlight_icons/rc/close-pressed.png); + background: transparent; +} + +/* TOP TABS */ +QTabBar::tab:top { + color: #000; + border: 1px solid #b6b6b6; + border-bottom: 1px solid transparent; + background-color: #ffffff; + padding: 5px; + min-width: 10px; + margin-bottom: -1; +} + +QTabBar::tab:top:!selected +{ + color: #000; + background-color: #f8f8f8; + border: 1px solid transparent; +} + +QTabBar::tab:top:selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab:top:!selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab::top:selected +{ + border-top: 2px solid #75bf3f; + background-color: #fff; + +} + +/* BOTTOM TABS */ +QTabBar::tab:bottom { + color: #000; + border: 1px solid #b6b6b6; + border-top: 1px solid #ffffff; + background-color: #ffffff; + padding: 5px; + min-width: 10px; + margin-top: -1; +} + +QTabBar::tab:bottom:!selected +{ + color: #000; + background-color: #f3f3f3; + border: 1px solid transparent; +} + +QTabBar::tab:bottom:selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab:bottom:!selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab::bottom:selected +{ + border-bottom: 2px solid #75bf3f; + background-color: #fff; +} + +/* LEFT TABS */ +QTabBar::tab:left { + color: #000; + border: 1px solid #b6b6b6; + border-left: 1px solid #ffffff; + background-color: #ffffff; + padding: 5px; + min-height: 10px; +} + +QTabBar::tab:left:!selected +{ + color: #000; + background-color: #f8f8f8; + border: 1px solid transparent; +} + +QTabBar::tab:left:selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab:left:!selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab::left:selected +{ + border-left: 2px solid #75bf3f; + background-color: #fff; +} + +/* RIGHT TABS */ +QTabBar::tab:right { + color: #000; + border: 1px solid #b6b6b6; + border-right: 1px solid #ffffff; + background-color: #ffffff; + padding: 5px; + min-height: 10px; +} + +QTabBar::tab:right:!selected +{ + color: #000; + background-color: #f8f8f8; + border: 1px solid transparent; +} + +QTabBar::tab:right:!selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab:right:!selected:hover { + background-color: #c3e9a7; +} + +QTabBar::tab::right:selected +{ + border-bottom: 2px solid #75bf3f; + background-color: #fff; +} + +QTabBar QToolButton::right-arrow:enabled { + image: url(:/qss_qlight_icons/rc/right_arrow.png); +} + + QTabBar QToolButton::left-arrow:enabled { + image: url(:/qss_qlight_icons/rc/left_arrow.png); +} + +QTabBar QToolButton::right-arrow:disabled { + image: url(:/qss_qlight_icons/rc/right_arrow_disabled.png); +} + + QTabBar QToolButton::left-arrow:disabled { + image: url(:/qss_qlight_icons/rc/left_arrow_disabled.png); +} + + +QDockWidget { + background: #f0f0f0; + border: 1px solid #403F3F; + titlebar-close-icon: url(:/qss_qlight_icons/rc/transparent.png); + titlebar-normal-icon: url(:/qss_qlight_icons/rc/transparent.png); +} + +QDockWidget::title{ +\\ background: #f0f0f0; + background-color: #d2d2d2; + padding-left: 5px; + padding-top: 4px; + margin-top: 4px; +} + + +QDockWidget::close-button, QDockWidget::float-button { + border: 1px solid transparent; + border-radius: 2px; + background: transparent; +} + +QDockWidget::close-button:hover, QDockWidget::float-button:hover { +\\ background: rgba(255, 255, 255, 10); +\\ background-color: #fff; +} + +QDockWidget::close-button { + image: url(:/qss_qlight_icons/rc/close.png); +} + +QDockWidget::close-button:hover { + image: url(:/qss_qlight_icons/rc/close-hover.png); +} + +QDockWidget::float-button { + image: url(:/qss_qlight_icons/rc/undock.png); +} + +QDockWidget::float-button:hover { + image: url(:/qss_qlight_icons/rc/undock-hover.png); +} + +QDockWidget::close-button:pressed, QDockWidget::float-button:pressed { + padding: 1px -1px -1px 1px; + background: rgba(255, 255, 255, 10); +} + +QLabel#limeReportLabel{ + color: #75bf3f; +} + +QTreeView, QListView +{ + border-top: 1px solid #b6b6b6; + border-left: 1px solid #b6b6b6; + border-bottom: 1px solid #b6b6b6; + border-right: 1px solid #b6b6b6; + background-color: #ffffff; +} + +QTreeView::item, QListView::item{ + height: 25px; +} + +QTreeView::branch:selected{ + background-color: #b5da91; +} + +QTreeView::branch:!selected:hover, QTreeView::item:!selected:hover{ +\\ background-color: #287399; + background-color: #b5da91; +} + +QTreeView::branch:has-siblings:!adjoins-item { + border-image: url(:/qss_qlight_icons/rc/transparent.png); +} + +QTreeView::branch:has-siblings:adjoins-item { + border-image: url(:/qss_qlight_icons/rc/transparent.png); +} + +QTreeView::branch:!has-children:!has-siblings:adjoins-item { + border-image: url(:/qss_qlight_icons/rc/transparent.png); +} + +QTreeView::branch:has-children:!has-siblings:closed, +QTreeView::branch:closed:has-children:has-siblings { + image: url(:/qss_qlight_icons/rc/branch_closed.png); +} + +QTreeView::branch:open:has-children:!has-siblings, +QTreeView::branch:open:has-children:has-siblings { + image: url(:/qss_qlight_icons/rc/branch_open.png); +} + +QTreeView::branch:has-children:!has-siblings:closed:hover, +QTreeView::branch:closed:has-children:has-siblings:hover { + image: url(:/qss_qlight_icons/rc/branch_closed-on.png); +} + +QTreeView::branch:open:has-children:!has-siblings:hover, +QTreeView::branch:open:has-children:has-siblings:hover { + image: url(:/qss_qlight_icons/rc/branch_open-on.png); +} + +QSlider::groove:horizontal { + border: 1px solid #565a5e; + height: 4px; + background: #565a5e; + margin: 0px; + border-radius: 2px; +} + +QSlider::handle:horizontal { + background: #ffffff; + border: 1px solid #565a5e; + width: 16px; + height: 16px; + margin: -8px 0; + border-radius: 9px; +} + +QSlider::groove:vertical { + border: 1px solid #565a5e; + width: 4px; + background: #565a5e; + margin: 0px; + border-radius: 3px; +} + +QSlider::handle:vertical { + background: #ffffff; + border: 1px solid #565a5e; + width: 16px; + height: 16px; + margin: 0 -8px; + border-radius: 9px; +} + +QToolButton { + color : #000; + border: 1px solid transparent; + margin: 2px; + padding: 2px; +} + +QToolButton:hover, QToolButton::menu-button:hover { + background-color: #c3e9a7;; + border: 1px solid #75bf3f; +} + +QToolButton:checked, QToolButton:pressed, + QToolButton::menu-button:pressed { + background-color: #fff; + border: 1px solid #75bf3f; +} + +QToolButton:hover:checked +{ + background-color: #c3e9a7;; +} + +QToolButton:text{ + color: #000; +} + +QToolButton:disabled{ + background-color: transparent; + border: 1px transparent #b6b6b6; +} + +\\ +\\QToolButton[popupMode="1"] { /* only for MenuButtonPopup */ +\\ padding-right: 20px; /* make way for the popup button */ +\\ border: 1px #b6b6b6; +\\ border-radius: 5px; +\\} +\\ +\\QToolButton[popupMode="2"] { /* only for InstantPopup */ +\\ padding-right: 10px; /* make way for the popup button */ +\\ border: 1px #b6b6b6; +\\} +\\ +\\/* the subcontrol below is used only in the InstantPopup or DelayedPopup mode */ +\\QToolButton::menu-indicator { +\\ image: url(:/qss_qlight_icons/rc/down_arrow.png); +\\ top: -7px; left: -2px; /* shift it a bit */ +\\} +\\ +\\/* the subcontrols below are used only in the MenuButtonPopup mode */ +\\QToolButton::menu-button { +\\ border: 1px transparent #b6b6b6; +\\ border-top-right-radius: 6px; +\\ border-bottom-right-radius: 6px; +\\ /* 16px width + 4px for border = 20px allocated above */ +\\ width: 16px; +\\ outline: none; +\\} +\\ +\\QToolButton::menu-arrow { +\\ image: url(:/qss_qlight_icons/rc/down_arrow.png); +\\} +\\ +\\QToolButton::menu-arrow:open { +\\ border: 1px solid #b6b6b6; +\\} + +QPushButton::menu-indicator { + subcontrol-origin: padding; + subcontrol-position: bottom right; + left: 8px; +} + +QTableView +{ + border: 1px solid #b6b6b6; + gridline-color: #f0f0f0; + background-color: #ffffff; +} + + +QTableView, QHeaderView +{ + border-radius: 0px; +} + +QTableView::item:pressed, QListView::item:pressed { + background: #b5da91; + color: #000; +} + +QTableView::item:selected:active, QListView::item:selected:active { + background: #b5da91; + color: #000; +} + +QTableView::focus{ + border: 1px solid #4b6807 +} + +QHeaderView +{ + background-color: #f0f0f0; + border: 1px transparent; + border-radius: 0px; + margin: 0px; + padding: 0px; + +} + +QHeaderView::section { + background-color: #f0f0f0; +\\ background-color: #000; + color: #000; + padding: 5px; + border-top: 1px transparent #b6b6b6; + border-left: 1px solid #b6b6b6; + border-right: 1px solid #b6b6b6; + border-bottom: 1px solid #b6b6b6; + border-radius: 0px; + text-align: center; +} + +QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one +{ + border-top: 1px transparent #b6b6b6; +} + +QHeaderView::section::vertical +{ + border-top: transparent; +} + +QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one +{ + border-left: 1px transparent #b6b6b6; +} + +QHeaderView::section::horizontal +{ + border-left: transparent; +} + + +QHeaderView::section:checked + { + color: white; + background-color: #334e5e; + } + + /* style the sort indicator */ +QHeaderView::down-arrow { + image: url(:/qss_qlight_icons/rc/down_arrow.png); +} + +QHeaderView::up-arrow { + image: url(:/qss_qlight_icons/rc/up_arrow.png); +} + + +QTableCornerButton::section { + background-color: #f0f0f0; + border: 1px transparent #b6b6b6; + border-radius: 0px; +} + +QToolBox { + padding: 5px; + border: 1px transparent black; +} + +QToolBox::tab { + color: #000; + font-weight: bold; + background-color: #f0f0f0; +\\ background-color: #b6b6b6; + border: 2px solid #d0d0d0; + border-top: 1px transparent #f0f0f0; + border-left: 1px transparent #f0f0f0; + border-right: 1px transparent #f0f0f0; +\\ border-bottom: 1px transparent #f0f0f0; +\\ border-top-left-radius: 5px; +\\ border-top-right-radius: 5px; +} + +QToolBox::tab:hover{ + background-color: #c3e9a7; + border-color: #75bf3f; +} + +QToolBox::tab:selected { /* italicize selected tabs */ +\\ font: italic; + font-weight: bold; +\\ background-color: #f0f0f0; + background-color: #fff; + border-color: #75bf3f; + } + +QStatusBar::item { + border: 0px transparent dark; + } + + +QFrame[height="3"], QFrame[width="3"] { + background-color: #b6b6b6; +} + + +QSplitter::handle { + border: 1px dashed #b6b6b6; +} + +QSplitter::handle:hover { + background-color: #787876; + border: 1px solid #b6b6b6; +} + +QSplitter::handle:horizontal { + width: 1px; +} + +QSplitter::handle:vertical { + height: 1px; +} + +QProgressBar { + border: 1px solid #b6b6b6; + border-radius: 5px; + text-align: center; +} + +QProgressBar::chunk { + background-color: #05B8CC; +} + +QDateEdit +{ + selection-background-color: #f9f9f9; + border-style: solid; + border: 1px solid #3375A3; + border-radius: 2px; + padding: 1px; + min-width: 75px; +} + +QDateEdit:on +{ + padding-top: 3px; + padding-left: 4px; + selection-background-color: #4a4a4a; +} + +QDateEdit QAbstractItemView +{ + background-color: #ffffff; + border-radius: 2px; + border: 1px solid #3375A3; + selection-background-color: #f9f9f9; +} + +QDateEdit::drop-down +{ + subcontrol-origin: padding; + subcontrol-position: top right; + width: 15px; + border-left-width: 0px; + border-left-color: darkgray; + border-left-style: solid; + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +QDateEdit::down-arrow +{ + image: url(:/qss_qlight_icons/rc/down_arrow_disabled.png); +} + +QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, +QDateEdit::down-arrow:focus +{ + image: url(:/qss_qlight_icons/rc/down_arrow.png); +} diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/Hmovetoolbar.png b/3rdparty/light_style_sheet/qlightstyle/rc/Hmovetoolbar.png new file mode 100644 index 0000000..349b9f0 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/Hmovetoolbar.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/Hsepartoolbar.png b/3rdparty/light_style_sheet/qlightstyle/rc/Hsepartoolbar.png new file mode 100644 index 0000000..70465de Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/Hsepartoolbar.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/Vmovetoolbar.png b/3rdparty/light_style_sheet/qlightstyle/rc/Vmovetoolbar.png new file mode 100644 index 0000000..bc63f26 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/Vmovetoolbar.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/Vsepartoolbar.png b/3rdparty/light_style_sheet/qlightstyle/rc/Vsepartoolbar.png new file mode 100644 index 0000000..14b9d13 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/Vsepartoolbar.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed-on.png b/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed-on.png new file mode 100644 index 0000000..d081e9b Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed-on.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed.png b/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed.png new file mode 100644 index 0000000..d652159 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/branch_closed.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/branch_open-on.png b/3rdparty/light_style_sheet/qlightstyle/rc/branch_open-on.png new file mode 100644 index 0000000..ec372b2 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/branch_open-on.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/branch_open.png b/3rdparty/light_style_sheet/qlightstyle/rc/branch_open.png new file mode 100644 index 0000000..66f8e1a Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/branch_open.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked.png new file mode 100644 index 0000000..830cfee Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_disabled.png new file mode 100644 index 0000000..cb63cc2 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_focus.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_focus.png new file mode 100644 index 0000000..5b04d83 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_checked_focus.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate.png new file mode 100644 index 0000000..41024f7 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_disabled.png new file mode 100644 index 0000000..abdc01d Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_focus.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_focus.png new file mode 100644 index 0000000..fea239d Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_indeterminate_focus.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked.png new file mode 100644 index 0000000..2159aca Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_disabled.png new file mode 100644 index 0000000..ade721e Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_focus.png b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_focus.png new file mode 100644 index 0000000..c037864 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/checkbox_unchecked_focus.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/cloce.png b/3rdparty/light_style_sheet/qlightstyle/rc/cloce.png new file mode 100644 index 0000000..fe232e4 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/cloce.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/close-hover.png b/3rdparty/light_style_sheet/qlightstyle/rc/close-hover.png new file mode 100644 index 0000000..fbd7463 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/close-hover.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/close-pressed.png b/3rdparty/light_style_sheet/qlightstyle/rc/close-pressed.png new file mode 100644 index 0000000..937d005 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/close-pressed.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/close.png b/3rdparty/light_style_sheet/qlightstyle/rc/close.png new file mode 100644 index 0000000..2a5f8ed Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/close.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow.png b/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow.png new file mode 100644 index 0000000..e271f7f Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow_disabled.png new file mode 100644 index 0000000..5805d98 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/down_arrow_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/extend.png b/3rdparty/light_style_sheet/qlightstyle/rc/extend.png new file mode 100644 index 0000000..c5fd75a Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/extend.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow.png b/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow.png new file mode 100644 index 0000000..f808d2d Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow_disabled.png new file mode 100644 index 0000000..f5b9af8 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/left_arrow_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked.png new file mode 100644 index 0000000..235e6b0 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_disabled.png new file mode 100644 index 0000000..bf0051e Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_focus.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_focus.png new file mode 100644 index 0000000..bea316d Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_checked_focus.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked.png new file mode 100644 index 0000000..9a4def6 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_disabled.png new file mode 100644 index 0000000..6ece890 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_focus.png b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_focus.png new file mode 100644 index 0000000..b094c26 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/radio_unchecked_focus.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow.png b/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow.png new file mode 100644 index 0000000..9b0a4e6 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow_disabled.png new file mode 100644 index 0000000..5c0bee4 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/right_arrow_disabled.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/sizegrip.png b/3rdparty/light_style_sheet/qlightstyle/rc/sizegrip.png new file mode 100644 index 0000000..350583a Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/sizegrip.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-end.png b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-end.png new file mode 100644 index 0000000..cb5d3b5 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-end.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-more.png b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-more.png new file mode 100644 index 0000000..6271140 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-branch-more.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-vline.png b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-vline.png new file mode 100644 index 0000000..87536cc Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/stylesheet-vline.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/transparent.png b/3rdparty/light_style_sheet/qlightstyle/rc/transparent.png new file mode 100644 index 0000000..483df25 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/transparent.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/undock-hover.png b/3rdparty/light_style_sheet/qlightstyle/rc/undock-hover.png new file mode 100644 index 0000000..1dfd698 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/undock-hover.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/undock.png b/3rdparty/light_style_sheet/qlightstyle/rc/undock.png new file mode 100644 index 0000000..a54c9f6 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/undock.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow.png b/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow.png new file mode 100644 index 0000000..abcc724 Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow.png differ diff --git a/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow_disabled.png b/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow_disabled.png new file mode 100644 index 0000000..b9c8e3b Binary files /dev/null and b/3rdparty/light_style_sheet/qlightstyle/rc/up_arrow_disabled.png differ diff --git a/3rdparty/light_style_sheet/svg/checkbox_checked.svg b/3rdparty/light_style_sheet/svg/checkbox_checked.svg new file mode 100644 index 0000000..a0f5045 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_checked.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_checked_disabled.svg b/3rdparty/light_style_sheet/svg/checkbox_checked_disabled.svg new file mode 100644 index 0000000..79e23f2 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_checked_disabled.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_checked_focus.svg b/3rdparty/light_style_sheet/svg/checkbox_checked_focus.svg new file mode 100644 index 0000000..2683c6b --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_checked_focus.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_indeterminate.svg b/3rdparty/light_style_sheet/svg/checkbox_indeterminate.svg new file mode 100644 index 0000000..648734a --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_indeterminate.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_indeterminate_disabled.svg b/3rdparty/light_style_sheet/svg/checkbox_indeterminate_disabled.svg new file mode 100644 index 0000000..79f9afb --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_indeterminate_disabled.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_indeterminate_focus.svg b/3rdparty/light_style_sheet/svg/checkbox_indeterminate_focus.svg new file mode 100644 index 0000000..22d7337 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_indeterminate_focus.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_unchecked.svg b/3rdparty/light_style_sheet/svg/checkbox_unchecked.svg new file mode 100644 index 0000000..b365e1b --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_unchecked.svg @@ -0,0 +1,71 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_unchecked_disabled.svg b/3rdparty/light_style_sheet/svg/checkbox_unchecked_disabled.svg new file mode 100644 index 0000000..a2a2059 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_unchecked_disabled.svg @@ -0,0 +1,71 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/checkbox_unchecked_focus.svg b/3rdparty/light_style_sheet/svg/checkbox_unchecked_focus.svg new file mode 100644 index 0000000..ffb2523 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/checkbox_unchecked_focus.svg @@ -0,0 +1,71 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_checked.svg b/3rdparty/light_style_sheet/svg/radio_checked.svg new file mode 100644 index 0000000..062c7ec --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_checked.svg @@ -0,0 +1,73 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_checked_disabled.svg b/3rdparty/light_style_sheet/svg/radio_checked_disabled.svg new file mode 100644 index 0000000..c0d9720 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_checked_disabled.svg @@ -0,0 +1,73 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_checked_focus.svg b/3rdparty/light_style_sheet/svg/radio_checked_focus.svg new file mode 100644 index 0000000..458c051 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_checked_focus.svg @@ -0,0 +1,73 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_unchecked.svg b/3rdparty/light_style_sheet/svg/radio_unchecked.svg new file mode 100644 index 0000000..83db993 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_unchecked.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_unchecked_disabled.svg b/3rdparty/light_style_sheet/svg/radio_unchecked_disabled.svg new file mode 100644 index 0000000..0297243 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_unchecked_disabled.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/3rdparty/light_style_sheet/svg/radio_unchecked_focus.svg b/3rdparty/light_style_sheet/svg/radio_unchecked_focus.svg new file mode 100644 index 0000000..3f5e289 --- /dev/null +++ b/3rdparty/light_style_sheet/svg/radio_unchecked_focus.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/include/lrglobal.h b/include/lrglobal.h index 76af327..da6ab47 100644 --- a/include/lrglobal.h +++ b/include/lrglobal.h @@ -90,7 +90,7 @@ namespace Const{ const QString DATAFUNCTIONS_MANAGER_NAME = "DatasourceFunctions"; const QString EOW("~!@#$%^&*()+{}|:\"<>?,/;'[]\\-="); const int DEFAULT_TAB_INDENTION = 4; - + const int DOCKWIDGET_MARGINS = 4; } QString extractClassName(QString className); QString escapeSimbols(const QString& value); diff --git a/limereport/databrowser/lrdatabrowser.cpp b/limereport/databrowser/lrdatabrowser.cpp index 5e335f2..2deebd6 100644 --- a/limereport/databrowser/lrdatabrowser.cpp +++ b/limereport/databrowser/lrdatabrowser.cpp @@ -63,6 +63,8 @@ DataBrowser::DataBrowser(QWidget *parent) : connect(ui->changeConnection,SIGNAL(clicked()),this,SLOT(slotChangeConnection())); connect(ui->pbConnect,SIGNAL(clicked()),this,SLOT(slotChangeConnectionState())); + ui->verticalLayout_2->setMargin(Const::DOCKWIDGET_MARGINS); + ui->dataTree->setHeaderLabel(tr("Datasources")); ui->pbConnect->setEnabled(false); } diff --git a/limereport/lrglobal.h b/limereport/lrglobal.h index 76af327..da6ab47 100644 --- a/limereport/lrglobal.h +++ b/limereport/lrglobal.h @@ -90,7 +90,7 @@ namespace Const{ const QString DATAFUNCTIONS_MANAGER_NAME = "DatasourceFunctions"; const QString EOW("~!@#$%^&*()+{}|:\"<>?,/;'[]\\-="); const int DEFAULT_TAB_INDENTION = 4; - + const int DOCKWIDGET_MARGINS = 4; } QString extractClassName(QString className); QString escapeSimbols(const QString& value); diff --git a/limereport/lrreportdesignwidget.cpp b/limereport/lrreportdesignwidget.cpp index 343789a..42e6297 100644 --- a/limereport/lrreportdesignwidget.cpp +++ b/limereport/lrreportdesignwidget.cpp @@ -57,7 +57,7 @@ ReportDesignWidget::ReportDesignWidget(ReportEnginePrivateInterface* report, QSe m_dialogDesignerManager(new DialogDesignerManager(this)), #endif m_mainWindow(mainWindow), m_verticalGridStep(10), m_horizontalGridStep(10), m_useGrid(false), - m_dialogChanged(false), m_useDarkTheme(false), m_settings(settings) + m_dialogChanged(false), m_theme("Default"), m_settings(settings) { #ifdef HAVE_QT4 m_tabWidget = new LimeReportTabWidget(this); @@ -100,6 +100,10 @@ ReportDesignWidget::ReportDesignWidget(ReportEnginePrivateInterface* report, QSe connect(m_dialogDesignerManager, SIGNAL(dialogNameChanged(QString,QString)), this, SLOT(slotDialogNameChanged(QString,QString))); #endif + + m_themes.insert("Default",""); + initThemeIfExist("Dark", ":/qdarkstyle/style.qss"); + initThemeIfExist("Light", ":/qlightstyle/lightstyle.qss"); } #ifdef HAVE_QTDESIGNER_INTEGRATION @@ -185,7 +189,7 @@ void ReportDesignWidget::saveState() m_settings->setValue("vGridStep",m_verticalGridStep); m_settings->setValue("defaultFont",m_defaultFont); m_settings->setValue("useGrid",m_useGrid); - m_settings->setValue("useDarkTheme",m_useDarkTheme); + m_settings->setValue("theme",m_theme); m_settings->setValue("ScriptEditorState", m_scriptEditor->saveState()); m_settings->endGroup(); } @@ -196,17 +200,27 @@ void ReportDesignWidget::applySettings() m_report->pageAt(i)->pageItem()->setFont(m_defaultFont); } applyUseGrid(); - if (m_useDarkTheme) { - QFile theme(":/qdarkstyle/style.qss"); - theme.open(QIODevice::ReadOnly); - QString styleSheet = theme.readAll(); - parentWidget()->setStyleSheet(styleSheet); - m_report->setStyleSheet(styleSheet); + + if (m_themes.contains(m_theme)){ + parentWidget()->setStyleSheet(m_themes.value(m_theme)); + m_report->setStyleSheet(m_themes.value(m_theme)); } else { + m_theme = "Default"; parentWidget()->setStyleSheet(""); m_report->setStyleSheet(""); } +// if (m_theme.compare("Dark") == 0) { +// QFile theme(":/qdarkstyle/style.qss"); +// theme.open(QIODevice::ReadOnly); +// QString styleSheet = theme.readAll(); +// parentWidget()->setStyleSheet(styleSheet); +// m_report->setStyleSheet(styleSheet); +// } else { +// parentWidget()->setStyleSheet(""); +// m_report->setStyleSheet(""); +// } + if (m_settings){ m_settings->beginGroup("ScriptEditor"); QVariant v = m_settings->value("DefaultFontName"); @@ -244,9 +258,9 @@ void ReportDesignWidget::loadState() m_useGrid = v.toBool(); } - v = m_settings->value("useDarkTheme"); + v = m_settings->value("theme"); if (v.isValid()){ - m_useDarkTheme = v.toBool(); + m_theme = v.toString(); } v = m_settings->value("ScriptEditorState"); @@ -684,6 +698,17 @@ void ReportDesignWidget::prepareReport() report()->clearSelection(); } +void ReportDesignWidget::initThemeIfExist(const QString &themeName, const QString &path) +{ + QFile theme(path); + if (theme.exists()){ + theme.open(QIODevice::ReadOnly); + QString styleSheet = theme.readAll(); + m_themes.insert(themeName, styleSheet); + m_localToEng.insert(QObject::tr(themeName.toLatin1()), themeName); + } +} + void ReportDesignWidget::previewReport() { prepareReport(); @@ -749,14 +774,25 @@ void ReportDesignWidget::editSetting() setting.setHorizontalGridStep(m_horizontalGridStep); setting.setDefaultFont(m_defaultFont); setting.setSuppressAbsentFieldsAndVarsWarnings(m_report->suppressFieldAndVarError()); - setting.setUseDarkTheme(m_useDarkTheme); + + QStringList themes; + themes.append(QObject::tr("Default")); + foreach(QString theme, m_themes.keys()) + if (!themes.contains(QObject::tr(theme.toLatin1()))) + themes.append(QObject::tr(theme.toLatin1())); + + setting.setDesignerThemes(themes, QObject::tr(m_theme.toLatin1())); setting.setDesignerLanguages(m_report->designerLanguages(), m_report->currentDesignerLanguage()); if (setting.exec()){ m_horizontalGridStep = setting.horizontalGridStep(); m_verticalGridStep = setting.verticalGridStep(); m_defaultFont = setting.defaultFont(); - m_useDarkTheme = setting.userDarkTheme(); + if (m_localToEng.contains(setting.theme())){ + m_theme = m_localToEng.value(setting.theme()); + } else { + m_theme = "Default"; + } m_report->setSuppressFieldAndVarError(setting.suppressAbsentFieldsAndVarsWarnings()); if (m_report->currentDesignerLanguage() != setting.designerLanguage() ){ m_report->setCurrentDesignerLanguage(setting.designerLanguage()); diff --git a/limereport/lrreportdesignwidget.h b/limereport/lrreportdesignwidget.h index 7f41456..5229ce8 100644 --- a/limereport/lrreportdesignwidget.h +++ b/limereport/lrreportdesignwidget.h @@ -206,6 +206,7 @@ protected: private: bool eventFilter(QObject *target, QEvent *event); void prepareReport(); + void initThemeIfExist(const QString& themeName, const QString& path); private: ReportEnginePrivateInterface* m_report; QGraphicsView *m_view; @@ -228,8 +229,10 @@ private: bool m_useGrid; bool m_useMagnet; bool m_dialogChanged; - bool m_useDarkTheme; + QString m_theme; QSettings* m_settings; + QMap m_themes; + QMap m_localToEng; }; } // namespace LimeReport diff --git a/limereport/lrreportdesignwindow.cpp b/limereport/lrreportdesignwindow.cpp index 5eba0e7..1b79168 100644 --- a/limereport/lrreportdesignwindow.cpp +++ b/limereport/lrreportdesignwindow.cpp @@ -512,7 +512,7 @@ void ReportDesignWindow::createObjectInspector() QWidget* w = new QWidget(objectDoc); QVBoxLayout* l = new QVBoxLayout(w); l->addWidget(m_objectInspector); - l->setContentsMargins(2,2,2,2); + l->setMargin(0); w->setLayout(l); objectDoc->setWindowTitle(tr("Object Inspector")); objectDoc->setWidget(w); diff --git a/limereport/lrsettingdialog.cpp b/limereport/lrsettingdialog.cpp index b7ad816..ee54096 100644 --- a/limereport/lrsettingdialog.cpp +++ b/limereport/lrsettingdialog.cpp @@ -2,6 +2,7 @@ #include "ui_lrsettingdialog.h" #include "lrglobal.h" #include +#include namespace LimeReport{ @@ -10,10 +11,14 @@ SettingDialog::SettingDialog(QWidget *parent) : ui(new Ui::SettingDialog) { ui->setupUi(this); - QFile theme(":/qdarkstyle/style.qss"); - if (!theme.exists()){ - ui->cbbUseDarkTheme->setVisible(false); - } + ui->toolBox->setCurrentIndex(0); +// ui->cbTheme->addItem(QObject::tr("Default")); +// if (isFileExists(":/qdarkstyle/style.qss")){ +// ui->cbTheme->addItem(QObject::tr("Dark")); +// } +// if (isFileExists(":/qlightstyle/lightstyle.qss")){ +// ui->cbTheme->addItem(QObject::tr("Light")); +// } ui->indentSize->setRange(0,10); } @@ -51,9 +56,9 @@ int SettingDialog::tabIndention() return ui->indentSize->value(); } -bool SettingDialog::userDarkTheme() +QString SettingDialog::theme() { - return ui->cbbUseDarkTheme->isChecked(); + return ui->cbTheme->currentText(); } bool SettingDialog::suppressAbsentFieldsAndVarsWarnings() @@ -101,9 +106,13 @@ void SettingDialog::setScritpTabIndention(int size) ui->indentSize->setValue(size); } -void SettingDialog::setUseDarkTheme(bool value) +void SettingDialog::setTheme(const QString &theme) { - ui->cbbUseDarkTheme->setChecked(value); +#ifdef HAVE_QT4 + ui->cbTheme->setCurrentIndex(ui->cbTheme->findText(theme)); +#else + ui->cbTheme->setCurrentText(theme); +#endif } void SettingDialog::setDesignerLanguages(QList languages, QLocale::Language currentLanguage) @@ -128,6 +137,17 @@ void SettingDialog::setDesignerLanguages(QList languages, QLo #endif } +void SettingDialog::setDesignerThemes(QList themes, const QString ¤tTheme) +{ + ui->cbTheme->clear(); + ui->cbTheme->addItems(themes); +#ifdef HAVE_QT4 + ui->cbTheme->setCurrentIndex(ui->cbTheme->findText(currentTheme)); +#else + ui->cbTheme->setCurrentText(currentTheme); +#endif +} + void SettingDialog::setSettings(QSettings* settings){ m_settings = settings; if (m_settings){ @@ -159,6 +179,12 @@ void SettingDialog::on_bbOkCancel_accepted() } } +bool SettingDialog::isFileExists(const QString &path) +{ + QFileInfo check_file(path); + return check_file.exists() && check_file.isFile(); +} + } // namespace LimeReport diff --git a/limereport/lrsettingdialog.h b/limereport/lrsettingdialog.h index bc4e862..3049d87 100644 --- a/limereport/lrsettingdialog.h +++ b/limereport/lrsettingdialog.h @@ -23,7 +23,7 @@ public: QFont defaultFont(); QFont scriptFont(); int tabIndention(); - bool userDarkTheme(); + QString theme(); bool suppressAbsentFieldsAndVarsWarnings(); QLocale::Language designerLanguage(); void setSuppressAbsentFieldsAndVarsWarnings(bool value); @@ -32,12 +32,14 @@ public: void setDefaultFont(const QFont& value); void setScriptFont(const QFont& value); void setScritpTabIndention(int size); - void setUseDarkTheme(bool value); + void setTheme(const QString& theme); void setDesignerLanguages(QList languages, QLocale::Language currentLanguage); + void setDesignerThemes(QList themes, const QString& currentTheme); void setSettings(QSettings* settings); private slots: void on_bbOkCancel_accepted(); - +private: + bool isFileExists(const QString& path); private: Ui::SettingDialog *ui; QList m_aviableLanguages; diff --git a/limereport/lrsettingdialog.ui b/limereport/lrsettingdialog.ui index 12af083..86fe2e2 100644 --- a/limereport/lrsettingdialog.ui +++ b/limereport/lrsettingdialog.ui @@ -7,7 +7,7 @@ 0 0 419 - 362 + 378 @@ -23,7 +23,7 @@ - 0 + 2 @@ -31,7 +31,7 @@ 0 0 401 - 218 + 250 @@ -148,11 +148,44 @@ - - - Use dark theme + + + + + + 0 + 0 + + + + Theme + + + + + + + + 0 + 0 + + + + + + + + + + Qt::Vertical - + + + 20 + 40 + + + @@ -162,7 +195,7 @@ 0 0 401 - 218 + 250 @@ -251,25 +284,34 @@ 0 0 401 - 218 + 250 Report settings - - - - 10 - 10 - 280 - 23 - - - - Suppress absent fields and variables warning - - + + + + + Suppress absent fields and variables warning + + + + + + + Qt::Vertical + + + + 20 + 204 + + + + + diff --git a/limereport/objectinspector/lrobjectinspectorwidget.cpp b/limereport/objectinspector/lrobjectinspectorwidget.cpp index 2fbfff0..d4158f0 100644 --- a/limereport/objectinspector/lrobjectinspectorwidget.cpp +++ b/limereport/objectinspector/lrobjectinspectorwidget.cpp @@ -189,7 +189,7 @@ ObjectInspectorWidget::ObjectInspectorWidget(QWidget *parent) h->addWidget(pbClear); l->addLayout(h); l->addWidget(m_objectInspectorView); - l->setContentsMargins(2,2,2,2); + l->setMargin(Const::DOCKWIDGET_MARGINS); l->setSpacing(2); this->setLayout(l); } diff --git a/limereport/objectsbrowser/lrobjectbrowser.cpp b/limereport/objectsbrowser/lrobjectbrowser.cpp index a7e39ba..a86fac3 100644 --- a/limereport/objectsbrowser/lrobjectbrowser.cpp +++ b/limereport/objectsbrowser/lrobjectbrowser.cpp @@ -40,7 +40,7 @@ ObjectBrowser::ObjectBrowser(QWidget *parent) { QVBoxLayout *layout = new QVBoxLayout(this); setLayout(layout); - layout->setMargin(2); + layout->setMargin(Const::DOCKWIDGET_MARGINS); m_treeView = new QTreeWidget(this); layout->addWidget(m_treeView); m_treeView->headerItem()->setText(0,tr("Objects")); diff --git a/limereport/scriptbrowser/lrscriptbrowser.cpp b/limereport/scriptbrowser/lrscriptbrowser.cpp index 148ddb7..4407170 100644 --- a/limereport/scriptbrowser/lrscriptbrowser.cpp +++ b/limereport/scriptbrowser/lrscriptbrowser.cpp @@ -43,6 +43,7 @@ ScriptBrowser::ScriptBrowser(QWidget *parent) : ui(new Ui::ScriptBrowser) { ui->setupUi(this); + ui->verticalLayout->setMargin(Const::DOCKWIDGET_MARGINS); #ifndef HAVE_UI_LOADER ui->tpDialogs->setVisible(false); ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tpDialogs)); diff --git a/translations/limereport_ru.ts b/translations/limereport_ru.ts index 37c87ec..65d08fd 100644 --- a/translations/limereport_ru.ts +++ b/translations/limereport_ru.ts @@ -1935,6 +1935,10 @@ p, li { white-space: pre-wrap; } hideText Скрывать текст + + option3 + + LimeReport::RectMMPropItem @@ -2428,6 +2432,22 @@ This preview is no longer valid. Datasource with name %1 already exist Источник данных %1 уже существует + + CSV + + + + Separator + Разделитель + + + ; + ; + + + Use first row as header + Первая строка как заголовок + LimeReport::ScriptBrowser @@ -2635,10 +2655,6 @@ This preview is no longer valid. Language Язык - - Use dark theme - Использовать Темную тему - Designer settings Настройки дизайнера @@ -2659,6 +2675,10 @@ This preview is no longer valid. Report settings Настройки отчета + + Theme + Тема + LimeReport::SubDetailBand @@ -3074,5 +3094,9 @@ This preview is no longer valid. Export to PDF Экспортировать в PDF + + Default + По умолчанию +