Skip to content

Commit

Permalink
Icon: Replace icon with a newly rendered design
Browse files Browse the repository at this point in the history
Icon has now been replaced with a newly rendered design, and code
changed accordingly.

Signed-off-by: Christopher Snowhill <[email protected]>
  • Loading branch information
kode54 committed May 2, 2022
1 parent 5a47021 commit 2aa3ddd
Show file tree
Hide file tree
Showing 37 changed files with 49 additions and 49 deletions.
12 changes: 6 additions & 6 deletions Application/DockIconController.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (void)stopObserving {
if(colorfulIcons) {
return [baseName stringByAppendingString:@"Colorful"];
} else {
return baseName;
return [baseName stringByAppendingString:@"Normal"];
}
}

Expand Down Expand Up @@ -71,14 +71,14 @@ - (void)refreshDockIcon:(NSInteger)playbackStatus withProgress:(double)progressS
if(drawIcon) {
switch(playbackStatus) {
case CogStatusPlaying:
badgeImage = [NSImage imageNamed:getBadgeName(@"playDockBadge", colorfulIcons)];
badgeImage = [NSImage imageNamed:getBadgeName(@"Play", colorfulIcons)];
break;
case CogStatusPaused:
badgeImage = [NSImage imageNamed:getBadgeName(@"pauseDockBadge", colorfulIcons)];
badgeImage = [NSImage imageNamed:getBadgeName(@"Pause", colorfulIcons)];
break;

default:
badgeImage = [NSImage imageNamed:getBadgeName(@"stopDockBadge", colorfulIcons)];
badgeImage = [NSImage imageNamed:getBadgeName(@"Stop", colorfulIcons)];
break;
}

Expand All @@ -87,7 +87,7 @@ - (void)refreshDockIcon:(NSInteger)playbackStatus withProgress:(double)progressS
NSImage *newDockImage = [dockImage copy];
[newDockImage lockFocus];

[badgeImage drawInRect:NSMakeRect(0, 0, 128, 128)
[badgeImage drawInRect:NSMakeRect(0, 0, 1024, 1024)
fromRect:NSMakeRect(0, 0, badgeSize.width, badgeSize.height)
operation:NSCompositingOperationSourceOver
fraction:1.0];
Expand Down Expand Up @@ -164,7 +164,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
}

- (void)awakeFromNib {
dockImage = [[NSImage imageNamed:@"icon_blank"] copy];
dockImage = [[NSImage imageNamed:@"Plaque"] copy];
lastColorfulStatus = -1;
lastProgressStatus = [NSNumber numberWithDouble:-1];
imageView = nil;
Expand Down
66 changes: 33 additions & 33 deletions Cog.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
{
"images" : [
{
"filename" : "Cog Icon Precomposed_16.png",
"filename" : "icon_16x16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "Cog Icon Precomposed_16@2x.png",
"filename" : "icon_16x16@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "Cog Icon Precomposed_32.png",
"filename" : "icon_32x32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "Cog Icon Precomposed_32@2x.png",
"filename" : "icon_32x32@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "Cog Icon Precomposed_128.png",
"filename" : "icon_128x128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "Cog Icon Precomposed_128@2x.png",
"filename" : "icon_128x128@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "Cog Icon Precomposed_256.png",
"filename" : "icon_256x256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "Cog Icon Precomposed_256@2x.png",
"filename" : "icon_256x256@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "Cog Icon Precomposed_512.png",
"filename" : "icon_512x512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "Cog Icon Precomposed_512@2x.png",
"filename" : "icon_512x512@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CogAssets.xcassets/AppIcon.appiconset/icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Icons/icon_blank.icns
Binary file not shown.
Binary file added Images/PauseColorful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/PauseNormal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Plaque.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/PlayColorful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/PlayNormal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/StopColorful.png
Binary file added Images/StopNormal.png
Binary file removed Images/pauseDockBadge.png
Diff not rendered.
Binary file removed Images/pauseDockBadgeColorful.png
Diff not rendered.
Binary file removed Images/playDockBadge.png
Diff not rendered.
Binary file removed Images/playDockBadgeColorful.png
Diff not rendered.
Binary file removed Images/stopDockBadge.png
Diff not rendered.
Binary file removed Images/stopDockBadgeColorful.png
Diff not rendered.

0 comments on commit 2aa3ddd

Please sign in to comment.