Skip to content

Commit

Permalink
Merge pull request #791 from splendo/feature/minor-resources-fixes
Browse files Browse the repository at this point in the history
Fixed bug in tint for Disabled Image Button & SwiftUI styled strings fix
  • Loading branch information
Daeda88 authored Jul 26, 2024
2 parents a548049 + 4f0ca72 commit d1dc80c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/ios/Demo/Resources/LabelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ struct LabelView: View {
ScrollView {
VStack(spacing: 10.0) {
ForEach(labels.value, id: \.self) { label in
label.toText().frame(maxWidth: .infinity)
label.toText().frame(maxWidth: .infinity, alignment: .leading)
}
}
}.padding(8)
}.navigationTitle("feature_resources_button".localized())
}
}
Expand Down
4 changes: 2 additions & 2 deletions resources/src/commonMain/kotlin/stylable/KalugaButtonStyle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ sealed interface KalugaButtonStyleDSL<StateStyle : ButtonStateStyle, StateStyleD
fun setImage(image: TintedImage, pressedTint: KalugaColor = image.tint, disabledTint: KalugaColor = image.tint) {
defaultStyle { setImage(image) }
pressedStyle { setImage(image.image, pressedTint) }
disabledStyle { setImage(image.image, pressedTint) }
disabledStyle { setImage(image.image, disabledTint) }
}

/**
Expand All @@ -568,7 +568,7 @@ sealed interface KalugaButtonStyleDSL<StateStyle : ButtonStateStyle, StateStyleD
fun setImage(image: KalugaImage, defaultTint: KalugaColor, pressedTint: KalugaColor = defaultTint, disabledTint: KalugaColor = defaultTint) {
defaultStyle { setImage(image, defaultTint) }
pressedStyle { setImage(image, pressedTint) }
disabledStyle { setImage(image, pressedTint) }
disabledStyle { setImage(image, disabledTint) }
}
}

Expand Down

0 comments on commit d1dc80c

Please sign in to comment.