Skip to content

Commit

Permalink
Revert some fonts that were changed in #6275
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Jul 8, 2022
1 parent 611d1a1 commit a155fab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#import "GeneratedInterface-Swift.h"

@import DesignKit;

enum
{
Expand Down Expand Up @@ -493,7 +494,7 @@ - (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view
// Customize label style
UITableViewHeaderFooterView *tableViewHeaderFooterView = (UITableViewHeaderFooterView*)view;
tableViewHeaderFooterView.textLabel.textColor = ThemeService.shared.theme.colors.secondaryContent;
tableViewHeaderFooterView.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
tableViewHeaderFooterView.textLabel.font = ThemeService.shared.theme.fonts.footnote;
}
}

Expand Down
4 changes: 3 additions & 1 deletion Riot/Modules/Settings/Security/SecurityViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#import "GeneratedInterface-Swift.h"

@import DesignKit;

// Dev flag to have more options
//#define CROSS_SIGNING_AND_BACKUP_DEV

Expand Down Expand Up @@ -1297,7 +1299,7 @@ - (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view
// Customize label style
UITableViewHeaderFooterView *tableViewHeaderFooterView = (UITableViewHeaderFooterView*)view;
tableViewHeaderFooterView.textLabel.textColor = ThemeService.shared.theme.colors.secondaryContent;
tableViewHeaderFooterView.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
tableViewHeaderFooterView.textLabel.font = ThemeService.shared.theme.fonts.footnote;
}
}

Expand Down
4 changes: 3 additions & 1 deletion Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

#import "GeneratedInterface-Swift.h"

@import DesignKit;

NSString* const kSettingsViewControllerPhoneBookCountryCellId = @"kSettingsViewControllerPhoneBookCountryCellId";

typedef NS_ENUM(NSUInteger, SECTION_TAG)
Expand Down Expand Up @@ -2634,7 +2636,7 @@ - (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view
// Customize label style
UITableViewHeaderFooterView *tableViewHeaderFooterView = (UITableViewHeaderFooterView*)view;
tableViewHeaderFooterView.textLabel.textColor = ThemeService.shared.theme.colors.secondaryContent;
tableViewHeaderFooterView.textLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
tableViewHeaderFooterView.textLabel.font = ThemeService.shared.theme.fonts.footnote;
}
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/6392.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Revert some font changes made when merging #6392.

0 comments on commit a155fab

Please sign in to comment.