Skip to content

Commit 25fb9d6

Browse files
committed
add passive button style
1 parent e0f92c8 commit 25fb9d6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.60.1]
5+
6+
### Added
7+
- Added customizable Snabble.Widget.MaterialComponents.Button.Passive style
8+
49
## [0.60.0]
510

611
### Fixed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.60.0'
34+
sdkVersion='0.60.1'
3535
versionCode=1
3636

3737
compileSdkVersion=31

ui/src/main/res/layout/snabble_view_checkout_bar.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
</LinearLayout>
114114

115115
<com.google.android.material.button.MaterialButton
116-
style="@style/Snabble.Widget.MaterialComponents.Button"
116+
style="@style/Snabble.Widget.MaterialComponents.Button.Passive"
117117
android:id="@+id/payment_selector_button_big"
118118
android:layout_width="match_parent"
119119
android:layout_height="48dp"
@@ -128,8 +128,6 @@
128128
app:autoSizeTextType="uniform"
129129
app:autoSizeMinTextSize="8sp"
130130
app:autoSizeMaxTextSize="16sp"
131-
android:backgroundTint="?attr/colorSurface"
132-
android:textColor="?attr/colorOnSurface"
133131
android:maxLines="1"
134132
android:text="@string/Snabble.Shoppingcart.buyProducts.selectPaymentMethod" />
135133
</merge>

ui/src/main/res/values/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
</style>
1111

1212
<style name="Snabble.Widget.MaterialComponents.Button" parent="Widget.Material3.Button" />
13+
<style name="Snabble.Widget.MaterialComponents.Button.Passive" parent="Snabble.Widget.MaterialComponents.Button">
14+
<item name="backgroundTint">?attr/colorSurface</item>
15+
<item name="android:textColor">?attr/colorOnSurface</item>
16+
</style>
1317
<style name="Snabble.Widget.MaterialComponents.Button.TextButton" parent="Widget.Material3.Button.TextButton" />
1418
<style name="Snabble.Widget.MaterialComponents.Button.Icon" parent="Widget.Material3.Button.Icon" />
1519
<style name="Snabble.Widget.MaterialComponents.Button.OutlinedButton" parent="Widget.Material3.Button.OutlinedButton" />

0 commit comments

Comments
 (0)