Revision: 10206
http://sourceforge.net/p/skim-app/code/10206
Author: hofman
Date: 2018-12-30 14:05:43 +0000 (Sun, 30 Dec 2018)
Log Message:
-----------
use borderless toggle button for split pdf text mode
Modified Paths:
--------------
trunk/SKSecondaryPDFView.m
Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m 2018-12-30 13:43:27 UTC (rev 10205)
+++ trunk/SKSecondaryPDFView.m 2018-12-30 14:05:43 UTC (rev 10206)
@@ -52,8 +52,6 @@
#import "NSImage_SKExtensions.h"
#import "SKPDFView.h"
-@interface SKSmallButton : NSButton
-@end
@interface SKSecondaryPDFView (SKPrivate)
@@ -266,10 +264,10 @@
if (toolModeButton == nil) {
// create it
- toolModeButton = [[SKSmallButton alloc] initWithFrame:NSMakeRect(0.0,
0.0, 17.0, 15.0)];
+ toolModeButton = [[NSButton alloc] initWithFrame:NSMakeRect(0.0, 0.0,
17.0, 15.0)];
- [toolModeButton setButtonType:NSOnOffButton];
- [toolModeButton setBezelStyle:NSTexturedSquareBezelStyle];
+ [toolModeButton setButtonType:NSToggleButton];
+ [toolModeButton setBordered:NO];
[toolModeButton setImage:[NSImage
imageNamed:SKImageNameTextToolAdorn]];
[toolModeButton setState:[self selectsText]];
@@ -701,22 +699,3 @@
}
@end
-
-#pragma mark
-
-@interface SKSmallButtonCell : NSButtonCell
-@end
-
-@implementation SKSmallButton
-
-+ (Class)cellClass { return [SKSmallButtonCell class]; }
-
-@end
-
-@implementation SKSmallButtonCell
-
-- (void)drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView {
- [super drawBezelWithFrame:NSInsetRect(frame, -4.0, -4.0)
inView:controlView];
-}
-
-@end
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