make splitview pane divider color theme-able

This commit is contained in:
Klaas Pieter Annema
2010-10-22 13:54:39 +02:00
parent f2391cb150
commit 1165e569d2
2 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -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
+4 -1
View File
@@ -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];