Skip to content

Commit

Permalink
fix(user): icon on dark mode 馃悰
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Oct 12, 2020
1 parent 465ed3b commit 431d207
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions waosSwift/modules/user/controllers/UserController.swift
Expand Up @@ -46,11 +46,11 @@ class UserController: CoreFormController, View {
// buttons App
let buttonSite = ButtonRow {
$0.title = L10n.userSite
$0.setFontAwesomeIcon("fa-external-link-alt", color: Metric.primary ?? .lightGray)
$0.setFontAwesomeIcon("fa-external-link-alt", color: Metric.secondary ?? .lightGray, opacity: 1)
}
let buttonBlog = ButtonRow {
$0.title = L10n.userBlog
$0.setFontAwesomeIcon("fa-rss", color: Metric.primary ?? .lightGray)
$0.setFontAwesomeIcon("fa-rss", color: Metric.secondary ?? .lightGray, opacity: 1)
}
let buttonUs = ButtonRow {
$0.title = L10n.userUs
Expand All @@ -64,19 +64,19 @@ class UserController: CoreFormController, View {
// buttons social Networks
let buttonInstagram = ButtonRow {
$0.title = "Instagram"
$0.setFontAwesomeIcon("fa-instagram", style: .brands, color: Metric.instagram ?? .lightGray)
$0.setFontAwesomeIcon("fa-instagram", style: .brands, color: Metric.instagram ?? .lightGray, opacity: 1)
}
let buttonTwitter = ButtonRow {
$0.title = "Twitter"
$0.setFontAwesomeIcon("fa-twitter", style: .brands, color: Metric.twitter ?? .lightGray)
$0.setFontAwesomeIcon("fa-twitter", style: .brands, color: Metric.twitter ?? .lightGray, opacity: 1)
}
let buttonLinkedin = ButtonRow {
$0.title = "Linkedin"
$0.setFontAwesomeIcon("fa-linkedin", style: .brands, color: Metric.linkedin ?? .lightGray)
$0.setFontAwesomeIcon("fa-linkedin", style: .brands, color: Metric.linkedin ?? .lightGray, opacity: 1)
}
let buttonFacebook = ButtonRow {
$0.title = "Facebook"
$0.setFontAwesomeIcon("fa-facebook", style: .brands, color: Metric.facebook ?? .lightGray)
$0.setFontAwesomeIcon("fa-facebook", style: .brands, color: Metric.facebook ?? .lightGray, opacity: 1)
}

// buttons Actions
Expand All @@ -98,7 +98,7 @@ class UserController: CoreFormController, View {
}
let buttonDelete = ButtonRow {
$0.title = L10n.userDelete
$0.setFontAwesomeIcon("fa-trash-alt", color: Metric.error ?? .red)
$0.setFontAwesomeIcon("fa-trash-alt", color: Metric.error ?? .red, opacity: 1)
}

// MARK: Initializing
Expand Down
6 changes: 3 additions & 3 deletions waosSwift/modules/user/controllers/UserViewController.swift
Expand Up @@ -72,15 +72,15 @@ class UserViewController: CoreFormController, View, NVActivityIndicatorViewable
// social networks
let inputInstagram = TextRow {
$0.placeholder = L10n.userEditSocialnetworksInstagram
$0.setFontAwesomeIcon("fa-instagram", style: .brands)
$0.setFontAwesomeIcon("fa-instagram", style: .brands, color: Metric.instagram ?? .lightGray, opacity: 1)
}
let inputTwitter = TextRow {
$0.placeholder = L10n.userEditSocialnetworksTwitter
$0.setFontAwesomeIcon("fa-twitter", style: .brands)
$0.setFontAwesomeIcon("fa-twitter", style: .brands, color: Metric.twitter ?? .lightGray, opacity: 1)
}
let inputFacebook = TextRow {
$0.placeholder = L10n.userEditSocialnetworksFacebook
$0.setFontAwesomeIcon("fa-facebook", style: .brands)
$0.setFontAwesomeIcon("fa-facebook", style: .brands, color: Metric.facebook ?? .lightGray, opacity: 1)
}
let labelErrorsSocialNetworks = CoreUILabel().then {
$0.textAlignment = .left
Expand Down

0 comments on commit 431d207

Please sign in to comment.