From 5d9c5ba5cfdf3027169e9a65382e0549b85058ac Mon Sep 17 00:00:00 2001 From: TaiwanStar Developer Date: Fri, 5 Jun 2026 16:18:26 +0800 Subject: [PATCH] =?UTF-8?q?style(ui):=20=E8=AA=BF=E6=95=B4=E8=B2=A8?= =?UTF-8?q?=E9=81=93=E7=AE=A1=E7=90=86=E5=84=B2=E5=AD=98=E8=88=87=E4=B8=80?= =?UTF-8?q?=E9=8D=B5=E8=A3=9C=E8=B2=A8=E6=8C=89=E9=88=95=E9=85=8D=E8=89=B2?= =?UTF-8?q?=EF=BC=8C=E4=B8=A6=E5=B0=87=20Switch=20=E9=81=B8=E4=B8=AD?= =?UTF-8?q?=E7=8B=80=E6=85=8B=E8=A8=AD=E7=82=BA=20primary=20=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/color/switch_thumb_selector.xml | 5 +++++ app/src/main/res/color/switch_track_selector.xml | 5 +++++ app/src/main/res/layout/activity_vmc_slot_list.xml | 6 ++++-- app/src/main/res/layout/recycler_vmc_slot_list.xml | 4 +++- 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/color/switch_thumb_selector.xml create mode 100644 app/src/main/res/color/switch_track_selector.xml diff --git a/app/src/main/res/color/switch_thumb_selector.xml b/app/src/main/res/color/switch_thumb_selector.xml new file mode 100644 index 0000000..a5df410 --- /dev/null +++ b/app/src/main/res/color/switch_thumb_selector.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/color/switch_track_selector.xml b/app/src/main/res/color/switch_track_selector.xml new file mode 100644 index 0000000..b77c341 --- /dev/null +++ b/app/src/main/res/color/switch_track_selector.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/activity_vmc_slot_list.xml b/app/src/main/res/layout/activity_vmc_slot_list.xml index f799589..1d99404 100644 --- a/app/src/main/res/layout/activity_vmc_slot_list.xml +++ b/app/src/main/res/layout/activity_vmc_slot_list.xml @@ -80,7 +80,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginEnd="8dp" - android:backgroundTint="@color/black" + android:backgroundTint="@color/background" + android:textColor="@color/black" android:text="一鍵補貨" android:textSize="24dp" /> @@ -89,7 +90,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:backgroundTint="@color/black" + android:backgroundTint="@color/primary" + android:textColor="@color/onPrimary" android:text="儲存" android:textSize="24dp" /> diff --git a/app/src/main/res/layout/recycler_vmc_slot_list.xml b/app/src/main/res/layout/recycler_vmc_slot_list.xml index e5b6c74..d4635ac 100644 --- a/app/src/main/res/layout/recycler_vmc_slot_list.xml +++ b/app/src/main/res/layout/recycler_vmc_slot_list.xml @@ -54,7 +54,9 @@ android:layout_height="wrap_content" android:scaleX="0.8" android:scaleY="0.8" - app:switchPadding="0dp" /> + app:switchPadding="0dp" + app:thumbTint="@color/switch_thumb_selector" + app:trackTint="@color/switch_track_selector" />