Fixed: Predicate button were blurred for Aristo2

Previously, the button + and - of a CPPredicateEditor were blurred for Aristo2. Now they are nice and not blurred anymore.
This PR also add a second state for the button, the button will be darker when clicking on it.

Fixes #2183
This commit is contained in:
Alexandre Wilhelm committed 2015-01-12 18:26:53 -08:00
1 parent a3a3da309c
commit b963b9547b
5 files changed
+4 -2

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

+4 -2
View File
@@ -2279,6 +2279,8 @@ var themedButtonValues = nil,
sliceLastBottomBorderColor = [CPColor colorWithWhite:0.6 alpha:1.0],
buttonAddImage = PatternImage(@"rule-editor-button-add-image.png", 20.0, 20.0),
buttonRemoveImage = PatternImage(@"rule-editor-button-remove-image.png", 20.0, 20.0),
buttonAddHighlightedImage = PatternImage(@"rule-editor-button-add-highlighted-image.png", 20.0, 20.0),
buttonRemoveHighlightedImage = PatternImage(@"rule-editor-button-remove-highlighted-image.png", 20.0, 20.0),
fontColor = [CPColor colorWithWhite:150 / 255 alpha:1],
ruleEditorThemedValues =
@@ -2292,9 +2294,9 @@ var themedButtonValues = nil,
[@"font", [CPFont systemFontOfSize:10.0]],
[@"font-color", fontColor],
[@"add-image", buttonAddImage, CPThemeStateNormal],
[@"add-image", buttonAddImage, CPThemeStateHighlighted],
[@"add-image", buttonAddHighlightedImage, CPThemeStateHighlighted],
[@"remove-image", buttonRemoveImage, CPThemeStateNormal],
[@"remove-image", buttonRemoveImage, CPThemeStateHighlighted],
[@"remove-image", buttonRemoveHighlightedImage, CPThemeStateHighlighted],
[@"vertical-alignment", CPCenterVerticalTextAlignment],
];