Formatting and comment on table view first responder change.

Refs #2133.
This commit is contained in:
Alexander Ljungberg committed 2014-06-10 11:03:08 +02:00
1 parent c3505f865e
commit 2a78da6d07
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -5152,7 +5152,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
_editingRow = [self rowForView:responder];
_editingColumn = [self columnForView:responder];
// This is needed to set the themeState firstResponder of the tableView
// We want to keep the 'First Responder' theme state for the table view as a whole, even when a subview is being edited.
// This makes sure the theming effects of a focused table remain in effect even as cells are being edited in it.
[self _notifyViewDidBecomeFirstResponder];
if (_editingRow !== CPNotFound && [responder isKindOfClass:[CPTextField class]] && ![responder isBezeled])
+1 -1
View File
@@ -987,7 +987,7 @@ var themedButtonValues = nil,
[@"content-inset", CGInsetMake(3.0, 3.0, 3.0, 5.0), CPThemeStateTableDataView],
[@"text-color", [CPColor colorWithCalibratedWhite:51.0 / 255.0 alpha:1.0], CPThemeStateTableDataView],
[@"text-color", [CPColor whiteColor], [CPThemeStateTableDataView, CPThemeStateSelectedDataView, CPThemeStateFirstResponder,CPThemeStateKeyWindow]],
[@"text-color", [CPColor whiteColor], [CPThemeStateTableDataView, CPThemeStateSelectedDataView, CPThemeStateFirstResponder, CPThemeStateKeyWindow]],
[@"font", [CPFont systemFontOfSize:CPFontCurrentSystemSize], [CPThemeStateTableDataView, CPThemeStateSelectedDataView]],
[@"text-color", [CPColor blackColor], [CPThemeStateTableDataView, CPThemeStateEditable]],
[@"text-color", [CPColor blackColor], [CPThemeStateTableDataView, CPThemeStateSelectedDataView, CPThemeStateEditing]],