Better QSlider to match systems

This commit is contained in:
Jordan Sherer 2018-07-13 15:09:29 -04:00
parent 9117ad5381
commit c1df21f940

View File

@ -1416,7 +1416,7 @@ background:yellow;
<widget class="QSlider" name="outAttenuation"> <widget class="QSlider" name="outAttenuation">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>60</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1429,69 +1429,32 @@ background:yellow;
<string>Adjust Tx audio level</string> <string>Adjust Tx audio level</string>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">QSlider::groove:vertical <string notr="true">QSlider {
{ selection-background-color: rgb(70, 70, 70);
border: 1px solid #bbb;
background: white;
width: 10px;
border-radius: 2px;
} }
QSlider::sub-page:vertical QSlider::groove:vertical{
{ width:60px;
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #fff, stop: 0.4999 #eee, stop: 0.5 #ddd, stop: 1 #eee );
border: 1px solid #777;
width: 10px;
border-radius: 2px;
}
QSlider::add-page:vertical {
background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #78d, stop: 0.4999 #46a, stop: 0.5 #45a, stop: 1 #238 );
border: 1px solid #777;
border-radius: 2px;
width: 10px;
} }
QSlider::handle:vertical { QSlider::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc); background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fefefe, stop:1 #eee);
border: 1px solid #777; border:1px solid #999;
width: 20px; width:30px;
height:20px; height:30px;
margin-top: -1px; margin:-2px -8px;
margin-bottom: -1px;
margin-left:-5px;
margin-right:-5px;
border-radius:2px; border-radius:2px;
} }
QSlider::handle:vertical:hover { QSlider::handle:vertical:hover {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #fefefe);
border: 1px solid #444;
border-radius: 2px;
}
QSlider::sub-page:vertical:disabled {
background: #bbb;
border-color: #999;
}
QSlider::add-page:vertical:disabled {
background: #eee;
border-color: #999;
}
QSlider::handle:vertical:disabled {
background: #eee;
border: 1px solid #aaa;
border-radius: 2px;
}</string> }</string>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>450</number> <number>450</number>
</property> </property>
<property name="value"> <property name="value">
<number>0</number> <number>100</number>
</property> </property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>