Revision: 16144
          http://sourceforge.net/p/skim-app/code/16144
Author:   hofman
Date:     2026-04-02 09:04:54 +0000 (Thu, 02 Apr 2026)
Log Message:
-----------
set default side pane widths in IB, start side panes uncollapsed

Modified Paths:
--------------
    trunk/LeftSideView.xib
    trunk/RightSideView.xib
    trunk/SKMainWindowController.m

Modified: trunk/LeftSideView.xib
===================================================================
--- trunk/LeftSideView.xib      2026-04-01 22:47:31 UTC (rev 16143)
+++ trunk/LeftSideView.xib      2026-04-02 09:04:54 UTC (rev 16144)
@@ -27,23 +27,23 @@
         </customObject>
         <customObject id="-1" userLabel="First Responder" 
customClass="FirstResponder"/>
         <customView id="il2-Kq-ue6">
-            <rect key="frame" x="0.0" y="0.0" width="200" height="400"/>
+            <rect key="frame" x="0.0" y="0.0" width="250" height="400"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" 
flexibleMinY="YES"/>
             <subviews>
                 <customView translatesAutoresizingMaskIntoConstraints="NO" 
id="85" userLabel="LeftSideView" customClass="SKGroupView">
-                    <rect key="frame" x="0.0" y="0.0" width="200" 
height="400"/>
+                    <rect key="frame" x="0.0" y="0.0" width="250" 
height="400"/>
                     <subviews>
                         <customView 
translatesAutoresizingMaskIntoConstraints="NO" id="133">
-                            <rect key="frame" x="0.0" y="0.0" width="200" 
height="364"/>
+                            <rect key="frame" x="0.0" y="0.0" width="250" 
height="364"/>
                             <subviews>
                                 <customView fixedFrame="YES" 
translatesAutoresizingMaskIntoConstraints="NO" id="142">
-                                    <rect key="frame" x="0.0" y="0.0" 
width="200" height="364"/>
+                                    <rect key="frame" x="0.0" y="0.0" 
width="250" height="364"/>
                                     <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                                 </customView>
                             </subviews>
                         </customView>
                         <customView 
translatesAutoresizingMaskIntoConstraints="NO" id="134" 
customClass="SKTopBarView">
-                            <rect key="frame" x="0.0" y="364" width="200" 
height="36"/>
+                            <rect key="frame" x="0.0" y="364" width="250" 
height="36"/>
                             <subviews>
                                 <segmentedControl hidden="YES" 
verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" 
id="93">
                                     <rect key="frame" x="9" y="6" width="61" 
height="23"/>
@@ -75,7 +75,7 @@
                                     </connections>
                                 </segmentedControl>
                                 <searchField verticalHuggingPriority="750" 
horizontalCompressionResistancePriority="250" textCompletion="NO" 
translatesAutoresizingMaskIntoConstraints="NO" id="138">
-                                    <rect key="frame" x="77" y="7" width="115" 
height="22"/>
+                                    <rect key="frame" x="77" y="7" width="165" 
height="22"/>
                                     <constraints>
                                         <constraint firstAttribute="width" 
relation="greaterThanOrEqual" constant="20" id="EJG-YR-pIX"/>
                                     </constraints>

Modified: trunk/RightSideView.xib
===================================================================
--- trunk/RightSideView.xib     2026-04-01 22:47:31 UTC (rev 16143)
+++ trunk/RightSideView.xib     2026-04-02 09:04:54 UTC (rev 16144)
@@ -24,19 +24,19 @@
         <customObject id="-1" userLabel="First Responder" 
customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <customView translatesAutoresizingMaskIntoConstraints="NO" id="4" 
userLabel="RightSideView" customClass="SKGroupView">
-            <rect key="frame" x="0.0" y="0.0" width="200" height="400"/>
+            <rect key="frame" x="0.0" y="0.0" width="250" height="400"/>
             <subviews>
                 <customView translatesAutoresizingMaskIntoConstraints="NO" 
