Revision: 28659
          http://sourceforge.net/p/bibdesk/svn/28659
Author:   hofman
Date:     2024-01-23 22:32:13 +0000 (Tue, 23 Jan 2024)
Log Message:
-----------
rename class files

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.h
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.m

Removed Paths:
-------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.h
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.m

Copied: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.h (from rev 
28658, trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.h)
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.h                   
        (rev 0)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.h   2024-01-23 
22:32:13 UTC (rev 28659)
@@ -0,0 +1,95 @@
+//
+//  FVArrowButtonCell.h
+//  FileViewTest
+//
+//  Created by Adam Maxwell on 09/21/07.
+/*
+ This software is Copyright (c) 2007
+ Adam Maxwell. All rights reserved.
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ 
+ - Neither the name of Adam Maxwell nor the names of any
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ 
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+/** @file FVArrowButtonCell.h  Arrow button for page changes. */
+
+typedef NS_ENUM(NSUInteger, FVArrowDirection) { 
+    FVArrowRight = 0, 
+    FVArrowLeft  = 1
+};
+
+/** @internal @brief Circular arrow button.
+ 
+ FVArrowButton is a circle with an arrow inside, used as a page change button. 
 Modeled after the page change button that Finder shows for PDF files on 10.5 
in column mode preview.  */
+@interface FVArrowButton : NSButton
+
+/** The arrow direction.
+ 
+ Cover method for the cell's property. Calls setNeedsDisplay:. */
+@property (nonatomic) FVArrowDirection arrowDirection;
+
+/** The arrow direction.
+ 
+ Cover method for the cell's property. This is animatable. Calls 
setNeedsDisplay:. */
+@property (nonatomic) CGFloat arrowAlpha;
+
+@end
+
+/** @internal @brief Circular arrow button.
+ 
+ FVArrowButtonCell is a circle with an arrow inside, used as a page change 
button.  Modeled after the page change button that Finder shows for PDF files 
on 10.5 in column mode preview.  */
+@interface FVArrowButtonCell : NSButtonCell {
+    FVArrowDirection _arrowDirection;
+    CGFloat _arrowAlpha;
+}
+
+/** The arrow direction.
+ 
+ Determines which way the arrow points. */
+@property (nonatomic) FVArrowDirection arrowDirection;
+
+/** The arrow alpha.
+ 
+ Determines an overall alpha when drawing. */
+@property (nonatomic) CGFloat arrowAlpha;
+
+@end
+
+/** @typedef NSUInteger FVArrowDirection 
+ FVArrowButtonCell direction.
+ */
+
+/** @var FVArrowRight 
+ Right-pointing arrow.
+ */
+/** @var FVArrowLeft 
+ Left-pointing arrow.
+ */
+

Copied: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.m (from rev 
28658, trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.m)
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.m                   
        (rev 0)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButton.m   2024-01-23 
