]> granicus.if.org Git - handbrake/commitdiff
mac: Adjust main window progress area vertical spacing.
authorBradley Sepos <bradley@bradleysepos.com>
Wed, 6 Dec 2017 21:07:52 +0000 (16:07 -0500)
committerBradley Sepos <bradley@bradleysepos.com>
Wed, 6 Dec 2017 21:07:52 +0000 (16:07 -0500)
macosx/English.lproj/MainWindow.xib
macosx/HBController.m

index d42939fefa0c24ab014f618123f4f9f44eb8cc9f..08b944f398bdc3caa654c60b6080e70dbe225b65 100644 (file)
@@ -534,10 +534,10 @@ Blu-ray and DVD sources often have multiple titles, the longest of which is typi
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <progressIndicator wantsLayer="YES" verticalHuggingPriority="750" maxValue="1" bezeled="NO" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="1373">
-                                    <rect key="frame" x="24" y="7" width="884" height="33"/>
+                                    <rect key="frame" x="24" y="15" width="884" height="17"/>
                                 </progressIndicator>
                                 <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1123">
-                                    <rect key="frame" x="22" y="43" width="888" height="28"/>
+                                    <rect key="frame" x="22" y="35" width="888" height="28"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="28" id="xDK-Ed-GEv"/>
                                     </constraints>
@@ -550,10 +550,10 @@ Blu-ray and DVD sources often have multiple titles, the longest of which is typi
                             </subviews>
                             <constraints>
                                 <constraint firstItem="1373" firstAttribute="top" secondItem="1123" secondAttribute="bottom" constant="4" id="05I-yD-zGd"/>
-                                <constraint firstItem="1123" firstAttribute="top" secondItem="idQ-Ti-X2a" secondAttribute="top" constant="8" id="SEd-Ur-o24"/>
+                                <constraint firstItem="1123" firstAttribute="top" secondItem="idQ-Ti-X2a" secondAttribute="top" constant="16" id="SEd-Ur-o24"/>
                                 <constraint firstAttribute="trailing" secondItem="1123" secondAttribute="trailing" constant="24" id="VYX-jz-5IE"/>
                                 <constraint firstItem="1123" firstAttribute="leading" secondItem="idQ-Ti-X2a" secondAttribute="leading" constant="24" id="W5K-34-8HI"/>
-                                <constraint firstAttribute="bottom" secondItem="1373" secondAttribute="bottom" constant="8" id="mrc-nZ-d8a"/>
+                                <constraint firstAttribute="bottom" secondItem="1373" secondAttribute="bottom" constant="16" id="mrc-nZ-d8a"/>
                                 <constraint firstAttribute="trailing" secondItem="1373" secondAttribute="trailing" constant="24" id="pFB-8q-Iuf"/>
                                 <constraint firstItem="1373" firstAttribute="leading" secondItem="idQ-Ti-X2a" secondAttribute="leading" constant="24" id="uHd-le-njc"/>
                             </constraints>
index a048778acffa4965cc44ff5643df31e0aa6f9212..2549587f4e8ba24d13cc3cf30da105d94b226d15 100644 (file)
 
 @end
 
-#define WINDOW_HEIGHT_OFFSET 48
+#define WINDOW_HEIGHT_OFFSET_INIT 48
+#define WINDOW_HEIGHT_OFFSET      30
 
 @implementation HBController
 
                                                           presetsManager:presetManager];
     [self.presetsMenuBuilder build];
 
-    self.bottomConstrain.constant = -WINDOW_HEIGHT_OFFSET;
+    self.bottomConstrain.constant = -WINDOW_HEIGHT_OFFSET_INIT;
 
     [self.window recalculateKeyViewLoop];
 }