Revision: 15064
          http://sourceforge.net/p/skim-app/code/15064
Author:   hofman
Date:     2025-03-31 16:24:48 +0000 (Mon, 31 Mar 2025)
Log Message:
-----------
No need to change the frame of the color swatch control

Modified Paths:
--------------
    trunk/SKDisplayPreferences.m

Modified: trunk/SKDisplayPreferences.m
===================================================================
--- trunk/SKDisplayPreferences.m        2025-03-31 15:49:47 UTC (rev 15063)
+++ trunk/SKDisplayPreferences.m        2025-03-31 16:24:48 UTC (rev 15064)
@@ -86,9 +86,7 @@
     
     NSValueTransformer *transformer = [NSValueTransformer 
valueTransformerForName:SKUnarchiveColorArrayTransformerName];
     [colorSwatch bind:@"colors" toObject:[NSUserDefaultsController 
sharedUserDefaultsController] withKeyPath:[@"values." 
stringByAppendingString:SKSwatchColorsKey] 
options:@{NSValueTransformerBindingOption:transformer}];
-    [colorSwatch sizeToFit];
     [colorSwatch setSelects:YES];
-    [colorSwatch setFrame:NSOffsetRect([colorSwatch frame], 0.0, 1.0)];
     [colorSwatch addObserver:self forKeyPath:@"selectedColorIndex" options:0 
context:&SKDisplayPreferencesColorSwatchObservationContext];
     [colorSwatch addObserver:self forKeyPath:@"colors" options:0 
context:&SKDisplayPreferencesColorSwatchObservationContext];
     

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to