Skip to content

Commit

Permalink
Fix color at dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nayushi committed Aug 17, 2023
1 parent 7c880b2 commit d577eaf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xB9",
"green" : "0xB9",
"red" : "0xB9"
}
},
"idiom" : "universal"
}
],
"info" : {
Expand Down
4 changes: 2 additions & 2 deletions VocabularyTrainer/Training/View/TrainingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ final class TrainingView: UIView {
button.addGestureRecognizer(longPressRecognizer)
longPressRecognizer.minimumPressDuration = 0.05
button.layer.cornerRadius = 3
button.backgroundColor = UIColor(named: "grayButton")
button.backgroundColor = .darkGray
button.accessibilityTraits = .button
button.setTitle(Localizable.takeLook.localize(), for: .normal)
button.titleLabel?.font = .preferredFont(forTextStyle: .caption1)
Expand Down Expand Up @@ -371,7 +371,7 @@ final class TrainingView: UIView {
answerTextField.text = solution
} else if gestureRecognizer.state == .ended {
answerTextField.text = nil
takeLookButton.backgroundColor = UIColor(named: "grayButton")
takeLookButton.backgroundColor = .darkGray
}
}

Expand Down

0 comments on commit d577eaf

Please sign in to comment.