22:32:13 UTC (rev 28659)
@@ -0,0 +1,176 @@
+//
+//  FVArrowButtonCell.m
+//  FileViewTest
+//
+//  Created by Adam Maxwell on 09/21/07.
+/*
+ This software is Copyright (c) 2007
+ Adam Maxwell. All rights reserved.
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ 
+ - Neither the name of Adam Maxwell nor the names of any
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ 
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "FVArrowButtonCell.h"
+#import <QuartzCore/QuartzCore.h>
+
+#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < 
MAC_OS_X_VERSION_10_12
+#define NSEventMaskLeftMouseUp NSLeftMouseUpMask
+#define NSEventMaskLeftMouseDragged NSLeftMouseDraggedMask
+#define NSEventTypeLeftMouseDragged NSLeftMouseDragged
+#endif
+
+@implementation FVArrowButton
+
+@dynamic arrowDirection, arrowAlpha;
+
++ (id)defaultAnimationForKey:(NSAnimatablePropertyKey)key {
+    if ([key isEqualToString:@"arrowAlpha"])
+        return [CABasicAnimation animation];
+    return [super defaultAnimationForKey:key];
+}
+
++ (Class)cellClass { return [FVArrowButtonCell self]; }
+
+- (FVArrowDirection)arrowDirection {
+    return [(FVArrowButtonCell *)[self cell] arrowDirection];
+}
+
+- (void)setArrowDirection:(FVArrowDirection)arrowDirection {
+    [(FVArrowButtonCell *)[self cell] setArrowDirection:arrowDirection];
+}
+
+- (CGFloat)arrowAlpha {
+    return [(FVArrowButtonCell *)[self cell] arrowAlpha];
+}
+
+- (void)setArrowAlpha:(CGFloat)arrowAlpha {
+    [(FVArrowButtonCell *)[self cell] setArrowAlpha:arrowAlpha];
+    [self setNeedsDisplay:YES];
+}
+
+@end
+
+@implementation FVArrowButtonCell
+
+@synthesize arrowDirection=_arrowDirection;
+@synthesize arrowAlpha=_arrowAlpha;
+
+- (id)initTextCell:(NSString *)string {
+    self = [super initTextCell:string];
+    if (self) {
+        [self setHighlightsBy:NSNoCellMask];
+        [self setImagePosition:NSImageOnly];
+        [self setBezelStyle:NSRegularSquareBezelStyle];
+        [self setBordered:NO];
+        [self setContinuous:YES];
+        _arrowDirection = FVArrowRight;
+        _arrowAlpha = 1.0;
+    }
+    return self;
+}
+
+- (id)initImageCell:(NSImage *)image {
+    self = [super initImageCell:image];
+    if (self) {
+        [self setHighlightsBy:NSNoCellMask];
+        [self setImagePosition:NSImageOnly];
+        [self setBezelStyle:NSRegularSquareBezelStyle];
+        [self setBordered:NO];
+        [self setContinuous:YES];
+        _arrowDirection = FVArrowRight;
+        _arrowAlpha = 1.0;
+    }
+    return self;
+}
+
+- (NSBezierPath *)arrowBezierPathWithSize:(NSSize)size;
+{
+    CGFloat w = size.width / 16.0, h = size.height / 16.0;
+    CGFloat tip = _arrowDirection == FVArrowRight ? 14.0*w : 2.0*w;
+    CGFloat base = _arrowDirection == FVArrowRight ? 3.0*w : 13.0*w;
+    NSBezierPath *arrow = [NSBezierPath bezierPath];
+    
+    [arrow moveToPoint:NSMakePoint(base, 6.0*h)];
+    [arrow lineToPoint:NSMakePoint(base, 10.0*h)];
+    [arrow lineToPoint:NSMakePoint(8.0*w, 10.0*h)];
+    
+    // top point of triangle
+    [arrow lineToPoint:NSMakePoint(8.0*w, 13.0*h)];
+    // right point of triangle
+    [arrow lineToPoint:NSMakePoint(tip, 8.0*h)];
+    // bottom point of triangle
+    [arrow lineToPoint:NSMakePoint(8.0*w, 3.0*h)];
+    
+    [arrow lineToPoint:NSMakePoint(8.0*w, 6.0*h)];
+    [arrow closePath];
+    
+    return arrow;
+}
+
+- (void)drawWithFrame:(NSRect)frame inView:(NSView *)controlView;
+{
+    // @@ Dark mode
+    
+    // NSCell's highlight drawing does not look correct against a dark 
background, so override it completely
+    NSColor *bgColor = nil;
+    NSColor *arrowColor = nil;
+    NSColor *strokeColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
+    NSRect diskFrame = NSInsetRect(frame, 1.0, 1.0);
+    NSRect circleFrame = NSInsetRect(frame, 0.5, 0.5);
+    
+    if ([self isEnabled] == NO) {
+        bgColor = [NSColor colorWithCalibratedWhite:0.3 alpha:0.5];
+        arrowColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
+    } else if ([self isHighlighted]) {
+        bgColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.8];
+        arrowColor = [NSColor colorWithCalibratedWhite:0.5 alpha:0.9];
+    } else {
+        bgColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.7];
+        arrowColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
+    }
+    
+    CGContextRef ctxt = [[NSGraphicsContext currentContext] graphicsPort];
+    CGContextSaveGState(ctxt);
+
+    CGContextSetAlpha(ctxt, _arrowAlpha);
+    NSRectClip(frame);
+    [bgColor setFill];
+    [strokeColor setStroke];
+    [[NSBezierPath bezierPathWithOvalInRect:diskFrame] fill];
+    [[NSBezierPath bezierPathWithOvalInRect:circleFrame] stroke];
+    
+    CGContextTranslateCTM(ctxt, NSMinX(diskFrame), NSMinY(diskFrame));
+    
+    [arrowColor setFill];
+    [[self arrowBezierPathWithSize:diskFrame.size] fill];
+    
+    CGContextRestoreGState(ctxt);
+}
+
+@end

Deleted: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.h       
2024-01-23 22:30:22 UTC (rev 28658)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.h       
2024-01-23 22:32:13 UTC (rev 28659)
@@ -1,95 +0,0 @@
-//
-//  FVArrowButtonCell.h
-//  FileViewTest
-//
-//  Created by Adam Maxwell on 09/21/07.
-/*
- This software is Copyright (c) 2007
- Adam Maxwell. All rights reserved.
- 
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- 
- - Neither the name of Adam Maxwell nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- 
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Cocoa/Cocoa.h>
-
-/** @file FVArrowButtonCell.h  Arrow button for page changes. */
-
-typedef NS_ENUM(NSUInteger, FVArrowDirection) { 
-    FVArrowRight = 0, 
-    FVArrowLeft  = 1
-};
-
-/** @internal @brief Circular arrow button.
- 
- FVArrowButton is a circle with an arrow inside, used as a page change button. 
 Modeled after the page change button that Finder shows for PDF files on 10.5 
in column mode preview.  */
-@interface FVArrowButton : NSButton
-
-/** The arrow direction.
- 
- Cover method for the cell's property. Calls setNeedsDisplay:. */
-@property (nonatomic) FVArrowDirection arrowDirection;
-
-/** The arrow direction.
- 
- Cover method for the cell's property. This is animatable. Calls 
setNeedsDisplay:. */
-@property (nonatomic) CGFloat arrowAlpha;
-
-@end
-
-/** @internal @brief Circular arrow button.
- 
- FVArrowButtonCell is a circle with an arrow inside, used as a page change 
button.  Modeled after the page change button that Finder shows for PDF files 
on 10.5 in column mode preview.  */
-@interface FVArrowButtonCell : NSButtonCell {
-    FVArrowDirection _arrowDirection;
-    CGFloat _arrowAlpha;
-}
-
-/** The arrow direction.
- 
- Determines which way the arrow points. */
-@property (nonatomic) FVArrowDirection arrowDirection;
-
-/** The arrow alpha.
- 
- Determines an overall alpha when drawing. */
-@property (nonatomic) CGFloat arrowAlpha;
-
-@end
-
-/** @typedef NSUInteger FVArrowDirection 
- FVArrowButtonCell direction.
- */
-
-/** @var FVArrowRight 
- Right-pointing arrow.
- */
-/** @var FVArrowLeft 
- Left-pointing arrow.
- */
-

