mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-09 16:38:45 +00:00
Removed redundant code, fixed to work with theming of tableview grid color
This commit is contained in:
1 parent
9450f63f2a
commit
fe2bc9f523
1 file changed
+5
-6
@@ -41,9 +41,6 @@
|
||||
// Convert xib default to cib default
|
||||
if (_rowHeight == 17)
|
||||
_rowHeight = 23;
|
||||
|
||||
if ([_gridColor isEqual:[CPColor colorWithRed:127.0 / 255.0 green:127.0 / 255.0 blue:127.0 / 255.0 alpha:1.0]])
|
||||
_gridColor = [CPColor colorWithRed:229.0 / 255.0 green:229.0 / 255.0 blue:229.0 / 255.0 alpha:1.0];
|
||||
|
||||
_headerView = [aCoder decodeObjectForKey:@"NSHeaderView"];
|
||||
_cornerView = [aCoder decodeObjectForKey:@"NSCornerView"];
|
||||
@@ -53,11 +50,13 @@
|
||||
|
||||
_intercellSpacing = CGSizeMake(0.0, 0.0);//CGSizeMake([aCoder decodeFloatForKey:"NSIntercellSpacingWidth"], [aCoder decodeFloatForKey:"NSIntercellSpacingHeight"]);
|
||||
|
||||
_gridColor = [aCoder decodeObjectForKey:@"NSGridColor"];
|
||||
var gridColor = [aCoder decodeObjectForKey:@"NSGridColor"];
|
||||
|
||||
// Convert xib default to cib default
|
||||
if ([_gridColor isEqual:[CPColor colorWithRed:127.0 / 255.0 green:127.0 / 255.0 blue:127.0 / 255.0 alpha:1.0]])
|
||||
_gridColor = [CPColor colorWithRed:229.0 / 255.0 green:229.0 / 255.0 blue:229.0 / 255.0 alpha:1.0];
|
||||
if ([gridColor isEqual:[CPColor colorWithRed:127.0 / 255.0 green:127.0 / 255.0 blue:127.0 / 255.0 alpha:1.0]])
|
||||
gridColor = [CPColor colorWithRed:229.0 / 255.0 green:229.0 / 255.0 blue:229.0 / 255.0 alpha:1.0];
|
||||
|
||||
[self setValue:gridColor forThemeAttribute:"grid-color"];
|
||||
|
||||
_gridStyleMask = [aCoder decodeIntForKey:@"NSGridStyleMask"];
|
||||
|
||||
|
||||
Reference in new issue
Block a user