Skip to content
Snippets Groups Projects
Commit 49db701e authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Fixed some UI for dark mode

parent c4965691
No related branches found
No related tags found
2 merge requests!54Releasing 1.1.4,!50Search UI 2.0
......@@ -220,6 +220,7 @@ let package = Package(
name: "SFTPFeature",
dependencies: [
"HUD",
"Models",
"Shared",
"Keychain",
"InputField",
......
......@@ -115,7 +115,8 @@ final class SearchLeftController: UIViewController {
.receive(on: DispatchQueue.main)
.sink { [unowned self] isEditing in
UIView.animate(withDuration: 0.25) {
self.screenView.placeholderView.alpha = isEditing ? 0.1 : 1.0
self.screenView.placeholderView.titleLabel.alpha = isEditing ? 0.1 : 1.0
self.screenView.placeholderView.subtitleWithInfo.alpha = isEditing ? 0.1 : 1.0
}
}.store(in: &cancellables)
......
......@@ -6,6 +6,7 @@ final class SearchLeftEmptyView: UIView {
init() {
super.init(frame: .zero)
backgroundColor = Asset.neutralWhite.color
titleLabel.numberOfLines = 0
titleLabel.textAlignment = .center
......
......@@ -14,6 +14,7 @@ final class SearchLeftPlaceholderView: UIView {
init() {
super.init(frame: .zero)
backgroundColor = Asset.neutralWhite.color
let attrString = NSMutableAttributedString(
string: Localized.Ud.Search.Placeholder.title,
......@@ -59,14 +60,14 @@ final class SearchLeftPlaceholderView: UIView {
private func setupConstraints() {
titleLabel.snp.makeConstraints {
$0.top.equalToSuperview().offset(50)
$0.left.equalToSuperview()
$0.right.equalToSuperview()
$0.left.equalToSuperview().offset(32.5)
$0.right.equalToSuperview().offset(-32.5)
}
subtitleWithInfo.snp.makeConstraints {
$0.top.equalTo(titleLabel.snp.bottom).offset(30)
$0.left.equalToSuperview()
$0.right.equalToSuperview()
$0.left.equalToSuperview().offset(32.5)
$0.right.equalToSuperview().offset(-32.5)
$0.bottom.equalToSuperview()
}
}
......
......@@ -9,7 +9,10 @@ final class SearchLeftView: UIView {
init() {
super.init(frame: .zero)
emptyView.isHidden = true
backgroundColor = Asset.neutralWhite.color
tableView.backgroundColor = Asset.neutralWhite.color
addSubview(tableView)
addSubview(inputField)
......@@ -52,8 +55,8 @@ final class SearchLeftView: UIView {
placeholderView.snp.makeConstraints {
$0.top.equalTo(inputField.snp.bottom)
$0.left.equalToSuperview().offset(32.5)
$0.right.equalToSuperview().offset(-32.5)
$0.left.equalToSuperview()
$0.right.equalToSuperview()
$0.bottom.equalToSuperview()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment