Skip to content

Commit

Permalink
Merge pull request #347 from destanyol/patch-1
Browse files Browse the repository at this point in the history
New scroll bar on large files
  • Loading branch information
annejan committed Jan 15, 2018
2 parents ad455b4 + 5da03c4 commit affce86
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,35 @@
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background: transparent</string>
<string notr="true">
background: transparent
setStyleSheet(QString::fromUtf8(QScrollBar:vertical {
border: 1px solid #999999;
background:white;
width:10px;
margin: 0px 0px 0px 0px;
}
QScrollBar::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
stop: 0 rgb(32, 47, 130), stop: 0.5 rgb(32, 47, 130), stop:1 rgb(32, 47, 130));
min-height: 0px;
}
QScrollBar::add-line:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
stop: 0 rgb(32, 47, 130), stop: 0.5 rgb(32, 47, 130), stop:1 rgb(32, 47, 130));
height: 0px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
stop: 0 rgb(32, 47, 130), stop: 0.5 rgb(32, 47, 130), stop:1 rgb(32, 47, 130));
height: 0 px;
subcontrol-position: top;
subcontrol-origin: margin;
}
));
</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
Expand Down

0 comments on commit affce86

Please sign in to comment.