Merge pull request #1543 from osodebailar/features/material_progressbar_and_stylefix
fix styling , corners of progressbar and progress now in full material style
This commit is contained in:
commit
77151766cd
3 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
package info.nightscout.androidaps.dialogs
|
||||
|
||||
import android.content.res.Resources
|
||||
import android.os.Bundle
|
||||
import android.os.SystemClock
|
||||
import android.view.LayoutInflater
|
||||
|
@ -83,6 +84,9 @@ class BolusProgressDialog : DaggerDialogFragment() {
|
|||
isCancelable = false
|
||||
dialog?.setCanceledOnTouchOutside(false)
|
||||
|
||||
val theme: Resources.Theme? = context?.theme
|
||||
theme?.applyStyle(R.style.AppTheme, true)
|
||||
|
||||
_binding = DialogBolusprogressBinding.inflate(inflater, container, false)
|
||||
return binding.root
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="48dp"
|
||||
android:height="48dp"
|
||||
android:tint="#FFFFFF"
|
||||
android:tint="?attr/defaultTextColor"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="?attr/colorControlNormal"
|
||||
android:fillColor="?attr/defaultTextColor"
|
||||
android:pathData="M22,12l-4,-4v3H3v2h15v3z" />
|
||||
</vector>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
style="@android:style/Widget.Material.ProgressBar.Horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
|
|
Loading…
Reference in a new issue