aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-26 16:30:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-26 16:30:24 +0000
commit837e461451a877c581ea38e401863a266a1781ca (patch)
tree640ec910dde0be8c8da0559b081c0f0a407d6a3e /app/src/main/res/values
parent81c259edcb557e231766e17980bf7a20906ee983 (diff)
downloadinfinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar.gz
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar.bz2
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar.lz
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar.xz
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.tar.zst
infinity-for-reddit-837e461451a877c581ea38e401863a266a1781ca.zip
Add title and content font size options.
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r--app/src/main/res/values/arrays.xml30
-rw-r--r--app/src/main/res/values/attr.xml16
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/values/styles.xml79
4 files changed, 125 insertions, 2 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 43b955c8..f50fe519 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -70,4 +70,34 @@
<item>Large</item>
<item>XLarge</item>
</string-array>
+
+ <string-array name="settings_title_font_size">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>Extra Large</item>
+ </string-array>
+
+ <string-array name="settings_title_font_size_values">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>XLarge</item>
+ </string-array>
+
+ <string-array name="settings_content_font_size">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>Extra Large</item>
+ <item>Enormous Large</item>
+ </string-array>
+
+ <string-array name="settings_content_font_size_values">
+ <item>Small</item>
+ <item>Normal</item>
+ <item>Large</item>
+ <item>XLarge</item>
+ <item>XXLarge</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 64aa4b9e..201074bd 100644
--- a/app/src/main/res/values/attr.xml
+++ b/app/src/main/res/values/attr.xml
@@ -9,4 +9,20 @@
<attr name="font_18" format="dimension"/>
<attr name="font_20" format="dimension"/>
</declare-styleable>
+
+ <declare-styleable name="TitleFontStyle">
+ <attr name="title_font_default" format="dimension"/>
+ <attr name="title_font_12" format="dimension"/>
+ <attr name="title_font_16" format="dimension"/>
+ <attr name="title_font_18" format="dimension"/>
+ <attr name="title_font_20" format="dimension"/>
+ </declare-styleable>
+
+ <declare-styleable name="ContentFontStyle">
+ <attr name="content_font_default" format="dimension"/>
+ <attr name="content_font_12" format="dimension"/>
+ <attr name="content_font_16" format="dimension"/>
+ <attr name="content_font_18" format="dimension"/>
+ <attr name="content_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 6d7b0153..e8cba1f9 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -275,6 +275,8 @@
<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_title_font_size_title">Title Font Size</string>
+ <string name="settings_content_font_size_title">Content 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 f066da89..2b6e10bb 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -85,8 +85,7 @@
<item name="android:textSize">?attr/font_default</item>
</style>
- <style name="FontStyle">
- </style>
+ <style name="FontStyle" />
<style name="FontStyle.Small">
<item name="font_default">12sp</item>
@@ -120,4 +119,80 @@
<item name="font_20">24sp</item>
</style>
+ <style name="TitleFontStyle" />
+
+ <style name="TitleFontStyle.Small">
+ <item name="title_font_default">12sp</item>
+ <item name="title_font_12">12sp</item>
+ <item name="title_font_16">14sp</item>
+ <item name="title_font_18">16sp</item>
+ <item name="title_font_20">18sp</item>
+ </style>
+
+ <style name="TitleFontStyle.Normal">
+ <item name="title_font_default">14sp</item>
+ <item name="title_font_12">12sp</item>
+ <item name="title_font_16">16sp</item>
+ <item name="title_font_18">18sp</item>
+ <item name="title_font_20">20sp</item>
+ </style>
+
+ <style name="TitleFontStyle.Large">
+ <item name="font_default">16sp</item>
+ <item name="title_font_12">14sp</item>
+ <item name="title_font_16">18sp</item>
+ <item name="title_font_18">20sp</item>
+ <item name="title_font_20">22sp</item>
+ </style>
+
+ <style name="TitleFontStyle.XLarge">
+ <item name="title_font_default">18sp</item>
+ <item name="title_font_12">16sp</item>
+ <item name="title_font_16">20sp</item>
+ <item name="title_font_18">22sp</item>
+ <item name="title_font_20">24sp</item>
+ </style>
+
+ <style name="ContentFontStyle" />
+
+ <style name="ContentFontStyle.Small">
+ <item name="content_font_default">12sp</item>
+ <item name="content_font_12">12sp</item>
+ <item name="content_font_16">14sp</item>
+ <item name="content_font_18">16sp</item>
+ <item name="content_font_20">18sp</item>
+ </style>
+
+ <style name="ContentFontStyle.Normal">
+ <item name="content_font_default">14sp</item>
+ <item name="content_font_12">12sp</item>
+ <item name="content_font_16">16sp</item>
+ <item name="content_font_18">18sp</item>
+ <item name="content_font_20">20sp</item>
+ </style>
+
+ <style name="ContentFontStyle.Large">
+ <item name="content_font_default">16sp</item>
+ <item name="content_font_12">14sp</item>
+ <item name="content_font_16">18sp</item>
+ <item name="content_font_18">20sp</item>
+ <item name="content_font_20">22sp</item>
+ </style>
+
+ <style name="ContentFontStyle.XLarge">
+ <item name="content_font_default">18sp</item>
+ <item name="content_font_12">16sp</item>
+ <item name="content_font_16">20sp</item>
+ <item name="content_font_18">22sp</item>
+ <item name="content_font_20">24sp</item>
+ </style>
+
+ <style name="ContentFontStyle.XXLarge">
+ <item name="content_font_default">20sp</item>
+ <item name="content_font_12">18sp</item>
+ <item name="content_font_16">22sp</item>
+ <item name="content_font_18">24sp</item>
+ <item name="content_font_20">26sp</item>
+ </style>
+
</resources>