mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
Add theme for CPButtonBar plus, minus and action button
This commit is contained in:
1 parent
cebf8d3579
commit
b3259e4b49
4 files changed
+10
-2
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 352 B |
Binary file not shown.
|
After Width: | Height: | Size: 71 B |
Binary file not shown.
|
After Width: | Height: | Size: 92 B |
@@ -1217,7 +1217,11 @@ var themedButtonValues = nil,
|
||||
["buttonbar-button-bezel-disabled-center.png", 1.0, 25.0],
|
||||
["buttonbar-button-bezel-disabled-right.png", 2.0, 25.0]
|
||||
],
|
||||
PatternIsHorizontal);
|
||||
PatternIsHorizontal),
|
||||
|
||||
buttonImagePlus = PatternImage("buttonbar-image-plus.png", 11.0, 12.0),
|
||||
buttonImageMinus = PatternImage("buttonbar-image-minus.png", 11.0, 4.0),
|
||||
buttonImageAction = PatternImage("buttonbar-image-action.png", 22.0, 24.0),
|
||||
|
||||
themedButtonBarValues =
|
||||
[
|
||||
@@ -1230,7 +1234,11 @@ var themedButtonValues = nil,
|
||||
[@"button-bezel-color", buttonBezelColor],
|
||||
[@"button-bezel-color", buttonBezelHighlightedColor, CPThemeStateHighlighted],
|
||||
[@"button-bezel-color", buttonBezelDisabledColor, CPThemeStateDisabled],
|
||||
[@"button-text-color", [CPColor blackColor]]
|
||||
[@"button-text-color", [CPColor blackColor]],
|
||||
|
||||
[@"button-image-plus", buttonImagePlus],
|
||||
[@"button-image-minus", buttonImageMinus],
|
||||
[@"button-image-action", buttonImageAction]
|
||||
];
|
||||
|
||||
[self registerThemeValues:themedButtonBarValues forView:buttonBar];
|
||||
|
||||
Reference in new issue
Block a user