mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 13:29:50 +02:00
Make icon toggleable
This commit adds an option to choose between the original and the new icon
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome" />
|
||||
</adaptive-icon>
|
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground_monochrome" />
|
||||
</adaptive-icon>
|
@@ -691,4 +691,13 @@
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="icon_labels">
|
||||
<item>Cosmic Lemmy</item>
|
||||
<item>Galactic Cruiser Lemmy</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="icon_values">
|
||||
<item>default_icon</item>
|
||||
<item>original_icon</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@@ -1386,4 +1386,6 @@
|
||||
<string name="settings_hide_user_instance">Hide user instance</string>
|
||||
<string name="share_links_on_your_local_instance_rather_than_the_original_creation_instance">Share links on your local instance rather than the original creation instance.</string>
|
||||
<string name="share_links_on_your_local_instance">Share links on your local instance</string>
|
||||
|
||||
<string name="icon_original_label">Original Icon</string>
|
||||
</resources>
|
@@ -52,6 +52,13 @@
|
||||
app:title="@string/share_links_on_your_local_instance"
|
||||
app:summary="@string/share_links_on_your_local_instance_rather_than_the_original_creation_instance" />
|
||||
|
||||
<ListPreference
|
||||
app:key="icon_preference"
|
||||
app:title="Change App Icon"
|
||||
app:entries="@array/icon_labels"
|
||||
app:entryValues="@array/icon_values"
|
||||
app:defaultValue="default_icon" />
|
||||
|
||||
<eu.toldi.infinityforlemmy.customviews.CustomFontPreferenceCategory app:title="@string/settings_miscellaneous_dangerous_group_title" />
|
||||
|
||||
<eu.toldi.infinityforlemmy.customviews.CustomFontPreference
|
||||
|
Reference in New Issue
Block a user