diff options
author | recalculated <recalculated@users.noreply.github.com> | 2016-01-08 17:42:05 -0600 |
---|---|---|
committer | recalculated <recalculated@users.noreply.github.com> | 2016-01-08 17:42:05 -0600 |
commit | 30e963fc3e4f1f49369e79ae131143c835d1a3fd (patch) | |
tree | 2b29e47a435262b70eacb618b1c58e2d9f9bc98a /core/src/main/res/values | |
parent | 0d54bd18a74839a6b6c6ba47524903629bb4ffb4 (diff) | |
download | AntennaPod-30e963fc3e4f1f49369e79ae131143c835d1a3fd.zip |
Make progress bar theme-specific
Diffstat (limited to 'core/src/main/res/values')
-rw-r--r-- | core/src/main/res/values/attrs.xml | 1 | ||||
-rw-r--r-- | core/src/main/res/values/styles.xml | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index de641f518..4e444c990 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -41,6 +41,7 @@ <attr name="ic_lock_open" format="reference"/> <attr name="ic_lock_closed" format="reference"/> <attr name="ic_filter" format="reference"/> + <attr name="progressBarTheme" format="reference"/> <!-- Used in itemdescription --> <attr name="non_transparent_background" format="reference"/> diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index b006f31b9..1f73fbba2 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -4,6 +4,7 @@ <style name="Theme.AntennaPod.Light" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/primary_light</item> <item name="colorAccent">@color/holo_blue_light</item> + <item name="progressBarTheme">@style/ProgressBarLight</item> <item name="buttonStyle">@style/Widget.AntennaPod.Button</item> <item name="alertDialogTheme">@style/AntennaPod.Dialog.Light</item> <item name="attr/action_bar_icon_color">@color/grey600</item> @@ -53,6 +54,7 @@ <style name="Theme.AntennaPod.Dark" parent="Theme.AppCompat"> <item name="colorAccent">@color/holo_blue_dark</item> <item name="buttonStyle">@style/Widget.AntennaPod.Button</item> + <item name="progressBarTheme">@style/ProgressBarDark</item> <item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item> <item name="attr/action_bar_icon_color">@color/white</item> <item name="attr/action_about">@drawable/ic_info_white_24dp</item>g @@ -101,6 +103,7 @@ <style name="Theme.AntennaPod.Light.NoTitle" parent="Theme.AppCompat.Light.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowActionModeOverlay">true</item> + <item name="progressBarTheme">@style/ProgressBarLight</item> <item name="colorPrimary">@color/primary_light</item> <item name="colorAccent">@color/holo_blue_light</item> <item name="buttonStyle">@style/Widget.AntennaPod.Button</item> @@ -151,6 +154,7 @@ <style name="Theme.AntennaPod.Dark.NoTitle" parent="Theme.AppCompat.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowActionModeOverlay">true</item> + <item name="progressBarTheme">@style/ProgressBarDark</item> <item name="colorAccent">@color/holo_blue_dark</item> <item name="buttonStyle">@style/Widget.AntennaPod.Button</item> <item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item> @@ -253,9 +257,14 @@ </style> - <style name="ProgressBarStyle"> + <style name="ProgressBarLight"> <item name="android:indeterminateOnly">false</item> - <item name="android:progressDrawable">@drawable/progress_bar_horizontal</item> + <item name="android:progressDrawable">@drawable/progress_bar_horizontal_light</item> + </style> + + <style name="ProgressBarDark"> + <item name="android:indeterminateOnly">false</item> + <item name="android:progressDrawable">@drawable/progress_bar_horizontal_dark</item> </style> </resources> |