Skip to content

Commit

Permalink
Tint with accent color
Browse files Browse the repository at this point in the history
  • Loading branch information
relikd committed Jan 17, 2020
1 parent 3524286 commit 51dd688
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -11,9 +11,9 @@ and this project does adhere to [Semantic Versioning](https://semver.org/spec/v2
## [1.1.0] - 2020-01-17
### Added
- *QuickLook*: Thumbnail previews for OPML files (QLOPML v1.3)
- *Status Bar Menu*: Tint menu bar icon with Accent color (macOS 10.14+)

### Fixed
- *Status Bar Menu*: Tint menu bar icon on macOS 10.14+
- Resolved Xcode warnings in Xcode 11


Expand Down
2 changes: 1 addition & 1 deletion Cartfile
@@ -1 +1 @@
github "relikd/RSXML2" "v2.0.0"
github "relikd/RSXML2" "f1a02fabbdece48e3f7835725c65a7589d98782f"
2 changes: 1 addition & 1 deletion Cartfile.resolved
@@ -1 +1 @@
github "relikd/RSXML2" "v2.0.0"
github "relikd/RSXML2" "f1a02fabbdece48e3f7835725c65a7589d98782f"
2 changes: 1 addition & 1 deletion baRSS/Info.plist
Expand Up @@ -70,7 +70,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>14598</string>
<string>14603</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.news</string>
<key>LSMinimumSystemVersion</key>
Expand Down
12 changes: 10 additions & 2 deletions baRSS/NSCategories/NSColor+Ext.m
Expand Up @@ -38,7 +38,11 @@ + (instancetype)menuBarIconColor {
static NSColor *color;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
color = UserPrefsColor(Pref_colorStatusIconTint, [self rssOrange]);
if (@available(macOS 10.14, *)) {
color = UserPrefsColor(Pref_colorStatusIconTint, [NSColor controlAccentColor]);
} else {
color = UserPrefsColor(Pref_colorStatusIconTint, [self rssOrange]);
}
});
return color;
}
Expand All @@ -47,7 +51,11 @@ + (instancetype)unreadIndicatorColor {
static NSColor *color;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
color = UserPrefsColor(Pref_colorUnreadIndicator, [NSColor systemBlueColor]);
if (@available(macOS 10.14, *)) {
color = UserPrefsColor(Pref_colorStatusIconTint, [NSColor controlAccentColor]);
} else {
color = UserPrefsColor(Pref_colorStatusIconTint, [NSColor systemBlueColor]);
}
});
return color;
}
Expand Down

0 comments on commit 51dd688

Please sign in to comment.