Tint with accent color

This commit is contained in:
relikd
2020-01-17 22:46:07 +01:00
parent 352428679d
commit 51dd688801
5 changed files with 14 additions and 6 deletions

View File

@@ -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

View File

@@ -1 +1 @@
github "relikd/RSXML2" "v2.0.0"
github "relikd/RSXML2" "f1a02fabbdece48e3f7835725c65a7589d98782f"

View File

@@ -1 +1 @@
github "relikd/RSXML2" "v2.0.0"
github "relikd/RSXML2" "f1a02fabbdece48e3f7835725c65a7589d98782f"

View File

@@ -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>

View File

@@ -38,7 +38,11 @@
static NSColor *color;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
if (@available(macOS 10.14, *)) {
color = UserPrefsColor(Pref_colorStatusIconTint, [NSColor controlAccentColor]);
} else {
color = UserPrefsColor(Pref_colorStatusIconTint, [self rssOrange]);
}
});
return color;
}
@@ -47,7 +51,11 @@
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;
}