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( ...@@ -220,6 +220,7 @@ let package = Package(
name: "SFTPFeature", name: "SFTPFeature",
dependencies: [ dependencies: [
"HUD", "HUD",
"Models",
"Shared", "Shared",
"Keychain", "Keychain",
"InputField", "InputField",
......
...@@ -115,7 +115,8 @@ final class SearchLeftController: UIViewController { ...@@ -115,7 +115,8 @@ final class SearchLeftController: UIViewController {
.receive(on: DispatchQueue.main) .receive(on: DispatchQueue.main)
.sink { [unowned self] isEditing in .sink { [unowned self] isEditing in
UIView.animate(withDuration: 0.25) { 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) }.store(in: &cancellables)
......
...@@ -6,6 +6,7 @@ final class SearchLeftEmptyView: UIView { ...@@ -6,6 +6,7 @@ final class SearchLeftEmptyView: UIView {
init() { init() {
super.init(frame: .zero) super.init(frame: .zero)
backgroundColor = Asset.neutralWhite.color
titleLabel.numberOfLines = 0 titleLabel.numberOfLines = 0
titleLabel.textAlignment = .center titleLabel.textAlignment = .center
......
...@@ -14,6 +14,7 @@ final class SearchLeftPlaceholderView: UIView { ...@@ -14,6 +14,7 @@ final class SearchLeftPlaceholderView: UIView {
init() { init() {
super.init(frame: .zero) super.init(frame: .zero)
backgroundColor = Asset.neutralWhite.color
let attrString = NSMutableAttributedString( let attrString = NSMutableAttributedString(
string: Localized.Ud.Search.Placeholder.title, string: Localized.Ud.Search.Placeholder.title,
...@@ -59,14 +60,14 @@ final class SearchLeftPlaceholderView: UIView { ...@@ -59,14 +60,14 @@ final class SearchLeftPlaceholderView: UIView {
private func setupConstraints() { private func setupConstraints() {
titleLabel.snp.makeConstraints { titleLabel.snp.makeConstraints {
$0.top.equalToSuperview().offset(50) $0.top.equalToSuperview().offset(50)
$0.left.equalToSuperview() $0.left.equalToSuperview().offset(32.5)
$0.right.equalToSuperview() $0.right.equalToSuperview().offset(-32.5)
} }
subtitleWithInfo.snp.makeConstraints { subtitleWithInfo.snp.makeConstraints {
$0.top.equalTo(titleLabel.snp.bottom).offset(30) $0.top.equalTo(titleLabel.snp.bottom).offset(30)
$0.left.equalToSuperview() $0.left.equalToSuperview().offset(32.5)
$0.right.equalToSuperview() $0.right.equalToSuperview().offset(-32.5)
$0.bottom.equalToSuperview() $0.bottom.equalToSuperview()
} }
} }
......
...@@ -9,7 +9,10 @@ final class SearchLeftView: UIView { ...@@ -9,7 +9,10 @@ final class SearchLeftView: UIView {
init() { init() {
super.init(frame: .zero) super.init(frame: .zero)
emptyView.isHidden = true emptyView.isHidden = true
backgroundColor = Asset.neutralWhite.color
tableView.backgroundColor = Asset.neutralWhite.color
addSubview(tableView) addSubview(tableView)
addSubview(inputField) addSubview(inputField)
...@@ -52,8 +55,8 @@ final class SearchLeftView: UIView { ...@@ -52,8 +55,8 @@ final class SearchLeftView: UIView {
placeholderView.snp.makeConstraints { placeholderView.snp.makeConstraints {
$0.top.equalTo(inputField.snp.bottom) $0.top.equalTo(inputField.snp.bottom)
$0.left.equalToSuperview().offset(32.5) $0.left.equalToSuperview()
$0.right.equalToSuperview().offset(-32.5) $0.right.equalToSuperview()
$0.bottom.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