From 6d6e1945bb24e1f97cd101804f0a21a5ad6636e5 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sun, 5 Jan 2025 16:14:18 +0100 Subject: [PATCH] chore: Use a defined default color for categories --- app/src/main/res/layout/activity_create_category.xml | 2 +- app/src/main/res/layout/item_category.xml | 2 +- app/src/main/res/layout/item_category_chip.xml | 2 +- app/src/main/res/values/colors.xml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/activity_create_category.xml b/app/src/main/res/layout/activity_create_category.xml index fa594e7..614becc 100644 --- a/app/src/main/res/layout/activity_create_category.xml +++ b/app/src/main/res/layout/activity_create_category.xml @@ -46,7 +46,7 @@ android:layout_marginTop="16dp" android:text="@string/select_color" app:icon="@drawable/ic_circle" - app:iconTint="@android:color/holo_blue_dark" + app:iconTint="@color/category_indicator_color" app:cornerRadius="8dp" style="@style/Widget.MaterialComponents.Button.OutlinedButton" /> diff --git a/app/src/main/res/layout/item_category.xml b/app/src/main/res/layout/item_category.xml index 914a9f5..74896ae 100644 --- a/app/src/main/res/layout/item_category.xml +++ b/app/src/main/res/layout/item_category.xml @@ -20,7 +20,7 @@ android:id="@+id/colorIndicator" android:layout_width="8dp" android:layout_height="0dp" - android:background="@android:color/holo_blue_dark" + android:background="@color/category_indicator_color" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" /> diff --git a/app/src/main/res/layout/item_category_chip.xml b/app/src/main/res/layout/item_category_chip.xml index 76749fd..f59477a 100644 --- a/app/src/main/res/layout/item_category_chip.xml +++ b/app/src/main/res/layout/item_category_chip.xml @@ -17,6 +17,6 @@ app:chipIconTint="?android:attr/textColorSecondary" app:chipBackgroundColor="@android:color/transparent" app:chipSurfaceColor="@android:color/transparent" - app:chipStrokeColor="@android:color/holo_blue_dark" + app:chipStrokeColor="@color/category_indicator_color" app:closeIconEnabled="false" tools:text="Work" /> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 751b51f..fb7b85c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,5 +7,6 @@ #121212 #0035D0 + #0035D0 #bb6633 \ No newline at end of file