Explorar o código

Fix qdarkstyle and midnight blue sliders being cropped

- Allow Threshold sliders in control configuration to be up to 40px tall, instead of 15
flodavid %!s(int64=2) %!d(string=hai) anos
pai
achega
b28acaf7c9

+ 4 - 0
dist/qt_themes/qdarkstyle/dark.qss

@@ -944,6 +944,10 @@ QListView::indicator:indeterminate:pressed {
     image: url(:/qss_icons/rc/checkbox_indeterminate_focus.png);
 }
 
+QSlider:horizontal {
+    height: 20px;
+}
+
 QSlider::groove:horizontal {
     border: 1px solid #565a5e;
     height: 4px;

+ 4 - 0
dist/qt_themes/qdarkstyle_midnight_blue/dark.qss

@@ -1296,6 +1296,10 @@ QSlider:focus {
   border: none;
 }
 
+QSlider:horizontal {
+  height: 20px;
+}
+
 QSlider::groove:horizontal {
   background: #32414B;
   border: 1px solid #32414B;

+ 36 - 36
src/suyu/configuration/configure_input_player.ui

@@ -1430,12 +1430,12 @@
                 </item>
                 <item>
                  <widget class="QGroupBox" name="buttonShoulderButtonsButtonZLGroup">
-                   <property name="sizePolicy">
-                     <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
-                       <horstretch>0</horstretch>
-                       <verstretch>0</verstretch>
-                     </sizepolicy>
-                   </property>
+                  <property name="sizePolicy">
+                   <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                   </sizepolicy>
+                  </property>
                   <property name="title">
                    <string>ZL</string>
                   </property>
@@ -1481,20 +1481,20 @@
                     </widget>
                    </item>
                     <item>
-                      <widget class="QSlider" name="sliderZLThreshold">
-                        <property name="maximumSize">
-                          <size>
-                            <width>70</width>
-                            <height>15</height>
-                          </size>
-                        </property>
-                        <property name="maximum">
-                          <number>100</number>
-                        </property>
-                        <property name="orientation">
-                          <enum>Qt::Horizontal</enum>
-                        </property>
-                      </widget>
+                     <widget class="QSlider" name="sliderZLThreshold">
+                      <property name="maximumSize">
+                       <size>
+                        <width>70</width>
+                        <height>40</height>
+                       </size>
+                      </property>
+                      <property name="maximum">
+                       <number>100</number>
+                      </property>
+                      <property name="orientation">
+                       <enum>Qt::Horizontal</enum>
+                      </property>
+                     </widget>
                     </item>
                   </layout>
                  </widget>
@@ -1927,22 +1927,22 @@
                      </property>
                     </widget>
                    </item>
-                    <item>
-                      <widget class="QSlider" name="sliderZRThreshold">
-                        <property name="maximumSize">
-                          <size>
-                            <width>70</width>
-                            <height>15</height>
-                          </size>
-                        </property>
-                        <property name="maximum">
-                          <number>100</number>
-                        </property>
-                        <property name="orientation">
-                          <enum>Qt::Horizontal</enum>
-                        </property>
-                      </widget>
-                    </item>
+                   <item>
+                    <widget class="QSlider" name="sliderZRThreshold">
+                     <property name="maximumSize">
+                      <size>
+                       <width>70</width>
+                       <height>40</height>
+                      </size>
+                     </property>
+                     <property name="maximum">
+                      <number>100</number>
+                     </property>
+                     <property name="orientation">
+                      <enum>Qt::Horizontal</enum>
+                     </property>
+                    </widget>
+                   </item>
                   </layout>
                  </widget>
                 </item>