id="18">
-                    <rect key="frame" x="0.0" y="0.0" width="200" 
height="364"/>
+                    <rect key="frame" x="0.0" y="0.0" width="250" 
height="364"/>
                     <subviews>
                         <customView fixedFrame="YES" 
translatesAutoresizingMaskIntoConstraints="NO" id="26">
-                            <rect key="frame" x="0.0" y="0.0" width="200" 
height="364"/>
+                            <rect key="frame" x="0.0" y="0.0" width="250" 
height="364"/>
                             <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                         </customView>
                     </subviews>
                 </customView>
                 <customView translatesAutoresizingMaskIntoConstraints="NO" 
id="19" customClass="SKTopBarView">
-                    <rect key="frame" x="0.0" y="364" width="200" height="36"/>
+                    <rect key="frame" x="0.0" y="364" width="250" height="36"/>
                     <subviews>
                         <segmentedControl verticalHuggingPriority="750" 
translatesAutoresizingMaskIntoConstraints="NO" id="23">
                             <rect key="frame" x="9" y="6" width="61" 
height="23"/>
@@ -52,7 +52,7 @@
                             </connections>
                         </segmentedControl>
                         <searchField verticalHuggingPriority="750" 
horizontalCompressionResistancePriority="250" textCompletion="NO" 
translatesAutoresizingMaskIntoConstraints="NO" id="22">
-                            <rect key="frame" x="77" y="7" width="115" 
height="22"/>
+                            <rect key="frame" x="77" y="7" width="165" 
height="22"/>
                             <constraints>
                                 <constraint firstAttribute="width" 
relation="greaterThanOrEqual" constant="20" id="m7g-Zf-h34"/>
                             </constraints>

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-04-01 22:47:31 UTC (rev 16143)
+++ trunk/SKMainWindowController.m      2026-04-02 09:04:54 UTC (rev 16144)
@@ -122,7 +122,6 @@
 #define MAX_PAGE_COLUMN_WIDTH_1 50.0
 #define MAX_MIN_COLUMN_WIDTH    100.0
 
-#define DEFAULT_SIDE_PANE_WIDTH 250.0
 #define MIN_SIDE_PANE_WIDTH 100.0
 #define MIN_PDF_PANE_WIDTH 100.0
 #define MIN_PDF_PANE_HEIGHT 50.0
@@ -337,6 +336,7 @@
     NSSplitViewItem *item = [NSSplitViewItem 
sidebarWithViewController:leftSideController];
     [item setMinimumThickness:MIN_SIDE_PANE_WIDTH];
     [item setCanCollapse:YES];
+    [item setCollapsed:NO];
     [item setHoldingPriority:260.0];
     [item setSpringLoaded:NO];
     if (@available(macOS 11.0, *))
@@ -352,6 +352,7 @@
     item = [NSSplitViewItem 
splitViewItemWithViewController:rightSideController];
     [item setMinimumThickness:MIN_SIDE_PANE_WIDTH];
     [item setCanCollapse:YES];
+    [item setCollapsed:NO];
     [item setHoldingPriority:255.0];
     if ([item 
respondsToSelector:@selector(setRevealsOnEdgeHoverInFullscreen:)])
         [item setRevealsOnEdgeHoverInFullscreen:YES];
@@ -367,10 +368,6 @@
     [contentView addSubview:view];
     [NSLayoutConstraint activateConstraints:constraints];
     
-    // this sets the default widths to return to and ensures that the side 
views are loaded
-    [self setLeftSideWidth:@DEFAULT_SIDE_PANE_WIDTH];
-    [self setRightSideWidth:@DEFAULT_SIDE_PANE_WIDTH];
-    
     if (mwcFlags.fullSizeContent) {
         [leftSideController setCurrentView:[[leftSideController currentView] 
superview]];
         [rightSideController setCurrentView:[[rightSideController currentView] 
superview]];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to