Skip to content

Commit 0b87864

Browse files
author
Sascha Lamprecht
committed
Adjust Status Text color. In light mode a bit darker and in dark mode brighter.
1 parent 17f248b commit 0b87864

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Sources/WCChatController.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,11 +2632,17 @@ - (NSView *)tableView:(NSTableView *)tableView
26322632

26332633
cellView.nickTextField.attributedStringValue = [NSAttributedString attributedStringWithString:[user nick]
26342634
attributes:attributes];
2635-
26362635
cellView.nickTextField.toolTip = [user nick];
2637-
26382636
cellView.statusTextField.toolTip = [user status];
26392637
cellView.statusTextField.stringValue = [user status];
2638+
2639+
NSString *osxMode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];
2640+
if (osxMode == nil) {
2641+
cellView.statusTextField.textColor = [NSColor colorWithCalibratedRed:153.0/255.0 green:153.0/255.0 blue:153.0/255.0 alpha:1.0]; //Light mode
2642+
} else {
2643+
cellView.statusTextField.textColor = [NSColor colorWithCalibratedRed:197.0/255.0 green:197.0/255.0 blue:197.0/255.0 alpha:1.0]; //Dark mode
2644+
}
2645+
26402646
cellView.imageView.image = [user iconWithIdleTint:YES];
26412647

26422648
return cellView;

Sources/WCUser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ @implementation WCUser
9696

9797
+ (NSColor *)colorForColor:(WCAccountColor)color idleTint:(BOOL)idleTint {
9898
NSColor *value;
99-
99+
100100
NSString *osxMode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];
101101

102102
switch(color) {

0 commit comments

Comments
 (0)