Skip to content

Commit

Permalink
update nsfw icon name
Browse files Browse the repository at this point in the history
  • Loading branch information
level3tjg committed Jun 19, 2024
1 parent ca7912a commit 1eba9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions FeedFilterSettingsViewController.x
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern Class CoreClass(NSString *name);
break;
case 3:
mainLabelText = LOC(@"filter.settings.nsfw.title", @"NSFW");
iconNames = @[ @"icon_nsfw" ];
iconNames = @[ @"icon_nsfw_outline", @"icon_nsfw" ];
toggleCell.accessorySwitch.on =
![NSUserDefaults.standardUserDefaults boolForKey:kRedditFilterNSFW];
[toggleCell.accessorySwitch addTarget:self
Expand Down Expand Up @@ -177,8 +177,7 @@ extern Class CoreClass(NSString *name);
withThemePropertyGetter:@selector(canvasColor)];
switch (section) {
case 0:
label.text =
LOC(@"filter.settings.footer", @"Filter specific types of posts from your feed");
label.text = LOC(@"filter.settings.footer", @"Filter specific types of posts from your feed");
break;
default:
return nil;
Expand Down
3 changes: 1 addition & 2 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ extern "C" UIImage *iconWithName(NSString *iconName) {
iconImage = [UIImage imageNamed:[NSString stringWithFormat:@"%@_%@", iconName, iconSize]
inBundle:bundle];
}
if (!iconImage)
iconImage = [UIImage imageNamed:iconName inBundle:bundle];
if (!iconImage) iconImage = [UIImage imageNamed:iconName inBundle:bundle];
}
return iconImage;
}
Expand Down

0 comments on commit 1eba9a2

Please sign in to comment.