mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-15 23:21:28 +00:00
make splitview pane divider color theme-able
This commit is contained in:
@@ -68,8 +68,8 @@ var CPSplitViewHorizontalImage = nil,
|
||||
|
||||
+ (id)themeAttributes
|
||||
{
|
||||
return [CPDictionary dictionaryWithObjects:[10.0, 1.0]
|
||||
forKeys:[@"divider-thickness", @"pane-divider-thickness"]];
|
||||
return [CPDictionary dictionaryWithObjects:[10.0, 1.0, [CPColor grayColor]]
|
||||
forKeys:[@"divider-thickness", @"pane-divider-thickness", @"pane-divider-color"]];
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -241,7 +241,7 @@ var CPSplitViewHorizontalImage = nil,
|
||||
{
|
||||
if (_isPaneSplitter)
|
||||
{
|
||||
_DOMDividerElements[_drawingDivider].style.backgroundColor = "#A5A5A5";
|
||||
_DOMDividerElements[_drawingDivider].style.backgroundColor = [[self currentValueForThemeAttribute:@"pane-divider-color"] cssString];
|
||||
_DOMDividerElements[_drawingDivider].style.backgroundImage = "";
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1401,10 +1401,13 @@ var themedButtonValues = nil,
|
||||
[splitView addSubview:rightView];
|
||||
|
||||
|
||||
[splitView setIsPaneSplitter:YES];
|
||||
|
||||
var themedSplitViewValues =
|
||||
[
|
||||
[@"divider-thickness", 10.0],
|
||||
[@"pane-divider-thickness", 1.0]
|
||||
[@"pane-divider-thickness", 1.0],
|
||||
[@"pane-divider-color", [CPColor colorWithRed:165.0 / 255.0 green:165.0 / 255.0 blue:165.0 / 255.0 alpha:1.0]]
|
||||
];
|
||||
|
||||
[self registerThemeValues:themedSplitViewValues forView:splitView];
|
||||
|
||||
Reference in New Issue
Block a user