fix styling , corners and progress now in full material style

This commit is contained in:
osodebailar 2022-04-03 16:29:36 +02:00
parent d3d28605d8
commit 14b663a7fa
3 changed files with 7 additions and 3 deletions

View file

@ -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
}

View file

@ -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>

View file

@ -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"