Skip to content

Commit 19e5fb3

Browse files
authored
Adjust the theme to fix some dark mode issues (#193)
1 parent 3fb5661 commit 19e5fb3

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

ui/src/main/res/drawable/snabble_ic_plus.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
android:layout_height="wrap_content"
9292
android:layout_marginEnd="8dp">
9393

94-
<ImageView
94+
<androidx.appcompat.widget.AppCompatImageView
9595
android:layout_width="wrap_content"
9696
android:layout_height="wrap_content"
9797
android:layout_gravity="center"
9898
android:importantForAccessibility="no"
99-
android:src="@drawable/snabble_ic_minus"
99+
android:src="@drawable/snabble_ic_minus_content"
100100
app:tint="?attr/colorOnSurface" />
101101

102102
<com.google.android.material.button.MaterialButton
@@ -145,12 +145,12 @@
145145
android:layout_height="wrap_content"
146146
android:layout_marginStart="8dp">
147147

148-
<ImageView
148+
<androidx.appcompat.widget.AppCompatImageView
149149
android:layout_width="wrap_content"
150150
android:layout_height="wrap_content"
151151
android:layout_gravity="center"
152152
android:importantForAccessibility="no"
153-
android:src="@drawable/snabble_ic_plus"
153+
android:src="@drawable/snabble_ic_plus_content"
154154
app:tint="?attr/colorOnSurface" />
155155

156156
<com.google.android.material.button.MaterialButton

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
tools:src="@drawable/snabble_ic_payment_select_sepa"
8080
android:importantForAccessibility="no" />
8181

82-
<ImageView
82+
<androidx.appcompat.widget.AppCompatImageView
8383
android:id="@+id/payment_chevron"
8484
android:layout_width="7dp"
8585
android:layout_height="7dp"
@@ -129,4 +129,4 @@
129129
android:layout_marginTop="12dp"
130130
android:layout_marginBottom="12dp"
131131
android:text="@string/Snabble.Shoppingcart.BuyProducts.selectPaymentMethod" />
132-
</merge>
132+
</merge>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@
9090
</style>
9191

9292
<style name="Widget.App.SnackbarText" parent="Widget.MaterialComponents.Snackbar.TextView">
93-
<item name="android:textColor">?attr/colorOnSurface</item>
93+
<item name="android:textColor">?attr/colorOnSecondaryContainer</item>
9494
</style>
9595

9696
<style name="ThemeOverlay.App.Snackbar" parent="">
97-
<item name="colorOnSurface">?attr/colorSurface</item>
97+
<item name="colorOnSurface">?attr/colorSecondaryContainer</item>
9898
</style>
9999

100100
</resources>

0 commit comments

Comments
 (0)