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 warnings
__version__ = "2.6"
__version__ = "2.6.1"
QT_BINDINGS = ['PyQt4', 'PyQt5', 'PySide', 'PySide2']

View File

@ -28,7 +28,7 @@ def main():
parser.add_argument('-a', '--abstractions', action='store_true',
help="Show available abstraction layers for Qt bindings")
# 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',
help="Show qdarkstyle version")
parser.add_argument('--all', action='store_true',

View File

@ -73,23 +73,33 @@ QWidget:item:hover {
}
/* QMainWindow ------------------------------------------------------------ */
/* This adjusts the splitter in the dock widget, not qsplitter */
QMainWindow::separator {
background-color: #31363B;
border: 0 solid #232629;
spacing: 0;
padding: 0;
padding: 1px;
margin: 0;
}
QMainWindow::separator:hover {
background-color: #4D545B;
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 {
@ -346,12 +356,12 @@ QMenu {
}
QMenu::separator {
height: 1px;
height: 2px;
background-color: #31363B;
color: #A9A9A9;
padding-left: 4px;
margin-left: 10px;
margin-right: 5px;
margin-left: 2px;
margin-right: 2px;
}
QMenu::icon {
@ -368,12 +378,7 @@ QMenu::item:selected {
color: #EFF0F1;
}
QMenu::separator {
height: 2px;
background: #31363B;
margin-left: 2px;
margin-right: 2px;
}
QMenu::indicator {
width: 12px;
@ -658,18 +663,22 @@ QToolBar {
}
QToolBar::handle:horizontal {
width: 6px;
image: url(:/qss_icons/rc/Hmovetoolbar.png);
}
QToolBar::handle:vertical {
height: 6px;
image: url(:/qss_icons/rc/Vmovetoolbar.png);
}
QToolBar::separator:horizontal {
width: 3px;
image: url(:/qss_icons/rc/Hsepartoolbar.png);
}
QToolBar::separator:vertical {
height: 3px;
image: url(:/qss_icons/rc/Vsepartoolbar.png);
}
@ -1249,7 +1258,7 @@ QTabBar::tab:left:selected:disabled {
}
QTabBar::tab:right:selected:disabled {
border-right: 2px solid #18465D;;
border-right: 2px solid #18465D;
color: #4D545B;
background-color: #31363B;
}
@ -1410,6 +1419,20 @@ QTabBar QToolButton::left-arrow:disabled {
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 ------------------------------------------------------------- */
QDockWidget {
@ -1753,23 +1776,36 @@ QFrame[width="3"] {
/* QSplitter -------------------------------------------------------------- */
QSplitter::handle {
border: 1px solid #179AE0;
QSplitter {
background-color: #31363B;
spacing: 0;
padding: 0;
margin: 0;
}
QSplitter::handle:hover {
background-color: #232629;
border: 1px solid #31363B;
QSplitter::separator {
background-color: #31363B;
border: 0 solid #232629;
spacing: 0;
padding: 1px;
margin: 0;
}
QSplitter::handle:horizontal {
width: 1px;
QSplitter::separator:hover {
background-color: #4D545B;
}
QSplitter::handle:vertical {
height: 1px;
QSplitter::separator:horizontal {
width: 5px;
image: url(:/qss_icons/rc/Vsepartoolbar.png);
}
QSplitter::separator:vertical {
height: 5px;
image: url(:/qss_icons/rc/Hsepartoolbar.png);
}
/* QDateEdit-------------------------------------------------------------- */
QDateEdit {