commit fc5195c17b2ed5ada68fb1159db7ea568d960d61 parent 4fb20f3960491e453f6a8563ec04803b16668b03 Author: Bohdan Potuzhnyi <bohdan.potuzhnyi@gmail.com> Date: Thu, 24 Apr 2025 14:18:58 +0200 update of the styles to be nicer in dark mode Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/merchant-terminal/src/main/java/net/taler/merchantpos/history/HistoryItemAdapter.kt b/merchant-terminal/src/main/java/net/taler/merchantpos/history/HistoryItemAdapter.kt @@ -74,7 +74,7 @@ internal class HistoryItemAdapter(private val listener: RefundClickListener) : orderIdView.setTextColor(orderIdColor) } else { orderIdView.text = v.context.getString(R.string.history_unpaid) - orderIdView.setTextColor(getColor(v.context, R.color.red)) + orderIdView.setTextColor(getColor(v.context, R.color.colorError)) } if (item.refundable) { refundButton.visibility = View.VISIBLE diff --git a/merchant-terminal/src/main/res/values-night/colors.xml b/merchant-terminal/src/main/res/values-night/colors.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> +<color name="colorError">#CF6679</color> +</resources> diff --git a/merchant-terminal/src/main/res/values/styles.xml b/merchant-terminal/src/main/res/values/styles.xml @@ -3,7 +3,7 @@ <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> - <item name="colorOnPrimary">@android:color/white</item> + <item name="colorOnPrimary">@color/colorOnPrimary</item> <item name="colorPrimaryDark">@color/colorInversePrimary</item> <item name="colorAccent">@color/colorTertiary</item> </style> @@ -11,7 +11,7 @@ <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> - <item name="android:statusBarColor">@android:color/transparent</item> + <item name="android:statusBarColor">@color/colorPrimary</item> </style> <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />