From c30464ee77f6dc08550f9375d83d804f41b236fe Mon Sep 17 00:00:00 2001 From: Didier Korthoudt Date: Fri, 11 Sep 2020 08:55:10 +0200 Subject: [PATCH] New: This adds the CSS dictionaries to the description of the color (#2911) --- AppKit/CPColor.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 5866fb0d4..c7d606fcd 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -800,6 +800,9 @@ url("data:image/png;base64,BASE64ENCODEDDATA") // if there is a pattern image var description = [super description], patternImage = [self patternImage]; + if ([self isCSSBased]) + return description + "\n" + [self cssDictionary]+ "\nBefore:\n" + [self cssBeforeDictionary] + "\nAfter:\n" + [self cssAfterDictionary]; + if (!patternImage) return description + " " + [self cssString];