Skip to content

Commit

Permalink
fix: Update subtitle and footer color on settings #1872 (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyonto authored Jan 31, 2024
1 parent 51530e7 commit 2a50827
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extension ChartSettingsTableViewController {
override func tableView(_: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footerView = UIView()
let footerLabel = UILabel()
footerLabel.textColor = RuuviColor.textColor.color
footerLabel.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
footerLabel.font = UIFont.Muli(.regular, size: 13)
footerLabel.numberOfLines = 0
footerLabel.text = viewModel.sections[section].note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ extension HeartbeatTableViewController {
override func tableView(_: UITableView, viewForFooterInSection _: Int) -> UIView? {
let footerView = UIView()
let footerLabel = UILabel()
footerLabel.textColor = RuuviColor.textColor.color
footerLabel.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
footerLabel.font = UIFont.Muli(.regular, size: 13)
footerLabel.numberOfLines = 0
footerLabel.text = RuuviLocalization.Settings.BackgroundScanning.Footer.message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class NotificationsSettingsSwitchCell: UITableViewCell {

private lazy var subtitleLabel: UILabel = {
let label = UILabel()
label.textColor = RuuviColor
.dashboardIndicator.color
.withAlphaComponent(0.6)
label.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
label.textAlignment = .left
label.numberOfLines = 0
label.font = UIFont.Muli(.regular, size: 13)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ class NotificationsSettingsTextCell: UITableViewCell {

private lazy var subtitleLabel: UILabel = {
let label = UILabel()
label.textColor = RuuviColor
.dashboardIndicator.color
.withAlphaComponent(0.6)
label.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
label.textAlignment = .left
label.numberOfLines = 0
label.font = UIFont.Muli(.regular, size: 13)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ extension RuuviCloudTableViewController {
override func tableView(_: UITableView, viewForFooterInSection _: Int) -> UIView? {
let footerView = UIView()
let footerLabel = UILabel()
footerLabel.textColor = RuuviColor.textColor.color
footerLabel.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
footerLabel.font = UIFont.Muli(.regular, size: 13)
footerLabel.numberOfLines = 0
footerLabel.text = RuuviLocalization.Settings.Label.CloudMode.description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SelectionTableViewController: UITableViewController {
extension SelectionTableViewController: SelectionViewInput {
func styleViews() {
view.backgroundColor = RuuviColor.primary.color
descriptionTextView.textColor = RuuviColor.textColor.color
descriptionTextView.textColor = RuuviColor.textColor.color.withAlphaComponent(0.6)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RuuviLinkTextView: UITextView {
weak var linkDelegate: RuuviLinkTextViewDelegate?

convenience init(
textColor: UIColor? = RuuviColor.dashboardIndicator.color.withAlphaComponent(0.6),
textColor: UIColor? = RuuviColor.textColor.color.withAlphaComponent(0.6),
linkColor: UIColor? = RuuviColor.textColor.color,
fullTextString: String?,
linkString: String?,
Expand Down

0 comments on commit 2a50827

Please sign in to comment.