Skip to content

Commit

Permalink
-progress bar color change
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-dimagi committed Dec 3, 2024
1 parent 59da77c commit 2a55fd8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions app/res/drawable/progressbar_modern_blue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<corners android:radius="2dp" />
<gradient
android:startColor="@color/progress_bar_bg"
android:endColor="@color/progress_bar_bg"
/>
</shape>
</item>
<item android:id="@android:id/progress">
<scale android:scaleWidth="100%">
<shape>
<corners android:radius="4dp" />
<gradient
android:startColor="@color/start_sync_button"
android:endColor="@color/start_sync_button"
/>
</shape>
</scale>
</item>
</layer-list>
2 changes: 1 addition & 1 deletion app/res/layout-land/update_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<ProgressBar
android:id="@+id/update_progress_bar"
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:progressDrawable="@drawable/progressbar_modern"
android:progressDrawable="@drawable/progressbar_modern_blue"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/content_min_margin"
Expand Down
2 changes: 1 addition & 1 deletion app/res/layout/progress_dialog_determinate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/progress_dialog_message"
android:progressDrawable="@drawable/progressbar_modern"
android:progressDrawable="@drawable/progressbar_modern_blue"
android:indeterminate="false"
android:indeterminateOnly="false"/>

Expand Down
2 changes: 1 addition & 1 deletion app/res/layout/update_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
android:layout_marginLeft="@dimen/content_min_margin"
android:layout_marginRight="@dimen/content_min_margin"
android:gravity="center"
android:progressDrawable="@drawable/progressbar_modern"
android:progressDrawable="@drawable/progressbar_modern_blue"
android:layout_marginStart="@dimen/content_min_margin"
android:layout_marginEnd="@dimen/content_min_margin" />

Expand Down

0 comments on commit 2a55fd8

Please sign in to comment.