Skip to content

Commit

Permalink
Fixes for horizontal scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
xpoke committed Nov 12, 2013
1 parent 54d9ff9 commit 1d50a3c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
17 changes: 14 additions & 3 deletions MetroDark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,23 @@ QTextBrowser {
font-weight: bold;
}

QScrollBar {
QScrollBar:horizontal {
background: transparent;
height: 15px;
}

QScrollBar:vertical {
background: transparent;
width: 15px;
}

UserView QScrollBar,
LogTextBrowser QScrollBar {
UserView QScrollBar:horizontal,
LogTextBrowser QScrollBar:horizontal {
margin-top: 1px;
}

UserView QScrollBar:vertical,
LogTextBrowser QScrollBar:vertical {
margin-left: 1px;
}

Expand All @@ -247,6 +257,7 @@ QScrollBar::sub-page,
QAbstractScrollArea::corner {
background: #2b2b2b;
height: 0;
width: 0;
}

QMenuBar {
Expand Down
17 changes: 14 additions & 3 deletions MetroLite.qss
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,23 @@ QTextBrowser {
font-weight: bold;
}

QScrollBar {
QScrollBar:horizontal {
background: transparent;
height: 15px;
}

QScrollBar:vertical {
background: transparent;
width: 15px;
}

UserView QScrollBar,
LogTextBrowser QScrollBar {
UserView QScrollBar:horizontal,
LogTextBrowser QScrollBar:horizontal {
margin-top: 1px;
}

UserView QScrollBar:vertical,
LogTextBrowser QScrollBar:vertical {
margin-left: 1px;
}

Expand All @@ -247,6 +257,7 @@ QScrollBar::sub-page,
QAbstractScrollArea::corner {
background: #eeeeee;
height: 0;
width: 0;
}

QMenuBar {
Expand Down
19 changes: 16 additions & 3 deletions source/MetroBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,26 @@ QTextBrowser
font-weight:bold;
}

QScrollBar
QScrollBar:horizontal
{
background:transparent;
height:15px;
}

QScrollBar:vertical
{
background:transparent;
width:15px;
}

UserView QScrollBar,
LogTextBrowser QScrollBar
UserView QScrollBar:horizontal,
LogTextBrowser QScrollBar:horizontal
{
margin-top:1px;
}

UserView QScrollBar:vertical,
LogTextBrowser QScrollBar:vertical
{
margin-left:1px;
}
Expand All @@ -280,6 +292,7 @@ QAbstractScrollArea::corner
{
background:$base-bg;
height:0;
width: 0;
}

QMenuBar
Expand Down

0 comments on commit 1d50a3c

Please sign in to comment.