Skip to content

Commit

Permalink
Highlighted and disabled looks for bordered CPColorWell.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed Jul 9, 2012
1 parent 2d8a849 commit 77a009c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions AppKit/Themes/Aristo/ThemeDescriptors.j
Expand Up @@ -1144,6 +1144,22 @@ var themedButtonValues = nil,
],
PatternIsHorizontal),

bezelHighlightedColor = PatternColor(
[
["colorwell-bezel-highlighted-left.png", 3.0, 24.0],
["colorwell-bezel-highlighted-center.png", 1.0, 24.0],
["colorwell-bezel-highlighted-right.png", 3.0, 24.0]
],
PatternIsHorizontal),

bezelDisabledColor = PatternColor(
[
["colorwell-bezel-disabled-left.png", 3.0, 24.0],
["colorwell-bezel-disabled-center.png", 1.0, 24.0],
["colorwell-bezel-disabled-right.png", 3.0, 24.0]
],
PatternIsHorizontal),

contentBorderColor = PatternColor(
[
["colorwell-content-border-left.png", 1.0, 15.0],
Expand All @@ -1157,6 +1173,10 @@ var themedButtonValues = nil,
[@"content-inset", CGInsetMake(5.0, 5.0, 5.0, 5.0), CPThemeStateBordered],
[@"content-border-inset", CGInsetMake(5.0, 5.0, 4.0, 5.0), CPThemeStateBordered],
[@"content-border-color", contentBorderColor, CPThemeStateBordered],

[@"bezel-color", bezelHighlightedColor, CPThemeStateBordered | CPThemeStateHighlighted],

[@"bezel-color", bezelDisabledColor, CPThemeStateBordered | CPThemeStateDisabled],
];

[self registerThemeValues:themedColorWellValues forView:colorWell];
Expand Down

0 comments on commit 77a009c

Please sign in to comment.