From f27b54af4f54ed11342a11c045320f5e8577f835 Mon Sep 17 00:00:00 2001 From: relikd Date: Fri, 3 Aug 2018 02:34:16 +0200 Subject: [PATCH] draw separator instead --- .../seperator.imageset/Contents.json | 23 ------------ .../seperator.imageset/separator.png | Bin 109 -> 0 bytes .../seperator.imageset/separator@2x.png | Bin 153 -> 0 bytes .../seperator.imageset/separator@3x.png | Bin 171 -> 0 bytes baRSS/Base.lproj/Main.xib | 35 ++++++++++-------- baRSS/NewsController.m | 13 +++++++ 6 files changed, 33 insertions(+), 38 deletions(-) delete mode 100644 baRSS/Assets.xcassets/seperator.imageset/Contents.json delete mode 100644 baRSS/Assets.xcassets/seperator.imageset/separator.png delete mode 100644 baRSS/Assets.xcassets/seperator.imageset/separator@2x.png delete mode 100644 baRSS/Assets.xcassets/seperator.imageset/separator@3x.png diff --git a/baRSS/Assets.xcassets/seperator.imageset/Contents.json b/baRSS/Assets.xcassets/seperator.imageset/Contents.json deleted file mode 100644 index 2b9622b..0000000 --- a/baRSS/Assets.xcassets/seperator.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "separator.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "separator@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "separator@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/baRSS/Assets.xcassets/seperator.imageset/separator.png b/baRSS/Assets.xcassets/seperator.imageset/separator.png deleted file mode 100644 index 76321bd19af1a6d783c8f79b02848fb02ae13106..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 109 zcmeAS@N?(olHy`uVBq!ia0y~yU^vdez`(@8#=yYvM&ZOk1_lNbPZ!6K3dUp}es1A} zgaiwQBfA{_$anoem=V>{JImJMuBpu5O-WC^6ny0p4(Zu&xgFGCV34xk$+&RdeijA> O1_n=8KbLh*2~7Y2%^%wU diff --git a/baRSS/Assets.xcassets/seperator.imageset/separator@2x.png b/baRSS/Assets.xcassets/seperator.imageset/separator@2x.png deleted file mode 100644 index 7e295e2519c40d67281237d1e81970d334306d85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153 zcmeAS@N?(olHy`uVBq!ia0y~yVC-dJU|`{3V_;w?%1k_ba4!+U`*oS=N3*# zNU&fyQswYxJ|ok=#hV0c9^GVKpZ8-|lRr#QP6;HXLMPILg9cch>IrGKL0rxdqH3S!*t7FfcGMc)I$z JtaD0e0sx-FGa&!~ diff --git a/baRSS/Assets.xcassets/seperator.imageset/separator@3x.png b/baRSS/Assets.xcassets/seperator.imageset/separator@3x.png deleted file mode 100644 index d38e4bb2d9dc2631196500af4d3f63422780db73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 171 zcmeAS@N?(olHy`uVBq!ia0y~yU;0t&_ZB8;VcyIWcv}@;tQ7xUedqK6L8Z@70t3@451P-_`HCzlC2f zt+cweW!<*i - + - + @@ -365,26 +365,27 @@ - + - + - - - + + - - - - + + + + + + - + @@ -419,7 +420,12 @@ - + + + + + + @@ -438,7 +444,7 @@ - + @@ -518,6 +524,5 @@ CA - diff --git a/baRSS/NewsController.m b/baRSS/NewsController.m index 992c783..a91d933 100644 --- a/baRSS/NewsController.m +++ b/baRSS/NewsController.m @@ -257,3 +257,16 @@ static NSString *dragNodeType = @"baRSS-feed-type"; } @end + + +@interface Separator : NSView +@end + +@implementation Separator +- (void)drawRect:(NSRect)dirtyRect { + [super drawRect:dirtyRect]; + NSGradient *grdnt = [[NSGradient alloc] initWithStartingColor:[NSColor darkGrayColor] endingColor:[[NSColor darkGrayColor] colorWithAlphaComponent:0.0]]; + NSBezierPath *rounded = [NSBezierPath bezierPathWithRoundedRect:NSMakeRect(1, self.bounds.size.height/2.0-1, self.bounds.size.width-2, 2) xRadius:1 yRadius:1]; + [grdnt drawInBezierPath:rounded angle:0]; +} +@end