mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 01:42:03 +00:00
make CPTableHeaderView divider color theme-able
This commit is contained in:
1 parent
677cb4638f
commit
ac26827f32
2 files changed
+6
-4
No files matched your search
@@ -173,8 +173,8 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal
|
||||
|
||||
+ (id)themeAttributes
|
||||
{
|
||||
return [CPDictionary dictionaryWithObjects:[[CPNull null]]
|
||||
forKeys:[@"background-color"]];
|
||||
return [CPDictionary dictionaryWithObjects:[[CPNull null], [CPColor grayColor]]
|
||||
forKeys:[@"background-color", @"divider-color"]];
|
||||
}
|
||||
|
||||
- (void)_init
|
||||
@@ -624,7 +624,7 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal
|
||||
exposedRange = CPMakeRange(firstIndex, [exposedTableColumns lastIndex] - firstIndex + 1);
|
||||
|
||||
CGContextSetLineWidth(context, 1);
|
||||
CGContextSetStrokeColor(context, [_tableView gridColor]);
|
||||
CGContextSetStrokeColor(context, [self currentValueForThemeAttribute:@"divider-color"]);
|
||||
|
||||
[exposedColumnIndexes getIndexes:columnsArray maxCount:-1 inIndexRange:exposedRange];
|
||||
|
||||
|
||||
@@ -1224,9 +1224,11 @@ var themedButtonValues = nil,
|
||||
+ (CPTableHeaderView)themedTableHeaderRow
|
||||
{
|
||||
var header = [[CPTableHeaderView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 23.0)],
|
||||
normal = PatternColor("tableview-headerview.png", 1.0, 23.0);
|
||||
normal = PatternColor("tableview-headerview.png", 1.0, 23.0),
|
||||
gridColor = [CPColor colorWithHexString:@"dce0e2"];
|
||||
|
||||
[header setValue:normal forThemeAttribute:@"background-color"];
|
||||
[header setValue:gridColor forThemeAttribute:@"divider-color"];
|
||||
|
||||
return header;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user