Fix splitter, separator from windows and menus, fixes #115

This commit is contained in:
Daniel Pizetta 2018-11-01 16:12:40 -03:00
parent 561a6f8d06
commit 6299c1b5c4
3 changed files with 61 additions and 25 deletions

View File

@ -58,7 +58,7 @@ import platform
import sys import sys
import warnings import warnings
__version__ = "2.6" __version__ = "2.6.1"
QT_BINDINGS = ['PyQt4', 'PyQt5', 'PySide', 'PySide2'] QT_BINDINGS = ['PyQt4', 'PyQt5', 'PySide', 'PySide2']

View File

@ -28,7 +28,7 @@ def main():
parser.add_argument('-a', '--abstractions', action='store_true', parser.add_argument('-a', '--abstractions', action='store_true',
help="Show available abstraction layers for Qt bindings") help="Show available abstraction layers for Qt bindings")
# parser.add_argument('-e', '--example', action='store_true', # parser.add_argument('-e', '--example', action='store_true',
# help="Show qdarkstyle example") # help="Show qdarkstyle example, subcommand.")
parser.add_argument('-v', '--version', action='store_true', parser.add_argument('-v', '--version', action='store_true',
help="Show qdarkstyle version") help="Show qdarkstyle version")
parser.add_argument('--all', action='store_true', parser.add_argument('--all', action='store_true',

View File

@ -73,23 +73,33 @@ QWidget:item:hover {
} }
/* QMainWindow ------------------------------------------------------------ */ /* QMainWindow ------------------------------------------------------------ */
/* This adjusts the splitter in the dock widget, not qsplitter */
QMainWindow::separator { QMainWindow::separator {
background-color: #31363B; background-color: #31363B;
border: 0 solid #232629; border: 0 solid #232629;
spacing: 0; spacing: 0;
padding: 0; padding: 1px;
margin: 0; margin: 0;
} }
QMainWindow::separator:hover { QMainWindow::separator:hover {
background-color: #4D545B; background-color: #4D545B;
border: 0px solid #179AE0; border: 0px solid #179AE0;
spacing: 0;
padding: 0;
margin: 0;
} }
QMainWindow::separator:horizontal {
width: 5px;
image: url(:/qss_icons/rc/Vsepartoolbar.png);
}
QMainWindow::separator:vertical {
height: 5px;
image: url(:/qss_icons/rc/Hsepartoolbar.png);
}
/* QToolTip --------------------------------------------------------------- */ /* QToolTip --------------------------------------------------------------- */
QToolTip { QToolTip {
@ -346,12 +356,12 @@ QMenu {
} }
QMenu::separator { QMenu::separator {
height: 1px; height: 2px;
background-color: #31363B; background-color: #31363B;
color: #A9A9A9; color: #A9A9A9;
padding-left: 4px; padding-left: 4px;
margin-left: 10px; margin-left: 2px;
margin-right: 5px; margin-right: 2px;
} }
QMenu::icon { QMenu::icon {
@ -368,12 +378,7 @@ QMenu::item:selected {
color: #EFF0F1; color: #EFF0F1;
} }
QMenu::separator {
height: 2px;
background: #31363B;
margin-left: 2px;
margin-right: 2px;
}
QMenu::indicator { QMenu::indicator {
width: 12px; width: 12px;
@ -658,18 +663,22 @@ QToolBar {
} }
QToolBar::handle:horizontal { QToolBar::handle:horizontal {
width: 6px;
image: url(:/qss_icons/rc/Hmovetoolbar.png); image: url(:/qss_icons/rc/Hmovetoolbar.png);
} }
QToolBar::handle:vertical { QToolBar::handle:vertical {
height: 6px;
image: url(:/qss_icons/rc/Vmovetoolbar.png); image: url(:/qss_icons/rc/Vmovetoolbar.png);
} }
QToolBar::separator:horizontal { QToolBar::separator:horizontal {
width: 3px;
image: url(:/qss_icons/rc/Hsepartoolbar.png); image: url(:/qss_icons/rc/Hsepartoolbar.png);
} }
QToolBar::separator:vertical { QToolBar::separator:vertical {
height: 3px;
image: url(:/qss_icons/rc/Vsepartoolbar.png); image: url(:/qss_icons/rc/Vsepartoolbar.png);
} }
@ -1249,7 +1258,7 @@ QTabBar::tab:left:selected:disabled {
} }
QTabBar::tab:right:selected:disabled { QTabBar::tab:right:selected:disabled {
border-right: 2px solid #18465D;; border-right: 2px solid #18465D;
color: #4D545B; color: #4D545B;
background-color: #31363B; background-color: #31363B;
} }
@ -1410,6 +1419,20 @@ QTabBar QToolButton::left-arrow:disabled {
image: url(:/qss_icons/rc/left_arrow_disabled.png); image: url(:/qss_icons/rc/left_arrow_disabled.png);
} }
/* Some examples from internet to check
QTabBar::tabButton() and QTabBar::tabIcon()
QTabBar::tear {width: 0px; border: none;}
QTabBar::tear {image: url(tear_indicator.png);}
QTabBar::scroller{width:85pix;}
QTabBar QToolbutton{background-color:"light blue";}
But that left the buttons transparant.
Looked confusing as the tab buttons migrated behind the scroller buttons.
So we had to color the back ground of the scroller buttons
*/
/* QDockWiget ------------------------------------------------------------- */ /* QDockWiget ------------------------------------------------------------- */
QDockWidget { QDockWidget {
@ -1753,23 +1776,36 @@ QFrame[width="3"] {
/* QSplitter -------------------------------------------------------------- */ /* QSplitter -------------------------------------------------------------- */
QSplitter::handle { QSplitter {
border: 1px solid #179AE0; background-color: #31363B;
spacing: 0;
padding: 0;
margin: 0;
} }
QSplitter::handle:hover { QSplitter::separator {
background-color: #232629; background-color: #31363B;
border: 1px solid #31363B; border: 0 solid #232629;
spacing: 0;
padding: 1px;
margin: 0;
} }
QSplitter::handle:horizontal { QSplitter::separator:hover {
width: 1px; background-color: #4D545B;
} }
QSplitter::handle:vertical { QSplitter::separator:horizontal {
height: 1px; width: 5px;
image: url(:/qss_icons/rc/Vsepartoolbar.png);
} }
QSplitter::separator:vertical {
height: 5px;
image: url(:/qss_icons/rc/Hsepartoolbar.png);
}
/* QDateEdit-------------------------------------------------------------- */ /* QDateEdit-------------------------------------------------------------- */
QDateEdit { QDateEdit {