Fixed operation in progress dialog background color transparency

This commit is contained in:
Sylvain Berfini 2024-03-18 15:50:43 +01:00
parent 63138e818c
commit 5da4f748a3
3 changed files with 3 additions and 3 deletions

View file

@ -353,7 +353,7 @@ class DialogUtils {
val d: Drawable = ColorDrawable(
context.getColor(R.color.black)
)
d.alpha = 153 // 60%
d.alpha = 153 // 60% opacity
setBackgroundDrawable(d)
}

View file

@ -12,8 +12,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/color_grey_300"
android:alpha="102"
android:background="@color/dialog_background"
android:visibility="@{visibility ? View.VISIBLE : View.GONE, default=gone}">
<ImageView

View file

@ -3,6 +3,7 @@
<color name="transparent_color">#00000000</color>
<color name="black">#000000</color>
<color name="white">#FFFFFF</color>
<color name="dialog_background">#99000000</color><!-- 60% opacity -->
<color name="orange_main_100">#FFEACB</color>
<color name="orange_main_100_alpha_50">#80FFEACB</color>