fixed: Colorwell did not reflect enabled state visually

This commit is contained in:
daboe01 committed 2026-02-28 15:57:19 +01:00
1 parent 0b83c20648
commit bce326de9d
1 file changed
+3 -1
+3 -1
View File
@@ -346,8 +346,10 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv
positioned:CPWindowAbove
relativeToEphemeralSubviewNamed:@"bezel-view"];
[contentView setBackgroundColor:_color];
// Dim the color presentation if the control is disabled
[contentView setAlphaValue:[self isEnabled] ? 1.0 : 0.5];
var contentBorderView = [self layoutEphemeralSubviewNamed:@"content-border-view"
positioned:CPWindowAbove