mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 04:37:25 +01:00
Remove font: Bad Script. Add some bold fonts.
This commit is contained in:
parent
2d69170f4f
commit
7742a19abd
@ -4,13 +4,18 @@ import ml.docilealligator.infinityforreddit.R;
|
||||
|
||||
public enum ContentFontFamily {
|
||||
Default(R.style.ContentFontFamily, "Default"),
|
||||
BalsamiqSans(R.style.ContentFontFamily_BalsamiqSans, "BalsamiqSans"),
|
||||
BalsamiqSans(R.style.ContentFontFamily_BalsamiqSans, "BalsamiqSansBold"),
|
||||
BalsamiqSansBold(R.style.ContentFontFamily_BalsamiqSansBold, "BalsamiqSansBold"),
|
||||
NotoSans(R.style.ContentFontFamily_NotoSans, "NotoSans"),
|
||||
NotoSansBold(R.style.ContentFontFamily_NotoSansBold, "NotoSansBold"),
|
||||
RobotoCondensed(R.style.ContentFontFamily_RobotoCondensed, "RobotoCondensed"),
|
||||
RobotoCondensedBold(R.style.ContentFontFamily_RobotoCondensedBold, "RobotoCondensedBold"),
|
||||
HarmoniaSans(R.style.ContentFontFamily_HarmoniaSans, "HarmoniaSans"),
|
||||
HarmoniaSansBold(R.style.ContentFontFamily_HarmoniaSansBold, "HarmoniaSansBold"),
|
||||
Inter(R.style.ContentFontFamily_Inter, "Inter"),
|
||||
InterBold(R.style.ContentFontFamily_InterBold, "InterBold"),
|
||||
Manrope(R.style.ContentFontFamily_Manrope, "Manrope"),
|
||||
BadScript(R.style.ContentFontFamily_BadScript, "BadScript"),
|
||||
ManropeBold(R.style.ContentFontFamily_ManropeBold, "ManropeBold"),
|
||||
Sriracha(R.style.ContentFontFamily_Sriracha, "Sriracha");
|
||||
|
||||
private int resId;
|
||||
|
@ -5,12 +5,17 @@ import ml.docilealligator.infinityforreddit.R;
|
||||
public enum FontFamily {
|
||||
Default(R.style.FontFamily, "Default"),
|
||||
BalsamiqSans(R.style.FontFamily_BalsamiqSans, "BalsamiqSans"),
|
||||
BalsamiqSansBold(R.style.FontFamily_BalsamiqSansBold, "BalsamiqSansBold"),
|
||||
NotoSans(R.style.FontFamily_NotoSans, "NotoSans"),
|
||||
NotoSansBold(R.style.FontFamily_NotoSansBold, "NotoSansBold"),
|
||||
RobotoCondensed(R.style.FontFamily_RobotoCondensed, "RobotoCondensed"),
|
||||
RobotoCondensedBold(R.style.FontFamily_RobotoCondensedBold, "RobotoCondensedBold"),
|
||||
HarmoniaSans(R.style.FontFamily_HarmoniaSans, "HarmoniaSans"),
|
||||
HarmoniaSansBold(R.style.FontFamily_HarmoniaSansBold, "HarmoniaSansBold"),
|
||||
Inter(R.style.FontFamily_Inter, "Inter"),
|
||||
InterBold(R.style.FontFamily_InterBold, "InterBold"),
|
||||
Manrope(R.style.FontFamily_Manrope, "Manrope"),
|
||||
BadScript(R.style.FontFamily_BadScript, "BadScript"),
|
||||
ManropeBold(R.style.FontFamily_ManropeBold, "ManropeBold"),
|
||||
Sriracha(R.style.FontFamily_Sriracha, "Sriracha");
|
||||
|
||||
private int resId;
|
||||
|
@ -5,12 +5,17 @@ import ml.docilealligator.infinityforreddit.R;
|
||||
public enum TitleFontFamily {
|
||||
Default(R.style.TitleFontFamily, "Default"),
|
||||
BalsamiqSans(R.style.TitleFontFamily_BalsamiqSans, "BalsamiqSans"),
|
||||
BalsamiqSansBold(R.style.TitleFontFamily_BalsamiqSansBold, "BalsamiqSansBold"),
|
||||
NotoSans(R.style.TitleFontFamily_NotoSans, "NotoSans"),
|
||||
NotoSansBold(R.style.TitleFontFamily_NotoSansBold, "NotoSansBold"),
|
||||
RobotoCondensed(R.style.TitleFontFamily_RobotoCondensed, "RobotoCondensed"),
|
||||
RobotoCondensedBold(R.style.TitleFontFamily_RobotoCondensedBold, "RobotoCondensedBold"),
|
||||
HarmoniaSans(R.style.TitleFontFamily_HarmoniaSans, "HarmoniaSans"),
|
||||
HarmoniaSansBold(R.style.TitleFontFamily_HarmoniaSansBold, "HarmoniaSansBold"),
|
||||
Inter(R.style.TitleFontFamily_Inter, "Inter"),
|
||||
InterBold(R.style.TitleFontFamily_InterBold, "InterBold"),
|
||||
Manrope(R.style.TitleFontFamily_Manrope, "Manrope"),
|
||||
BadScript(R.style.TitleFontFamily_BadScript, "BadScript"),
|
||||
ManropeBold(R.style.TitleFontFamily_ManropeBold, "ManropeBold"),
|
||||
Sriracha(R.style.TitleFontFamily_Sriracha, "Sriracha");
|
||||
|
||||
private int resId;
|
||||
|
@ -112,6 +112,15 @@ public class AcknowledgementFragment extends Fragment {
|
||||
acknowledgements.add(new Acknowledgement("AndroidFastScroll",
|
||||
"Fast scroll for Android RecyclerView and more.",
|
||||
Uri.parse("https://github.com/zhanghai/AndroidFastScroll")));
|
||||
acknowledgements.add(new Acknowledgement("Subsampling Scale Image View",
|
||||
"A custom image view for Android, designed for photo galleries and displaying " +
|
||||
"huge images (e.g. maps and building plans) without OutOfMemoryErrors.",
|
||||
Uri.parse("https://github.com/davemorrissey/subsampling-scale-image-view")));
|
||||
acknowledgements.add(new Acknowledgement("BigImageViewer",
|
||||
"Big image viewer supporting pan and zoom, with very little memory " +
|
||||
"usage and full featured image loading choices. Powered by Subsampling Scale " +
|
||||
"Image View, Fresco, Glide, and Picasso. Even with gif and webp support!",
|
||||
Uri.parse("https://github.com/Piasy/BigImageViewer")));
|
||||
|
||||
AcknowledgementRecyclerViewAdapter adapter = new AcknowledgementRecyclerViewAdapter(activity, acknowledgements);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(activity));
|
||||
|
Binary file not shown.
12
app/src/main/res/font/balsamiq_sans_bold_version.xml
Normal file
12
app/src/main/res/font/balsamiq_sans_bold_version.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<font
|
||||
app:fontStyle="normal"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/balsamiq_sans_bold" />
|
||||
|
||||
<font
|
||||
app:fontStyle="italic"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/balsamiq_sans_bold_italic" />
|
||||
</font-family>
|
12
app/src/main/res/font/noto_sans_bold_version.xml
Normal file
12
app/src/main/res/font/noto_sans_bold_version.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<font
|
||||
app:fontStyle="normal"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/noto_sans_bold" />
|
||||
|
||||
<font
|
||||
app:fontStyle="italic"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/noto_sans_bold_italic" />
|
||||
</font-family>
|
12
app/src/main/res/font/roboto_condensed_bold_version.xml
Normal file
12
app/src/main/res/font/roboto_condensed_bold_version.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<font
|
||||
app:fontStyle="normal"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/roboto_condensed_bold" />
|
||||
|
||||
<font
|
||||
app:fontStyle="italic"
|
||||
app:fontWeight="700"
|
||||
app:font="@font/roboto_condensed_bold_italic" />
|
||||
</font-family>
|
@ -29,6 +29,18 @@
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/balsamiq_sans" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Balsamiq Sans Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/balsamiq_sans_bold_version" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -48,10 +60,10 @@
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Roboto Condensed"
|
||||
android:text="Noto Sans Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/roboto_condensed" />
|
||||
android:fontFamily="@font/noto_sans_bold_version" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
@ -65,6 +77,42 @@
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/harmonia_sans" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Harmonia Sans Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/harmonia_sans_bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Roboto Condensed"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/roboto_condensed" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Roboto Condensed Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/roboto_condensed_bold_version" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -77,6 +125,18 @@
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/inter" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Inter Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/inter_bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -96,10 +156,10 @@
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingStart="72dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Bad Script"
|
||||
android:text="Manrope Bold"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textSize="?attr/font_default"
|
||||
android:fontFamily="@font/bad_script_regular" />
|
||||
android:fontFamily="@font/manrope_bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -130,24 +130,34 @@
|
||||
<string-array name="settings_font_family">
|
||||
<item>Default</item>
|
||||
<item>Balsamiq Sans</item>
|
||||
<item>Balsamiq Sans Bold</item>
|
||||
<item>Noto Sans</item>
|
||||
<item>Roboto Condensed</item>
|
||||
<item>Noto Sans Bold</item>
|
||||
<item>Harmonia Sans</item>
|
||||
<item>Inter</item>
|
||||
<item>Manrope</item>
|
||||
<item>Bad Script</item>
|
||||
<item>Harmonia Sans Bold (No Italic)</item>
|
||||
<item>Roboto Condensed</item>
|
||||
<item>Roboto Condensed Bold</item>
|
||||
<item>Inter (No Italic)</item>
|
||||
<item>Inter Bold (No Italic)</item>
|
||||
<item>Manrope (No Italic)</item>
|
||||
<item>Manrope Bold (No Italic)</item>
|
||||
<item>Sriracha</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="settings_font_family_values">
|
||||
<item>Default</item>
|
||||
<item>BalsamiqSans</item>
|
||||
<item>BalsamiqSansBold</item>
|
||||
<item>NotoSans</item>
|
||||
<item>RobotoCondensed</item>
|
||||
<item>NotoSansBold</item>
|
||||
<item>HarmoniaSans</item>
|
||||
<item>HarmoniaSansBold</item>
|
||||
<item>RobotoCondensed</item>
|
||||
<item>RobotoCondensedBold</item>
|
||||
<item>Inter</item>
|
||||
<item>InterBold</item>
|
||||
<item>Manrope</item>
|
||||
<item>BadScript</item>
|
||||
<item>ManropeBold</item>
|
||||
<item>Sriracha</item>
|
||||
</string-array>
|
||||
|
||||
|
@ -257,28 +257,48 @@
|
||||
<item name="font_family">@font/balsamiq_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.BalsamiqSansBold">
|
||||
<item name="font_family">@font/balsamiq_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.NotoSans">
|
||||
<item name="font_family">@font/noto_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.NotoSansBold">
|
||||
<item name="font_family">@font/noto_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.RobotoCondensed">
|
||||
<item name="font_family">@font/roboto_condensed</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.RobotoCondensedBold">
|
||||
<item name="font_family">@font/roboto_condensed_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.HarmoniaSans">
|
||||
<item name="font_family">@font/harmonia_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.HarmoniaSansBold">
|
||||
<item name="font_family">@font/harmonia_sans_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.Inter">
|
||||
<item name="font_family">@font/inter</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.InterBold">
|
||||
<item name="font_family">@font/inter_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.Manrope">
|
||||
<item name="font_family">@font/manrope</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.BadScript">
|
||||
<item name="font_family">@font/bad_script_regular</item>
|
||||
<style name="FontFamily.ManropeBold">
|
||||
<item name="font_family">@font/manrope_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="FontFamily.Sriracha">
|
||||
@ -295,28 +315,48 @@
|
||||
<item name="title_font_family">@font/balsamiq_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.BalsamiqSansBold">
|
||||
<item name="title_font_family">@font/balsamiq_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.NotoSans">
|
||||
<item name="title_font_family">@font/noto_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.NotoSansBold">
|
||||
<item name="title_font_family">@font/noto_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.RobotoCondensed">
|
||||
<item name="title_font_family">@font/roboto_condensed</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.RobotoCondensedBold">
|
||||
<item name="title_font_family">@font/roboto_condensed_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.HarmoniaSans">
|
||||
<item name="title_font_family">@font/harmonia_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.HarmoniaSansBold">
|
||||
<item name="title_font_family">@font/harmonia_sans_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.Inter">
|
||||
<item name="title_font_family">@font/inter</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.InterBold">
|
||||
<item name="title_font_family">@font/inter_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.Manrope">
|
||||
<item name="title_font_family">@font/manrope</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.BadScript">
|
||||
<item name="title_font_family">@font/bad_script_regular</item>
|
||||
<style name="TitleFontFamily.ManropeBold">
|
||||
<item name="title_font_family">@font/manrope_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="TitleFontFamily.Sriracha">
|
||||
@ -333,28 +373,48 @@
|
||||
<item name="content_font_family">@font/balsamiq_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.BalsamiqSansBold">
|
||||
<item name="content_font_family">@font/balsamiq_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.NotoSans">
|
||||
<item name="content_font_family">@font/noto_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.NotoSansBold">
|
||||
<item name="content_font_family">@font/noto_sans_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.RobotoCondensed">
|
||||
<item name="content_font_family">@font/roboto_condensed</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.RobotoCondensedBold">
|
||||
<item name="content_font_family">@font/roboto_condensed_bold_version</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.HarmoniaSans">
|
||||
<item name="content_font_family">@font/harmonia_sans</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.HarmoniaSansBold">
|
||||
<item name="content_font_family">@font/harmonia_sans_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.Inter">
|
||||
<item name="content_font_family">@font/inter</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.InterBold">
|
||||
<item name="content_font_family">@font/inter_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.Manrope">
|
||||
<item name="content_font_family">@font/manrope</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.BadScript">
|
||||
<item name="content_font_family">@font/bad_script_regular</item>
|
||||
<style name="ContentFontFamily.ManropeBold">
|
||||
<item name="content_font_family">@font/manrope_bold</item>
|
||||
</style>
|
||||
|
||||
<style name="ContentFontFamily.Sriracha">
|
||||
|
@ -6,7 +6,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.0.0'
|
||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
Loading…
Reference in New Issue
Block a user