Deleted: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.m       
2024-01-23 22:30:22 UTC (rev 28658)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVArrowButtonCell.m       
2024-01-23 22:32:13 UTC (rev 28659)
@@ -1,176 +0,0 @@
-//
-//  FVArrowButtonCell.m
-//  FileViewTest
-//
-//  Created by Adam Maxwell on 09/21/07.
-/*
- This software is Copyright (c) 2007
- Adam Maxwell. All rights reserved.
- 
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- 
- - Neither the name of Adam Maxwell nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- 
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "FVArrowButtonCell.h"
-#import <QuartzCore/QuartzCore.h>
-
-#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < 
MAC_OS_X_VERSION_10_12
-#define NSEventMaskLeftMouseUp NSLeftMouseUpMask
-#define NSEventMaskLeftMouseDragged NSLeftMouseDraggedMask
-#define NSEventTypeLeftMouseDragged NSLeftMouseDragged
-#endif
-
-@implementation FVArrowButton
-
-@dynamic arrowDirection, arrowAlpha;
-
-+ (id)defaultAnimationForKey:(NSAnimatablePropertyKey)key {
-    if ([key isEqualToString:@"arrowAlpha"])
-        return [CABasicAnimation animation];
-    return [super defaultAnimationForKey:key];
-}
-
-+ (Class)cellClass { return [FVArrowButtonCell self]; }
-
-- (FVArrowDirection)arrowDirection {
-    return [(FVArrowButtonCell *)[self cell] arrowDirection];
-}
-
-- (void)setArrowDirection:(FVArrowDirection)arrowDirection {
-    [(FVArrowButtonCell *)[self cell] setArrowDirection:arrowDirection];
-}
-
-- (CGFloat)arrowAlpha {
-    return [(FVArrowButtonCell *)[self cell] arrowAlpha];
-}
-
-- (void)setArrowAlpha:(CGFloat)arrowAlpha {
-    [(FVArrowButtonCell *)[self cell] setArrowAlpha:arrowAlpha];
-    [self setNeedsDisplay:YES];
-}
-
-@end
-
-@implementation FVArrowButtonCell
-
-@synthesize arrowDirection=_arrowDirection;
-@synthesize arrowAlpha=_arrowAlpha;
-
-- (id)initTextCell:(NSString *)string {
-    self = [super initTextCell:string];
-    if (self) {
-        [self setHighlightsBy:NSNoCellMask];
-        [self setImagePosition:NSImageOnly];
-        [self setBezelStyle:NSRegularSquareBezelStyle];
-        [self setBordered:NO];
-        [self setContinuous:YES];
-        _arrowDirection = FVArrowRight;
-        _arrowAlpha = 1.0;
-    }
-    return self;
-}
-
-- (id)initImageCell:(NSImage *)image {
-    self = [super initImageCell:image];
-    if (self) {
-        [self setHighlightsBy:NSNoCellMask];
-        [self setImagePosition:NSImageOnly];
-        [self setBezelStyle:NSRegularSquareBezelStyle];
-        [self setBordered:NO];
-        [self setContinuous:YES];
-        _arrowDirection = FVArrowRight;
-        _arrowAlpha = 1.0;
-    }
-    return self;
-}
-
-- (NSBezierPath *)arrowBezierPathWithSize:(NSSize)size;
-{
-    CGFloat w = size.width / 16.0, h = size.height / 16.0;
-    CGFloat tip = _arrowDirection == FVArrowRight ? 14.0*w : 2.0*w;
-    CGFloat base = _arrowDirection == FVArrowRight ? 3.0*w : 13.0*w;
-    NSBezierPath *arrow = [NSBezierPath bezierPath];
-    
-    [arrow moveToPoint:NSMakePoint(base, 6.0*h)];
-    [arrow lineToPoint:NSMakePoint(base, 10.0*h)];
-    [arrow lineToPoint:NSMakePoint(8.0*w, 10.0*h)];
-    
-    // top point of triangle
-    [arrow lineToPoint:NSMakePoint(8.0*w, 13.0*h)];
-    // right point of triangle
-    [arrow lineToPoint:NSMakePoint(tip, 8.0*h)];
-    // bottom point of triangle
-    [arrow lineToPoint:NSMakePoint(8.0*w, 3.0*h)];
-    
-    [arrow lineToPoint:NSMakePoint(8.0*w, 6.0*h)];
-    [arrow closePath];
-    
-    return arrow;
-}
-
-- (void)drawWithFrame:(NSRect)frame inView:(NSView *)controlView;
-{
-    // @@ Dark mode
-    
-    // NSCell's highlight drawing does not look correct against a dark 
background, so override it completely
-    NSColor *bgColor = nil;
-    NSColor *arrowColor = nil;
-    NSColor *strokeColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
-    NSRect diskFrame = NSInsetRect(frame, 1.0, 1.0);
-    NSRect circleFrame = NSInsetRect(frame, 0.5, 0.5);
-    
-    if ([self isEnabled] == NO) {
-        bgColor = [NSColor colorWithCalibratedWhite:0.3 alpha:0.5];
-        arrowColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
-    } else if ([self isHighlighted]) {
-        bgColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.8];
-        arrowColor = [NSColor colorWithCalibratedWhite:0.5 alpha:0.9];
-    } else {
-        bgColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.7];
-        arrowColor = [NSColor colorWithCalibratedWhite:1.0 alpha:0.9];
-    }
-    
-    CGContextRef ctxt = [[NSGraphicsContext currentContext] graphicsPort];
-    CGContextSaveGState(ctxt);
-
-    CGContextSetAlpha(ctxt, _arrowAlpha);
-    NSRectClip(frame);
-    [bgColor setFill];
-    [strokeColor setStroke];
-    [[NSBezierPath bezierPathWithOvalInRect:diskFrame] fill];
-    [[NSBezierPath bezierPathWithOvalInRect:circleFrame] stroke];
-    
-    CGContextTranslateCTM(ctxt, NSMinX(diskFrame), NSMinY(diskFrame));
-    
-    [arrowColor setFill];
-    [[self arrowBezierPathWithSize:diskFrame.size] fill];
-    
-    CGContextRestoreGState(ctxt);
-}
-
-@end

Modified: 
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.xcodeproj/project.pbxproj
===================================================================
--- 
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.xcodeproj/project.pbxproj    
    2024-01-23 22:30:22 UTC (rev 28658)
+++ 
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.xcodeproj/project.pbxproj    
    2024-01-23 22:32:13 UTC (rev 28659)
@@ -88,8 +88,8 @@
                F93C3AEC0D39473C006EB558 /* FVFinderLabel.m in Sources */ = 
{isa = PBXBuildFile; fileRef = F93C3AEA0D39473C006EB558 /* FVFinderLabel.m */; 
};
                F94692020CA56EC500AC2772 /* FVFileView.h in Headers */ = {isa = 
PBXBuildFile; fileRef = F94691F70CA56EC500AC2772 /* FVFileView.h */; settings = 
{ATTRIBUTES = (Public, ); }; };
                F94692030CA56EC500AC2772 /* FVFileView.m in Sources */ = {isa = 
PBXBuildFile; fileRef = F94691F80CA56EC500AC2772 /* FVFileView.m */; };
-               F94692040CA56EC500AC2772 /* FVArrowButtonCell.h in Headers */ = 
{isa = PBXBuildFile; fileRef = F94691F90CA56EC500AC2772 /* FVArrowButtonCell.h 
*/; };
-               F94692050CA56EC500AC2772 /* FVArrowButtonCell.m in Sources */ = 
{isa = PBXBuildFile; fileRef = F94691FA0CA56EC500AC2772 /* FVArrowButtonCell.m 
*/; };
+               F94692040CA56EC500AC2772 /* FVArrowButton.h in Headers */ = 
{isa = PBXBuildFile; fileRef = F94691F90CA56EC500AC2772 /* FVArrowButton.h */; 
};
+               F94692050CA56EC500AC2772 /* FVArrowButton.m in Sources */ = 
{isa = PBXBuildFile; fileRef = F94691FA0CA56EC500AC2772 /* FVArrowButton.m */; 
};
                F94692060CA56EC500AC2772 /* FVIcon.h in Headers */ = {isa = 
PBXBuildFile; fileRef = F94691FB0CA56EC500AC2772 /* FVIcon.h */; };
                F94692070CA56EC500AC2772 /* FVIcon.m in Sources */ = {isa = 
PBXBuildFile; fileRef = F94691FC0CA56EC500AC2772 /* FVIcon.m */; };
                F946920A0CA56EC500AC2772 /* FVPreviewer.h in Headers */ = {isa 
= PBXBuildFile; fileRef = F94691FF0CA56EC500AC2772 /* FVPreviewer.h */; 
settings = {ATTRIBUTES = (Public, ); }; };
@@ -238,8 +238,8 @@
                F93C3AEA0D39473C006EB558 /* FVFinderLabel.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= FVFinderLabel.m; sourceTree = "<group>"; };
                F94691F70CA56EC500AC2772 /* FVFileView.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
FVFileView.h; sourceTree = "<group>"; };
                F94691F80CA56EC500AC2772 /* FVFileView.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= FVFileView.m; sourceTree = "<group>"; };
-               F94691F90CA56EC500AC2772 /* FVArrowButtonCell.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
FVArrowButtonCell.h; sourceTree = "<group>"; };
-               F94691FA0CA56EC500AC2772 /* FVArrowButtonCell.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= FVArrowButtonCell.m; sourceTree = "<group>"; };
+               F94691F90CA56EC500AC2772 /* FVArrowButton.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
FVArrowButton.h; sourceTree = "<group>"; };
+               F94691FA0CA56EC500AC2772 /* FVArrowButton.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= FVArrowButton.m; sourceTree = "<group>"; };
                F94691FB0CA56EC500AC2772 /* FVIcon.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
FVIcon.h; sourceTree = "<group>"; };
                F94691FC0CA56EC500AC2772 /* FVIcon.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= FVIcon.m; sourceTree = "<group>"; };
                F94691FF0CA56EC500AC2772 /* FVPreviewer.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
FVPreviewer.h; sourceTree = "<group>"; };
@@ -440,8 +440,8 @@
                        children = (
                                F94691F70CA56EC500AC2772 /* FVFileView.h */,
                                F94691F80CA56EC500AC2772 /* FVFileView.m */,
