Revision: 24111
          http://sourceforge.net/p/bibdesk/svn/24111
Author:   hofman
Date:     2019-08-02 09:51:32 +0000 (Fri, 02 Aug 2019)
Log Message:
-----------
use label font for preview zoom control, will be the same

Modified Paths:
--------------
    trunk/bibdesk/BDSKZoomablePDFView.m
    trunk/bibdesk/BDSKZoomableTextView.m

Modified: trunk/bibdesk/BDSKZoomablePDFView.m
===================================================================
--- trunk/bibdesk/BDSKZoomablePDFView.m 2019-08-02 09:40:46 UTC (rev 24110)
+++ trunk/bibdesk/BDSKZoomablePDFView.m 2019-08-02 09:51:32 UTC (rev 24111)
@@ -65,7 +65,6 @@
 #define BDSKMinDefaultScaleMenuFactor (BDSKDefaultScaleMenuFactors[1])
 #define BDSKDefaultScaleMenuFactorsCount (sizeof(BDSKDefaultScaleMenuFactors) 
/ sizeof(CGFloat))
 
-#define BDSKScaleMenuFontSize 10.0
 #define BDSKScaleMenuHeight 15.0
 #define BDSKScaleMenuWidthOffset 20.0
 
@@ -229,7 +228,7 @@
                [[scalePopUpButton cell] setUsesItemFromMenu:YES];
         
         // set a suitable font, the control size is 0, 1 or 2
-        [scalePopUpButton setFont:[NSFont 
toolTipsFontOfSize:BDSKScaleMenuFontSize]];
+        [scalePopUpButton setFont:[NSFont labelFontOfSize:[NSFont 
labelFontSize]]];
         
         NSUInteger cnt, numberOfDefaultItems = 
BDSKDefaultScaleMenuFactorsCount;
         id curItem;

Modified: trunk/bibdesk/BDSKZoomableTextView.m
===================================================================
--- trunk/bibdesk/BDSKZoomableTextView.m        2019-08-02 09:40:46 UTC (rev 
24110)
+++ trunk/bibdesk/BDSKZoomableTextView.m        2019-08-02 09:51:32 UTC (rev 
24111)
@@ -64,7 +64,6 @@
 #define BDSKMinDefaultScaleMenuFactor (BDSKDefaultScaleMenuFactors[1])
 #define BDSKDefaultScaleMenuFactorsCount (sizeof(BDSKDefaultScaleMenuFactors) 
/ sizeof(CGFloat))
 
-#define BDSKScaleMenuFontSize 10.0
 #define BDSKScaleMenuHeight 15.0
 #define BDSKScaleMenuWidthOffset 20.0
 
@@ -122,7 +121,7 @@
                [[scalePopUpButton cell] setUsesItemFromMenu:YES];
         
         // set a suitable font, the control size is 0, 1 or 2
-        [scalePopUpButton setFont:[NSFont 
toolTipsFontOfSize:BDSKScaleMenuFontSize]];
+        [scalePopUpButton setFont:[NSFont labelFontOfSize:[NSFont 
labelFontSize]]];
                
         NSUInteger cnt, numberOfDefaultItems = 
BDSKDefaultScaleMenuFactorsCount;
         id curItem;

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to