[vlc-commits] Qt: style the about dialog scrollbars

Ludovic Fauvet git at videolan.org
Fri Jun 14 21:15:40 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Jun 14 12:50:11 2013 +0200| [23f5d5fe64175e40fa0ba4df1f9d293e9e53571b] | committer: Ludovic Fauvet

Qt: style the about dialog scrollbars

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23f5d5fe64175e40fa0ba4df1f9d293e9e53571b
---

 modules/gui/qt4/ui/about.ui |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/modules/gui/qt4/ui/about.ui b/modules/gui/qt4/ui/about.ui
index 1b8daea..c890781 100644
--- a/modules/gui/qt4/ui/about.ui
+++ b/modules/gui/qt4/ui/about.ui
@@ -13,6 +13,43 @@
   <property name="windowTitle">
    <string>Dialog</string>
   </property>
+  <property name="styleSheet">
+   <string notr="true"> QScrollBar:vertical {
+     border: 1px solid #999999;
+     background: white;
+     width: 12px;
+     margin: 5px 0 5px 2;
+ }
+ QScrollBar::handle:vertical {
+     background: #777777;
+     min-height: 12px;
+ }
+ QScrollBar::add-line:vertical {
+     border: none;
+     background: none;
+     height: 0px;
+     subcontrol-position: bottom;
+     subcontrol-origin: margin;
+ }
+
+ QScrollBar::sub-line:vertical {
+     border: none;
+     background: none;
+     height: 0px;
+     subcontrol-position: top;
+     subcontrol-origin: margin;
+ }
+ QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
+     border: none;
+     width: 0px;
+     height: 0px;
+     background: none;
+ }
+
+ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
+     background: none;
+ }</string>
+  </property>
   <layout class="QVBoxLayout" name="verticalLayout">
    <property name="spacing">
     <number>0</number>



More information about the vlc-commits mailing list