From 1638876f49f8ca065298aac934f28119dfa60bed Mon Sep 17 00:00:00 2001 From: soraefir Date: Fri, 9 Feb 2024 12:26:25 +0100 Subject: [PATCH] [m] Fix colors --- app/src/main/java/net/helcel/beendroid/svg/PSVGWrapper.kt | 4 ++-- app/src/main/res/drawable-v24/ic_launcher_foreground.xml | 2 +- app/src/main/res/drawable/about.xml | 4 ++-- app/src/main/res/drawable/chevron.xml | 2 +- app/src/main/res/drawable/ic_launcher_background.xml | 2 +- app/src/main/res/values/themes.xml | 1 + 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/net/helcel/beendroid/svg/PSVGWrapper.kt b/app/src/main/java/net/helcel/beendroid/svg/PSVGWrapper.kt index 6ddb8b2..655fc02 100644 --- a/app/src/main/java/net/helcel/beendroid/svg/PSVGWrapper.kt +++ b/app/src/main/java/net/helcel/beendroid/svg/PSVGWrapper.kt @@ -15,8 +15,8 @@ class PSVGWrapper(ctx: Context) { private val cm = HashMap() private var fm = "" - private val colorForeground: String = colorWrapper(ctx, R.color.darkgray).color.toHexString().substring(2) - private val colorBackground: String = colorWrapper(ctx, R.color.black).color.toHexString().substring(2) + private val colorForeground: String = colorWrapper(ctx, android.R.attr.panelColorBackground).color.toHexString().substring(2) + private val colorBackground: String = colorWrapper(ctx, android.R.attr.colorBackground).color.toHexString().substring(2) init { Country.entries.forEach { diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml index 756360c..8949830 100644 --- a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -6,7 +6,7 @@ android:viewportHeight="1600" > diff --git a/app/src/main/res/drawable/chevron.xml b/app/src/main/res/drawable/chevron.xml index 488b005..6d21775 100644 --- a/app/src/main/res/drawable/chevron.xml +++ b/app/src/main/res/drawable/chevron.xml @@ -4,6 +4,6 @@ android:viewportWidth="320" android:viewportHeight="512"> diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml index 7f86e93..b4d8b97 100644 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -5,6 +5,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 4f86374..5cf973c 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,6 +1,7 @@