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

@@ -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, ^{
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;
}
@@ -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;
}