From 61d97338e2a91cf73000dd1144fb0bd63165ee19 Mon Sep 17 00:00:00 2001 From: Didier Korthoudt Date: Sun, 13 May 2018 19:48:33 +0200 Subject: [PATCH] FIXED: _CPMenuItemStandardView was bypassing theme for disabled text color (#2695) --- AppKit/CPMenuItem/_CPMenuItemStandardView.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPMenuItem/_CPMenuItemStandardView.j b/AppKit/CPMenuItem/_CPMenuItemStandardView.j index f7112befb..abfd1fead 100644 --- a/AppKit/CPMenuItem/_CPMenuItemStandardView.j +++ b/AppKit/CPMenuItem/_CPMenuItemStandardView.j @@ -55,6 +55,7 @@ @"menu-item-selection-color": [CPNull null], @"menu-item-text-shadow-color": [CPNull null], @"menu-item-text-color": [CPNull null], + @"menu-item-disabled-text-color": [CPColor lightGrayColor], @"menu-item-default-off-state-image": [CPNull null], @"menu-item-default-off-state-highlighted-image": [CPNull null], @"menu-item-default-on-state-image": [CPNull null], @@ -124,7 +125,7 @@ - (CPColor)textColor { if (![_menuItem isEnabled]) - return [CPColor lightGrayColor]; + return [self valueForThemeAttribute:@"menu-item-disabled-text-color"]; if (_highlighted) return [CPColor whiteColor];