FIXED: This fixes problems with default theme attributes values in CPTableView (#2732)

This commit is contained in:
Didier Korthoudt authored and cacaodev committed 2018-06-21 16:47:21 +02:00
1 parent 3f58a64827
commit 27883c5beb
1 file changed
+4 -4
+4 -4
View File
@@ -346,8 +346,8 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
+ (CPDictionary)themeAttributes
{
return @{
@"alternating-row-colors": [CPNull null],
@"grid-color": [CPNull null],
@"alternating-row-colors": @[[CPColor whiteColor], [CPColor colorWithRed:245.0 / 255.0 green:249.0 / 255.0 blue:252.0 / 255.0 alpha:1.0]],
@"grid-color": [CPColor colorWithHexString:@"dce0e2"],
@"grid-line-thickness": 1.0,
@"highlighted-grid-color": [CPNull null],
@"selection-color": [CPNull null],
@@ -369,7 +369,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
@"dropview-above-border-width": [CPNull null],
@"dropview-above-selected-border-color": [CPNull null],
@"dropview-above-selected-border-width": [CPNull null],
@"header-view-height": [CPNull null]
@"header-view-height": 25.0
};
}
@@ -404,7 +404,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
[self setGridColor:[self valueForThemeAttribute:@"grid-color"]];
[self setGridStyleMask:CPTableViewGridNone];
[self setHeaderView:[[CPTableHeaderView alloc] initWithFrame:CGRectMake(0, 0, [self bounds].size.width, [self valueForThemeAttribute:@"header-view-height"] || _rowHeight)]];
[self setHeaderView:[[CPTableHeaderView alloc] initWithFrame:CGRectMake(0, 0, [self bounds].size.width, [self valueForThemeAttribute:@"header-view-height"])]];
[self setCornerView:[[_CPCornerView alloc] initWithFrame:CGRectMake(0, 0, [CPScroller scrollerWidth], CGRectGetHeight([_headerView frame]))]];
_currentHighlightedTableColumn = nil;