From fcd4d525115fd8554d7e837b8382e16009cd7071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Sch=C3=A4ttgen?= Date: Wed, 18 Sep 2024 22:02:12 +0200 Subject: [PATCH] Fix progress bar colors when using dynamic --- .../java/com/beemdevelopment/aegis/helpers/ThemeHelper.java | 3 +++ app/src/main/res/values/themes.xml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app/src/main/java/com/beemdevelopment/aegis/helpers/ThemeHelper.java b/app/src/main/java/com/beemdevelopment/aegis/helpers/ThemeHelper.java index 082e0052f6..0bd1dcfc0e 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/helpers/ThemeHelper.java +++ b/app/src/main/java/com/beemdevelopment/aegis/helpers/ThemeHelper.java @@ -33,7 +33,10 @@ public void setTheme(Map themeMap) { DynamicColorsOptions.Builder optsBuilder = new DynamicColorsOptions.Builder(); if (getConfiguredTheme().equals(Theme.AMOLED)) { optsBuilder.setThemeOverlay(R.style.ThemeOverlay_Aegis_Dynamic_Amoled); + } else if (getConfiguredTheme().equals(Theme.DARK)) { + optsBuilder.setThemeOverlay(R.style.ThemeOverlay_Aegis_Dynamic_Dark); } + DynamicColors.applyToActivityIfAvailable(_activity, optsBuilder.build()); } } diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index f6529d4c81..a1f8fbb053 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -159,9 +159,14 @@ @android:color/white + +