Revision: 13762
          http://sourceforge.net/p/skim-app/code/13762
Author:   hofman
Date:     2023-11-14 17:24:09 +0000 (Tue, 14 Nov 2023)
Log Message:
-----------
set content border thickness in nibs

Modified Paths:
--------------
    trunk/Base.lproj/BookmarksWindow.xib
    trunk/Base.lproj/NoteWindow.xib
    trunk/MainWindow.xib
    trunk/NotesDocument.xib
    trunk/SKBookmarkController.m
    trunk/SKMainWindowController.m
    trunk/SKNoteWindowController.m
    trunk/SKNotesDocument.m

Modified: trunk/Base.lproj/BookmarksWindow.xib
===================================================================
--- trunk/Base.lproj/BookmarksWindow.xib        2023-11-14 16:59:36 UTC (rev 
13761)
+++ trunk/Base.lproj/BookmarksWindow.xib        2023-11-14 17:24:09 UTC (rev 
13762)
@@ -252,6 +252,7 @@
                     <constraint firstItem="56" firstAttribute="trailing" 
secondItem="6" secondAttribute="trailing" id="hUc-Wx-VsZ"/>
                 </constraints>
             </view>
+            <contentBorderThickness minY="22"/>
             <connections>
                 <outlet property="delegate" destination="-2" id="20"/>
                 <outlet property="initialFirstResponder" destination="57" 
id="90"/>

Modified: trunk/Base.lproj/NoteWindow.xib
===================================================================
--- trunk/Base.lproj/NoteWindow.xib     2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/Base.lproj/NoteWindow.xib     2023-11-14 17:24:09 UTC (rev 13762)
@@ -198,6 +198,7 @@
                     <constraint firstItem="39" firstAttribute="leading" 
secondItem="8" secondAttribute="leading" id="wiZ-vv-dWU"/>
                 </constraints>
             </view>
+            <contentBorderThickness minY="22"/>
             <connections>
                 <outlet property="delegate" destination="-2" id="18"/>
                 <outlet property="initialFirstResponder" destination="46" 
id="53"/>

Modified: trunk/MainWindow.xib
===================================================================
--- trunk/MainWindow.xib        2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/MainWindow.xib        2023-11-14 17:24:09 UTC (rev 13762)
@@ -100,6 +100,7 @@
                     <constraint firstItem="2Zw-iS-Qai" 
firstAttribute="leading" secondItem="6" secondAttribute="leading" 
id="vlN-aY-PV4"/>
                 </constraints>
             </view>
+            <contentBorderThickness minY="22"/>
             <connections>
                 <outlet property="delegate" destination="-2" id="43"/>
             </connections>

Modified: trunk/NotesDocument.xib
===================================================================
--- trunk/NotesDocument.xib     2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/NotesDocument.xib     2023-11-14 17:24:09 UTC (rev 13762)
@@ -322,6 +322,7 @@
                     <constraint firstAttribute="bottom" 
secondItem="sbg-jM-cv9" secondAttribute="bottom" id="pjj-Ub-sdR"/>
                 </constraints>
             </view>
+            <contentBorderThickness minY="22"/>
             <connections>
                 <outlet property="delegate" destination="-2" id="32"/>
             </connections>

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/SKBookmarkController.m        2023-11-14 17:24:09 UTC (rev 13762)
@@ -206,11 +206,8 @@
     
     [self setWindowFrameAutosaveName:SKBookmarksWindowFrameAutosaveName];
     
-    [[self window] setAutorecalculatesContentBorderThickness:NO 
forEdge:NSMinYEdge];
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKShowBookmarkStatusBarKey] == NO)
         [self toggleStatusBar:nil];
-    else
-        [[self window] setContentBorderThickness:22.0 forEdge:NSMinYEdge];
     
     [outlineView setStronglyReferencesItems:YES];
     

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/SKMainWindowController.m      2023-11-14 17:24:09 UTC (rev 13762)
@@ -400,15 +400,11 @@
     
     [self setWindowFrameAutosaveNameOrCascade:SKMainWindowFrameAutosaveName];
     
-    [window setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge];
-    
     [[statusBar rightField] setAction:@selector(statusBarClicked:)];
     [[statusBar rightField] setTarget:self];
 
     if ([sud boolForKey:SKShowStatusBarKey] == NO)
         [self toggleStatusBar:nil];
-    else
-        [window setContentBorderThickness:22.0 forEdge:NSMinYEdge];
     
     NSInteger windowSizeOption = [sud 
integerForKey:SKInitialWindowSizeOptionKey];
     if (hasWindowSetup) {

Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m      2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/SKNoteWindowController.m      2023-11-14 17:24:09 UTC (rev 13762)
@@ -187,9 +187,6 @@
     [[self window] setLevel:keepOnTop || forceOnTop ? NSFloatingWindowLevel : 
NSNormalWindowLevel];
     [[self window] setHidesOnDeactivate:keepOnTop || forceOnTop];
     
-    [[self window] setAutorecalculatesContentBorderThickness:NO 
forEdge:NSMinYEdge];
-    [[self window] setContentBorderThickness:NSHeight([statusBar frame]) 
forEdge:NSMinYEdge];
-    
     if (@available(macOS 10.14, *))
         [textView setDrawsBackground:NO];
     

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2023-11-14 16:59:36 UTC (rev 13761)
+++ trunk/SKNotesDocument.m     2023-11-14 17:24:09 UTC (rev 13762)
@@ -161,12 +161,8 @@
     
     [aController 
setWindowFrameAutosaveNameOrCascade:SKNotesDocumentWindowFrameAutosaveName];
     
-    [[aController window] setAutorecalculatesContentBorderThickness:NO 
forEdge:NSMinYEdge];
-    
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKShowNotesStatusBarKey] == NO)
         [self toggleStatusBar:nil];
-    else
-        [[self window] setContentBorderThickness:STATUSBAR_HEIGHT 
forEdge:NSMinYEdge];
     
     if (NSEqualRects(windowRect, NSZeroRect) == NO)
         [[aController window] setFrame:windowRect display:NO];

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