equal
deleted
inserted
replaced
281 |
281 |
282 UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier]; |
282 UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier]; |
283 if (cell == nil) |
283 if (cell == nil) |
284 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; |
284 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; |
285 |
285 |
|
286 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { |
|
287 cell.textLabel.textColor = [UIColor yellowColor]; //TODO: find proper color |
|
288 } |
|
289 |
286 if (self.segmentedControl.selectedSegmentIndex != 1) { |
290 if (self.segmentedControl.selectedSegmentIndex != 1) { |
287 // the % prevents a strange bug that occurs sporadically |
291 // the % prevents a strange bug that occurs sporadically |
288 NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]]; |
292 NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]]; |
289 cell.textLabel.text = themeName; |
293 cell.textLabel.text = themeName; |
290 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName]]; |
294 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName]]; |