Skip to content

Commit

Permalink
fix night theme for OAPointOptionsBottomSheetViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrim committed Jan 4, 2024
1 parent 680e7ee commit f34c017
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "OARoadSegmentData.h"
#import "OAMapUtils.h"
#import "OAOsmAndFormatter.h"
#import "OsmAnd_Maps-Swift.h"

@interface OAPointOptionsBottomSheetViewController () <UITableViewDelegate, UITableViewDataSource>

Expand Down Expand Up @@ -340,8 +341,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
else
{
BOOL isActiveCell = [self isActiveCell:indexPath];
cell.iconColorNormal = isActiveCell ? UIColorFromRGB(color_chart_orange) : UIColorFromRGB(color_tint_gray);
cell.textColorNormal = isActiveCell ? [UIColor blackColor] : [UIColor lightGrayColor];
cell.iconColorNormal = isActiveCell ? UIColor.iconColorActive : UIColor.iconColorDisabled;
cell.textColorNormal = isActiveCell ? UIColor.textColorPrimary : UIColor.textColorSecondary;
cell.iconView.image = [UIImage templateImageNamed:item[@"img"]];
cell.separatorView.hidden = indexPath.row == (NSInteger) _data[indexPath.section].count - 1;
}
Expand Down Expand Up @@ -374,8 +375,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
else
{
BOOL isActiveCell = [self isActiveCell:indexPath];
cell.iconColorNormal = isActiveCell ? UIColorFromRGB(color_chart_orange) : UIColorFromRGB(color_tint_gray);
cell.textColorNormal = isActiveCell ? [UIColor blackColor] : [UIColor lightGrayColor];
cell.iconColorNormal = isActiveCell ? UIColor.iconColorActive : UIColor.iconColorDisabled;
cell.textColorNormal = isActiveCell ? UIColor.textColorPrimary : UIColor.textColorSecondary;
cell.iconView.image = [UIImage templateImageNamed:item[@"img"]];
cell.separatorView.hidden = indexPath.row == (NSInteger) _data[indexPath.section].count - 1;
}
Expand Down

0 comments on commit f34c017

Please sign in to comment.