aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r--app/src/main/res/values/arrays.xml14
-rw-r--r--app/src/main/res/values/attr.xml8
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/values/styles.xml56
4 files changed, 79 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 196fc489..43b955c8 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -56,4 +56,18 @@
<item>7</item>
<item>10</item>
</string-array>
+
+ <string-array name="settings_font_size">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>Extra Large</item>
+ </string-array>
+
+ <string-array name="settings_font_size_values">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>XLarge</item>
+ </string-array>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/attr.xml b/app/src/main/res/values/attr.xml
index f855de6a..64aa4b9e 100644
--- a/app/src/main/res/values/attr.xml
+++ b/app/src/main/res/values/attr.xml
@@ -1,4 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="isTablet">false</bool>
+
+ <declare-styleable name="FontStyle">
+ <attr name="font_default" format="dimension"/>
+ <attr name="font_12" format="dimension"/>
+ <attr name="font_16" format="dimension"/>
+ <attr name="font_18" format="dimension"/>
+ <attr name="font_20" format="dimension"/>
+ </declare-styleable>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 094846ee..84595591 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -273,6 +273,7 @@
<string name="settings_theme_dark_theme_summary">Dark Theme</string>
<string name="settings_theme_system_default_summary">Device default</string>
<string name="settings_lazy_mode_interval_title">Lazy Mode Interval</string>
+ <string name="settings_font_size_title">Font Size</string>
<string name="settings_enable_nsfw_title">Enable NSFW</string>
<string name="settings_blur_nsfw_title">Blur NSFW images</string>
<string name="settings_layout_no_limits_title">Display Under Navigation bar and Status Bar</string>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 0b7ea5c2..6a59fbc6 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -45,6 +45,9 @@
</style>
<style name="MaterialAlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
+ <item name="android:textSize">?attr/font_default</item>
+ <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialogTitleTextStyle</item>
+ <item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialogBodyTextStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item>
<item name="buttonBarNegativeButtonStyle">@style/MaterialAlertDialogNegativeButtonStyle</item>
</style>
@@ -57,10 +60,63 @@
<item name="android:textColor">@color/primaryTextColor</item>
</style>
+ <style name="MaterialAlertDialogTitleTextStyle" parent="MaterialAlertDialog.MaterialComponents.Title.Text">
+ <item name="android:textSize">?attr/font_20</item>
+ </style>
+
+ <style name="MaterialAlertDialogBodyTextStyle">
+ <item name="android:textSize">?attr/font_default</item>
+ </style>
+
<style name="PreferenceActivityTheme" parent="AppTheme.NoActionBar">
+ <item name="android:textAppearanceListItem">@style/PreferenceTitleTextStyle</item>
+ <item name="android:textAppearanceListItemSecondary">@style/PreferenceSubtitleTextStyle</item>
<item name="android:textColorPrimary">@color/primaryTextColor</item>
<item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item>
<item name="buttonBarNegativeButtonStyle">@style/MaterialAlertDialogNegativeButtonStyle</item>
</style>
+ <style name="PreferenceTitleTextStyle">
+ <item name="android:textSize">?attr/font_16</item>
+ </style>
+
+ <style name="PreferenceSubtitleTextStyle">
+ <item name="android:textSize">?attr/font_default</item>
+ </style>
+
+ <style name="FontStyle">
+ </style>
+
+ <style name="FontStyle.Small">
+ <item name="font_default">12sp</item>
+ <item name="font_12">12sp</item>
+ <item name="font_16">14sp</item>
+ <item name="font_18">16sp</item>
+ <item name="font_20">18sp</item>
+ </style>
+
+ <style name="FontStyle.Normal">
+ <item name="font_default">14sp</item>
+ <item name="font_12">12sp</item>
+ <item name="font_16">16sp</item>
+ <item name="font_18">18sp</item>
+ <item name="font_20">20sp</item>
+ </style>
+
+ <style name="FontStyle.Large">
+ <item name="font_default">16sp</item>
+ <item name="font_12">14sp</item>
+ <item name="font_16">18sp</item>
+ <item name="font_18">20sp</item>
+ <item name="font_20">22sp</item>
+ </style>
+
+ <style name="FontStyle.XLarge">
+ <item name="font_default">18sp</item>
+ <item name="font_12">16sp</item>
+ <item name="font_16">20sp</item>
+ <item name="font_18">22sp</item>
+ <item name="font_20">24sp</item>
+ </style>
+
</resources>