feat: Blur toggle

This commit is contained in:
aayush262 2024-03-12 20:43:20 +05:30
parent 07662a91f4
commit 8fb6357fb5
7 changed files with 128 additions and 30 deletions

View file

@ -264,6 +264,96 @@
app:trackColorActive="?attr/colorSecondary"
tools:ignore="SpeakableTextPresentCheck" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:fontFamily="@font/poppins_bold"
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:text="@string/blur"
android:textColor="?attr/colorSecondary"
tools:ignore="TextContrastCheck" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/uiSettingsBlurBanners"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:drawableStart="@drawable/ic_round_photo_size_select_actual_24"
android:drawablePadding="16dp"
android:elegantTextHeight="true"
android:fontFamily="@font/poppins_bold"
android:minHeight="64dp"
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:text="@string/blur_banners"
android:textAlignment="viewStart"
android:textColor="?attr/colorOnBackground"
app:cornerRadius="0dp"
app:drawableTint="?attr/colorPrimary"
app:showText="false"
app:thumbTint="@color/button_switch_track">
</com.google.android.material.materialswitch.MaterialSwitch>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:drawablePadding="16dp"
android:fontFamily="@font/poppins_bold"
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:text="@string/radius"
app:drawableStartCompat="@drawable/ic_internet"
app:drawableTint="?attr/colorPrimary" />
<com.google.android.material.slider.Slider
android:id="@+id/uiSettingsBlurRadius"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:stepSize="1"
android:value="2"
android:valueFrom="1.0"
android:valueTo="10.0"
app:labelBehavior="floating"
app:labelStyle="@style/fontTooltip"
app:thumbColor="?attr/colorSecondary"
app:tickColorInactive="?attr/colorSecondary"
app:trackColorActive="?attr/colorSecondary"
tools:ignore="SpeakableTextPresentCheck" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:drawablePadding="16dp"
android:fontFamily="@font/poppins_bold"
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:text="@string/sampling"
app:drawableStartCompat="@drawable/ic_globe_24"
app:drawableTint="?attr/colorPrimary" />
<com.google.android.material.slider.Slider
android:id="@+id/uiSettingsBlurSampling"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:stepSize="1"
android:value="2"
android:valueFrom="1.0"
android:valueTo="10.0"
app:labelBehavior="floating"
app:labelStyle="@style/fontTooltip"
app:thumbColor="?attr/colorSecondary"
app:tickColorInactive="?attr/colorSecondary"
app:trackColorActive="?attr/colorSecondary"
tools:ignore="SpeakableTextPresentCheck" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>