Skip to content

Commit

Permalink
Change colors (#410)
Browse files Browse the repository at this point in the history
* Change colors

* Update colors

* Change background color

* Fix tests

* sync

* Rerecord snapshots

---------

Co-authored-by: Milad Ajilianabbasi <[email protected]>
Co-authored-by: Nina Røsdal Graneggen <[email protected]>
  • Loading branch information
3 people authored Aug 7, 2024
1 parent f318b2c commit 8e3f758
Show file tree
Hide file tree
Showing 25 changed files with 5 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class RootFilterViewController: FilterViewController {
let action = #selector(handleResetButtonTap)
let button = UIBarButtonItem(title: "reset".localized(), style: .plain, target: self, action: action)
let font = UIFont.bodyStrong
let textColor = UIColor.text
let textColor = UIColor.textLink
button.setTitleTextAttributes([.font: font, .foregroundColor: textColor])
button.setTitleTextAttributes([.font: font, .foregroundColor: textColor.withAlphaComponent(0.3)], for: .disabled)
return button
Expand Down
3 changes: 2 additions & 1 deletion Sources/Charcoal/Selection/Views/SelectionTagViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ final class SelectionTagViewCell: UICollectionViewCell {
let button = RemoveButton(withAutoLayout: true)
button.adjustsImageWhenHighlighted = false
button.imageEdgeInsets = SelectionTagViewCell.removeButtonEdgeInsets
button.setImage(UIImage(named: .removeFilterValue), for: .normal)
button.tintColor = .iconInverted
button.setImage(UIImage(named: .removeFilterValue).withRenderingMode(.alwaysTemplate), for: .normal)
button.addTarget(self, action: #selector(handleRemoveButtonTap), for: .touchUpInside)
return button
}()
Expand Down
3 changes: 2 additions & 1 deletion Sources/Charcoal/Theme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

import FinniversKit
import UIKit
import Warp

public class Theme {
/// The background used for charcoal will be different in dark mode than the standard FinniversKit as charcoal
/// components are presented on top of other elements, then in order to achieve more contrast and a sense of levels
/// we need to override the value for the main background color for dark mode.
public static var mainBackground: UIColor = .background
public static var mainBackground: UIColor = Warp.UIToken.surfaceElevated100
}

0 comments on commit 8e3f758

Please sign in to comment.