add: font offset item in Appearances preferences

This commit is contained in:
Hamza417
2025-10-30 03:50:25 +05:30
parent 2e7a469a44
commit a6a3cc5a15
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M2.61,19L2.61,19c0.48,0 0.91,-0.3 1.06,-0.75l1.01,-2.83h5.65l0.99,2.82C11.48,18.7 11.91,19 12.39,19c0.79,0 1.33,-0.79 1.05,-1.52L9.19,6.17C8.93,5.47 8.25,5 7.5,5S6.07,5.47 5.81,6.17L1.56,17.48C1.28,18.21 1.83,19 2.61,19zM7.44,7.6h0.12l2.03,5.79H5.41L7.44,7.6zM15,12c0,-0.55 0.45,-1 1,-1h6c0.55,0 1,0.45 1,1s-0.45,1 -1,1h-6C15.45,13 15,12.55 15,12z"
android:fillColor="#000000" />
</vector>

View File

@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M2.61,19L2.61,19c0.48,0 0.91,-0.3 1.06,-0.75l1.01,-2.83h5.65l0.99,2.82C11.48,18.7 11.91,19 12.39,19c0.79,0 1.33,-0.79 1.05,-1.52L9.19,6.17C8.93,5.47 8.25,5 7.5,5S6.07,5.47 5.81,6.17L1.56,17.48C1.28,18.21 1.83,19 2.61,19zM7.44,7.6h0.12l2.03,5.79H5.41L7.44,7.6zM15,12c0,-0.55 0.45,-1 1,-1h2V9c0,-0.55 0.45,-1 1,-1s1,0.45 1,1v2h2c0.55,0 1,0.45 1,1s-0.45,1 -1,1h-2v2c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1v-2h-2C15.45,13 15,12.55 15,12z"
android:fillColor="#000000" />
</vector>

View File

@@ -353,6 +353,51 @@
</app.simple.inure.decorations.ripple.DynamicRippleRelativeLayout>
<app.simple.inure.decorations.ripple.DynamicRippleRelativeLayout
android:id="@+id/appearance_font_offset"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="10dp"
android:padding="15dp">
<app.simple.inure.decorations.theme.ThemeIcon
android:id="@+id/appearance_font_offset_iv"
android:layout_width="@dimen/preference_icon_size"
android:layout_height="@dimen/preference_icon_size"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:src="@drawable/ic_text_decrease"
app:tintType="secondary" />
<app.simple.inure.decorations.typeface.TypeFaceTextView
android:id="@+id/appearance_font_offset_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_toEndOf="@id/appearance_font_offset_iv"
android:drawablePadding="5dp"
android:gravity="center_vertical"
android:text="@string/font_size_offset"
android:textSize="@dimen/preferences_title_text_size"
app:appFontStyle="bold"
app:drawableEndCompat="@drawable/ic_arrow_right_16dp"
app:drawableTintStyle="accent"
app:textColorStyle="primary" />
<app.simple.inure.decorations.typeface.TypeFaceTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/appearance_font_offset_title"
android:layout_marginStart="15dp"
android:layout_marginTop="5dp"
android:layout_toEndOf="@id/appearance_font_offset_iv"
android:text="@string/desc_font_size_offset"
android:textSize="@dimen/preferences_description_text_size"
app:appFontStyle="regular"
app:textColorStyle="tertiary" />
</app.simple.inure.decorations.ripple.DynamicRippleRelativeLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -782,4 +782,6 @@
<string name="desc_disable_animations">Disable app animations completely.</string>
<string name="add_vote_desc">Tap the button to add your vote.</string>
<string name="relevance">Relevance</string>
<string name="font_size_offset">Font Size Offset</string>
<string name="desc_font_size_offset">Offset app\'s font size relative to the system\'s current font size.</string>
</resources>