-                               F94691F90CA56EC500AC2772 /* FVArrowButtonCell.h 
*/,
-                               F94691FA0CA56EC500AC2772 /* FVArrowButtonCell.m 
*/,
+                               F94691F90CA56EC500AC2772 /* FVArrowButton.h */,
+                               F94691FA0CA56EC500AC2772 /* FVArrowButton.m */,
                                CE05D5A00D7C10FD0034C2A8 /* FVSlider.h */,
                                CE05D5A10D7C10FD0034C2A8 /* FVSlider.m */,
                                CEA831120DC1FAB500B551D1 /* 
FVAccessibilityIconElement.h */,
@@ -604,7 +604,7 @@
                        buildActionMask = 2147483647;
                        files = (
                                F94692020CA56EC500AC2772 /* FVFileView.h in 
Headers */,
-                               F94692040CA56EC500AC2772 /* FVArrowButtonCell.h 
in Headers */,
+                               F94692040CA56EC500AC2772 /* FVArrowButton.h in 
Headers */,
                                F94692060CA56EC500AC2772 /* FVIcon.h in Headers 
*/,
                                F946920A0CA56EC500AC2772 /* FVPreviewer.h in 
Headers */,
                                F94694500CA59AF100AC2772 /* FVScaledImageView.h 
in Headers */,
@@ -767,7 +767,7 @@
                        buildActionMask = 2147483647;
                        files = (
                                F94692030CA56EC500AC2772 /* FVFileView.m in 
Sources */,
-                               F94692050CA56EC500AC2772 /* FVArrowButtonCell.m 
in Sources */,
+                               F94692050CA56EC500AC2772 /* FVArrowButton.m in 
Sources */,
                                F94692070CA56EC500AC2772 /* FVIcon.m in Sources 
*/,
                                F946920B0CA56EC500AC2772 /* FVPreviewer.m in 
Sources */,
                                F94694510CA59AF100AC2772 /* FVScaledImageView.m 
in Sources */,

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to