Reimplemented custom launcher icons

This commit is contained in:
Moez Bhatti
2016-08-05 02:05:31 -04:00
parent 5ebe6caed8
commit b183d10e3f
65 changed files with 235 additions and 154 deletions
+19 -19
View File
@@ -137,7 +137,7 @@
<activity-alias
android:name=".ui.MainActivity-Teal"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_teal"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -149,7 +149,7 @@
<activity-alias
android:name=".ui.MainActivity-Red"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_red"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -161,7 +161,7 @@
<activity-alias
android:name=".ui.MainActivity-Pink"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_pink"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -173,7 +173,7 @@
<activity-alias
android:name=".ui.MainActivity-Purple"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_purple"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -185,7 +185,7 @@
<activity-alias
android:name=".ui.MainActivity-DeepPurple"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_deep_purple"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -197,7 +197,7 @@
<activity-alias
android:name=".ui.MainActivity-Indigo"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_indigo"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -209,7 +209,7 @@
<activity-alias
android:name=".ui.MainActivity-Blue"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_blue"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -221,7 +221,7 @@
<activity-alias
android:name=".ui.MainActivity-LightBlue"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_light_blue"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -233,7 +233,7 @@
<activity-alias
android:name=".ui.MainActivity-Cyan"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_cyan"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -245,7 +245,7 @@
<activity-alias
android:name=".ui.MainActivity-Green"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_green"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -257,7 +257,7 @@
<activity-alias
android:name=".ui.MainActivity-LightGreen"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_light_green"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -269,7 +269,7 @@
<activity-alias
android:name=".ui.MainActivity-Lime"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_lime"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -281,7 +281,7 @@
<activity-alias
android:name=".ui.MainActivity-Yellow"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_yellow"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -293,7 +293,7 @@
<activity-alias
android:name=".ui.MainActivity-Amber"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_amber"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -305,7 +305,7 @@
<activity-alias
android:name=".ui.MainActivity-Orange"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_orange"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -317,7 +317,7 @@
<activity-alias
android:name=".ui.MainActivity-DeepOrange"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_deep_orange"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -329,7 +329,7 @@
<activity-alias
android:name=".ui.MainActivity-Brown"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_brown"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -341,7 +341,7 @@
<activity-alias
android:name=".ui.MainActivity-Grey"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_grey"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -353,7 +353,7 @@
<activity-alias
android:name=".ui.MainActivity-BlueGrey"
android:enabled="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_blue_grey"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity">
<intent-filter>
@@ -94,7 +94,6 @@ public class QKSMSAppBase extends MultiDexApplication {
registerActivityLifecycleCallbacks(new LifecycleHandler());
ThemeManager.init(this);
ThemeManager.migrateIcon(this); // TODO a few versions after 2.7, we can phase this out along with the old alias
MmsConfig.init(this);
Contact.init(this);
DraftCache.init(this);
@@ -100,8 +100,7 @@ public enum QKPreference {
// Storage
COMPOSE_DRAFT("compose_draft", ""),
LAST_AUTO_DELETE_CHECK("last_auto_delete_check", 0),
MIGRATED_ICON("migrated_icon", false);
LAST_AUTO_DELETE_CHECK("last_auto_delete_check", 0);
private String mKey;
private Object mDefaultValue;
@@ -0,0 +1,50 @@
package com.moez.QKSMS.theme;
import android.content.Context;
import android.support.v7.internal.widget.AdapterViewCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.moez.QKSMS.R;
public class IconAdapter extends RecyclerView.Adapter<IconViewHolder> {
private Context mContext;
private AdapterViewCompat.OnItemClickListener mOnItemClickListener;
private int[] mIconIds = new int[]{
R.mipmap.ic_launcher, R.mipmap.ic_launcher_dark, R.mipmap.ic_launcher_red, R.mipmap.ic_launcher_pink,
R.mipmap.ic_launcher_purple, R.mipmap.ic_launcher_deep_purple, R.mipmap.ic_launcher_indigo,
R.mipmap.ic_launcher_blue, R.mipmap.ic_launcher_light_blue, R.mipmap.ic_launcher_cyan,
R.mipmap.ic_launcher_teal, R.mipmap.ic_launcher_green, R.mipmap.ic_launcher_light_green,
R.mipmap.ic_launcher_lime, R.mipmap.ic_launcher_yellow, R.mipmap.ic_launcher_amber,
R.mipmap.ic_launcher_orange, R.mipmap.ic_launcher_deep_orange, R.mipmap.ic_launcher_brown,
R.mipmap.ic_launcher_grey, R.mipmap.ic_launcher_blue_grey
};
public IconAdapter(Context context, AdapterViewCompat.OnItemClickListener onItemClickListener) {
mContext = context;
mOnItemClickListener = onItemClickListener;
}
@Override
public IconViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(mContext).inflate(R.layout.list_item_icon, parent, false);
return new IconViewHolder(this, view);
}
@Override
public void onBindViewHolder(IconViewHolder holder, int position) {
holder.bind(position);
holder.itemView.setOnClickListener(v -> mOnItemClickListener.onItemClick(null, holder.itemView, position, 0));
}
public Integer getItem(int position) {
return mIconIds[position];
}
@Override
public int getItemCount() {
return mIconIds.length;
}
}
@@ -0,0 +1,27 @@
package com.moez.QKSMS.theme;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import butterknife.Bind;
import butterknife.ButterKnife;
import com.moez.QKSMS.R;
public class IconViewHolder extends RecyclerView.ViewHolder {
@Bind(R.id.icon) protected ImageView mIcon;
protected IconAdapter mIconAdapter;
public IconViewHolder(IconAdapter iconAdapter, View view) {
super(view);
mIconAdapter = iconAdapter;
ButterKnife.bind(this, view);
}
public void bind(int position) {
int iconRes = mIconAdapter.getItem(position);
mIcon.setImageResource(iconRes);
}
}
@@ -20,6 +20,8 @@ import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@@ -37,8 +39,10 @@ import com.moez.QKSMS.common.ConversationPrefsHelper;
import com.moez.QKSMS.common.LiveViewManager;
import com.moez.QKSMS.common.utils.ColorUtils;
import com.moez.QKSMS.common.utils.KeyboardUtils;
import com.moez.QKSMS.common.utils.Units;
import com.moez.QKSMS.enums.QKPreference;
import com.moez.QKSMS.receiver.IconColorReceiver;
import com.moez.QKSMS.theme.IconAdapter;
import com.moez.QKSMS.ui.base.QKActivity;
import com.moez.QKSMS.ui.dialog.ColorPickerPagerAdapter;
import com.moez.QKSMS.ui.dialog.QKDialog;
@@ -326,20 +330,34 @@ public class ThemeManager {
LiveViewManager.refreshViews(QKPreference.BACKGROUND);
}
public static void setIcon(final QKActivity context, boolean dark) {
new QKDialog()
.setContext(context)
.setTitle(R.string.update_icon_title)
.setMessage(R.string.update_icon_message)
.setButtonBarOrientation(LinearLayout.VERTICAL)
.setPositiveButton(R.string.okay, v -> {
PackageManager packageManager = context.getPackageManager();
public static void setIcon(final QKActivity context) {
String defaultComponent = "com.moez.QKSMS.ui.MainActivity-Default";
String darkComponent = "com.moez.QKSMS.ui.MainActivity-Dark";
String[] colors = {
"Default", "Dark", "Red", "Pink", "Purple", "DeepPurple",
"Indigo", "Blue", "LightBlue", "Cyan", "Teal", "Green",
"LightGreen", "Lime", "Yellow", "Amber", "Orange", "DeepOrange",
"Brown", "Grey", "BlueGrey"
};
RecyclerView recyclerView = new RecyclerView(context);
recyclerView.setLayoutParams(new LinearLayout.LayoutParams(-1, Units.dpToPx(context, 200)));
recyclerView.setLayoutManager(new GridLayoutManager(context, 4));
recyclerView.setAdapter(new IconAdapter(context, (parent, view, position, id) -> {
PackageManager packageManager = context.getPackageManager();
// Disable all of the color aliases, except for the alias with the current
// color.
String enabledComponent = null;
for (int i = 0; i < colors.length; i++) {
String componentClassName = String.format("com.moez.QKSMS.ui.MainActivity-%s", colors[i]);
// Save the enabled component so we can kill the app with this one when
// it's all done.
if (i == position) {
enabledComponent = componentClassName;
} else {
packageManager.setComponentEnabledSetting(
new ComponentName(context, dark ? defaultComponent : darkComponent),
new ComponentName(context, componentClassName),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
// Don't kill the app while we're in the loop! This will
// prevent the other component enabled settings from
@@ -347,53 +365,26 @@ public class ThemeManager {
// won't show up to the user.
PackageManager.DONT_KILL_APP
);
}
}
// Broadcast an intent to a receiver that will:
// 1) enable the last component; and
// 2) relaunch QKSMS with the new component name.
Intent intent = new Intent(IconColorReceiver.ACTION_ICON_COLOR_CHANGED);
intent.putExtra(IconColorReceiver.EXTRA_COMPONENT_NAME, dark ? darkComponent : defaultComponent);
context.sendBroadcast(intent);
})
.setCancelOnTouchOutside(false)
// Broadcast an intent to a receiver that will:
// 1) enable the last component; and
// 2) relaunch QKSMS with the new component name.
Intent intent = new Intent(IconColorReceiver.ACTION_ICON_COLOR_CHANGED);
intent.putExtra(IconColorReceiver.EXTRA_COMPONENT_NAME, enabledComponent);
context.sendBroadcast(intent);
}));
new QKDialog()
.setContext(context)
.setTitle(R.string.update_icon_title)
.setMessage(R.string.update_icon_message)
.setCustomView(recyclerView)
.setNegativeButton(R.string.cancel, null)
.show();
}
public static void migrateIcon(Context context) {
PackageManager packageManager = context.getPackageManager();
// If we've already migrated to use the MainActivity-Default component, we don't need to do anything
if (mPrefs.getBoolean(QKPreference.MIGRATED_ICON.getKey(), (Boolean) QKPreference.MIGRATED_ICON.getDefaultValue())) {
return;
}
mPrefs.edit().putBoolean(QKPreference.MIGRATED_ICON.getKey(), true).apply();
String[] colors = {
"Red", "Pink", "Purple", "DeepPurple", "Indigo", "Blue",
"LightBlue", "Cyan", "Teal", "Green", "LightGreen", "Lime",
"Yellow", "Amber", "Orange", "DeepOrange", "Brown", "Grey",
"BlueGrey"
};
// Disable all of the old components
for (String color : colors) {
String componentClassName = String.format("com.moez.QKSMS.ui.MainActivity-%s", color);
packageManager.setComponentEnabledSetting(
new ComponentName(context, componentClassName),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP
);
}
// Enable the new component
ComponentName componentName = new ComponentName(context, "com.moez.QKSMS.ui.MainActivity-Default");
packageManager.setComponentEnabledSetting(componentName,
PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
PackageManager.DONT_KILL_APP
);
}
@ColorInt
public static int getBackgroundColor() {
return mBackgroundColor;
@@ -9,6 +9,7 @@ import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.annotation.StringRes;
import android.support.v7.widget.RecyclerView;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
@@ -113,7 +114,7 @@ public class QKDialog extends DialogFragment {
mCustomPanel = (LinearLayout) view.findViewById(R.id.customPanel);
mCustomPanel.setVisibility(View.VISIBLE);
if (mCustomView instanceof ListView) {
if (mCustomView instanceof ListView || mCustomView instanceof RecyclerView) {
mCustomPanel.addView(mCustomView);
} else {
ScrollView scrollView = new ScrollView(mContext);
@@ -82,7 +82,7 @@ public class SettingsFragment extends PreferenceFragment implements Preference.O
public static final String CATEGORY_APPEARANCE_SYSTEM_BARS = "pref_key_category_appearance_system_bars";
public static final String THEME = "pref_key_theme";
public static final String ICON = "pref_key_icon_dark";
public static final String ICON = "pref_key_icon";
public static final String STATUS_TINT = "pref_key_status_tint";
public static final String NAVIGATION_TINT = "pref_key_navigation_tint";
public static final String BACKGROUND = "pref_key_background";
@@ -425,9 +425,6 @@ public class SettingsFragment extends PreferenceFragment implements Preference.O
case BACKGROUND:
ThemeManager.setTheme(ThemeManager.Theme.fromString((String) newValue));
break;
case ICON:
ThemeManager.setIcon(mContext, (Boolean) newValue);
break;
case STATUS_TINT:
ThemeManager.setStatusBarTintEnabled(mContext, (Boolean) newValue);
break;
@@ -579,6 +576,9 @@ public class SettingsFragment extends PreferenceFragment implements Preference.O
case THEME:
ThemeManager.showColorPickerDialog(mContext);
break;
case ICON:
ThemeManager.setIcon(mContext);
break;
case BUBBLES:
new BubblePreferenceDialog().setContext(mContext).show();
break;
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingTop="8dp">
<ImageView
android:id="@+id/icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
tools:src="@mipmap/ic_launcher_blue_grey" />
</FrameLayout>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">সংস্করণ, পরিবর্তনসূচী, লেখক, ধন্যবাদ</string>
<string name="pref_theme">থিমের রঙ</string>
<string name="pref_theme_summary_alt">থিম পরিবর্তন করতে হালকা টোকা দিন</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint"> রঞ্জিত স্থিতি দণ্ড</string>
<string name="pref_navigation_tint"> রঞ্জিত নেভিগেশন বার</string>
<string name="pref_background">প্রেক্ষাপট রঙ</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Verze, seznam změn, autoři, poděkování</string>
<string name="pref_theme">Barva motivu</string>
<string name="pref_theme_summary_alt">Nastavení hlavní barvy</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Transparentní stavový panel</string>
<string name="pref_navigation_tint">Transparentní navigační panel</string>
<string name="pref_background">Barva pozadí</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, ændringslog, forfattere, tak</string>
<string name="pref_theme">Temafarve</string>
<string name="pref_theme_summary_alt">Tryk for at ændre tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Tonet statusbjælke</string>
<string name="pref_navigation_tint">Tonet navigationslinje</string>
<string name="pref_background">Baggrundsfarve</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, letzte Änderungen, Autoren, Danke</string>
<string name="pref_theme">Farbschema</string>
<string name="pref_theme_summary_alt">Tippen um das Schema zu wechseln</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Getönte Statusleiste</string>
<string name="pref_navigation_tint">Getönte Navigationsleiste</string>
<string name="pref_background">Hintergrundfarbe</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versión, registro de cambios, autores, gracias</string>
<string name="pref_theme">Color del tema</string>
<string name="pref_theme_summary_alt">Toque para cambiar el tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Barra de estado coloreada</string>
<string name="pref_navigation_tint">Barra de navegación coloreada</string>
<string name="pref_background">Color de fondo</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">نسخه، تغییرات، نویسندگان، تشکرها</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">برای تغییر تم لمس کنید</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">نوار وضعیت رنگی</string>
<string name="pref_navigation_tint">نوار راهبری رنگی</string>
<string name="pref_background">رنگ پس زمینه</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versio, muutosloki, tekijät, kiitokset</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Napauta teeman vaihtamiseksi</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Sävytetty tilapalkki</string>
<string name="pref_navigation_tint">Sävytetty navigointipalkki</string>
<string name="pref_background">Taustaväri</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, modifications, auteurs, remerciements</string>
<string name="pref_theme">Couleur du thème</string>
<string name="pref_theme_summary_alt">Appuyer pour changer le thème</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Barre d\'état colorée</string>
<string name="pref_navigation_tint">Barre de navigation colorée</string>
<string name="pref_background">Couleur d\'arrière-plan</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">टिंटेड स्टेटस बार</string>
<string name="pref_navigation_tint">टिंटेड नेवीगेशन बार</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Verzió, változási napló, szerzők, köszönetnyilvánítás</string>
<string name="pref_theme">Színséma</string>
<string name="pref_theme_summary_alt">Érintse meg a téma módosításához</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Színezett állapotsor</string>
<string name="pref_navigation_tint">Színezett navigációs sáv</string>
<string name="pref_background">Háttérszín</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versi, catatan perubahan, pengembang, kontributor</string>
<string name="pref_theme">Warna tema</string>
<string name="pref_theme_summary_alt">Ketuk untuk mengubah tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Bilah status berwarna</string>
<string name="pref_navigation_tint">Bilah navigasi berwarna</string>
<string name="pref_background">Warna latar belakang</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versione, changelog, autori, ringraziamenti</string>
<string name="pref_theme">Colore del tema</string>
<string name="pref_theme_summary_alt">Tocca per cambiare tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Barra di stato colorata</string>
<string name="pref_navigation_tint">Barra di navigazione colorata</string>
<string name="pref_background">Colore di sfondo</string>
+2 -2
View File
@@ -123,8 +123,8 @@
<string name="pref_category_summary_about">גירסה, רשימת שינויים, מחברים, תודות</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">לחץ כדי לשנות ערכת צבעים</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">צביעה של שורת המצב</string>
<string name="pref_navigation_tint">צביעה של סרגל הניווט בצבעי האפליקציה</string>
<string name="pref_background">צבע הרקע</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">バージョン、変更履歴、作者、謝辞</string>
<string name="pref_theme">テーマ色</string>
<string name="pref_theme_summary_alt">タップするとテーマを変更します</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">彩色のステータス バー</string>
<string name="pref_navigation_tint">彩色のナビゲーション バー</string>
<string name="pref_background">背景色</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">버전, 변경이력, 제작자, 감사의 말</string>
<string name="pref_theme">테마 색상</string>
<string name="pref_theme_summary_alt">테마를 변경하려면 탭하기</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">상단바 색상표시(투명화)</string>
<string name="pref_navigation_tint">소프트키 색상표시(투명화)</string>
<string name="pref_background">배경 색상</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Pranešimų juostos spalvos efektas</string>
<string name="pref_navigation_tint">Navigacijos juostos spalvos efektas</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">तिन्तेद स्त्याटस बार</string>
<string name="pref_navigation_tint">तिन्तेद न्याभिगेसन बार</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versie, changelog, auteurs, bedankingen</string>
<string name="pref_theme">Themakleur</string>
<string name="pref_theme_summary_alt">Klik om thema te veranderen</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Gekleurde statusbalk</string>
<string name="pref_navigation_tint">Gekleurde navigatiebalk</string>
<string name="pref_background">Achtergrondkleur</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versjon, endringslogg, forfattere, takk</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Trykk for å endre tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Gjennomsiktig status linje</string>
<string name="pref_navigation_tint">Gjennomsiktig navigasjons linje</string>
<string name="pref_background">Bakgrunnsfarge</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Wersja, lista zmian, autorzy, podziękowania</string>
<string name="pref_theme">Kolor motywu</string>
<string name="pref_theme_summary_alt">Dotknij, aby zmienić motyw</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Kolorowy pasek powiadomień</string>
<string name="pref_navigation_tint">Kolorowy pasek nawigacyjny</string>
<string name="pref_background">Kolor tła</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versão, changelog, autores, obrigado</string>
<string name="pref_theme">Cor do tema</string>
<string name="pref_theme_summary_alt">Toque para mudar o tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Barra de status matizada</string>
<string name="pref_navigation_tint">Barra de navegação matizada</string>
<string name="pref_background">Cor do fundo</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Versão, alterações, autores e agradecimentos</string>
<string name="pref_theme">Cor do tema</string>
<string name="pref_theme_summary_alt">Toque para mudar de tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Barra de estado colorida</string>
<string name="pref_navigation_tint">Barra de navegação colorida</string>
<string name="pref_background">Cor de fundo</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Nuanțați bara de stare</string>
<string name="pref_navigation_tint">Nuanțați bara de navigare</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Версия, список изменений, авторы, благодарности</string>
<string name="pref_theme">Цвет темы</string>
<string name="pref_theme_summary_alt">Нажмите, чтобы изменить тему</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Прозрачная строка состояния</string>
<string name="pref_navigation_tint">Прозрачная панель навигации</string>
<string name="pref_background">Цвет фона</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Verzia, zoznam zmien, autori, poďakovanie</string>
<string name="pref_theme">Farba motívu</string>
<string name="pref_theme_summary_alt">Dotykom zmeniť motív</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Farebný stavový riadok</string>
<string name="pref_navigation_tint">Farebný navigačný panel</string>
<string name="pref_background">Farba pozadia</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Верзија, измене, аутори, захвале</string>
<string name="pref_theme">Боја теме</string>
<string name="pref_theme_summary_alt">Додирните да бисте променили тему</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Обојена статусна трака</string>
<string name="pref_navigation_tint">Обојена навигациона трака</string>
<string name="pref_background">Боја позадине</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, ändringslogg, upphovsmän, tack</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tryck för att ändra tema</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Tonat statusfält</string>
<string name="pref_navigation_tint">Tonat navigeringsfält</string>
<string name="pref_background">Bakgrundsfärg</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Kulayan ang status bar</string>
<string name="pref_navigation_tint">Kulayan ang navigation bar</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Sürüm, değişenler, yazarlar, teşekkürler</string>
<string name="pref_theme">Tema rengi</string>
<string name="pref_theme_summary_alt">Temayı değiştirmek için dokunun</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Renkli bildirim çubuğu</string>
<string name="pref_navigation_tint">Renkli sistem çubuğu</string>
<string name="pref_background">Arkaplan rengi</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Phiên bản, thay đổi, tác giả, cảm ơn</string>
<string name="pref_theme">Màu chủ đề</string>
<string name="pref_theme_summary_alt">Bấm để thay đổi chủ đề</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">Nhuộm thanh trạng thái</string>
<string name="pref_navigation_tint">Nhuộm thanh điều hướng</string>
<string name="pref_background">Màu nền</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">版本,更新日志,作者,致谢</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">点击以更改主题</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">彩色状态栏</string>
<string name="pref_navigation_tint">彩色导航栏</string>
<string name="pref_background">背景色</string>
+2 -2
View File
@@ -119,8 +119,8 @@
<string name="pref_category_summary_about">Version, changelog, authors, thanks</string>
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Use dark icon</string>
<string name="pref_icon_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_status_tint">沉浸式狀態欄</string>
<string name="pref_navigation_tint">沉浸式虛擬鍵</string>
<string name="pref_background">Background color</string>
+2 -2
View File
@@ -125,8 +125,8 @@
<string name="pref_theme">Theme color</string>
<string name="pref_theme_summary_alt">Tap to change theme</string>
<string name="pref_icon_dark">Use dark icon</string>
<string name="pref_icon_dark_summary">Use the dark version of the QKSMS icon on your homescreen, to better match your wallpaper</string>
<string name="pref_icon">Icon color</string>
<string name="pref_icon_summary">Tap to change the QKSMS icon color</string>
<string name="pref_status_tint">Tinted status bar</string>
<string name="pref_navigation_tint">Tinted navigation bar</string>
<string name="pref_background">Background color</string>
-2
View File
@@ -3,8 +3,6 @@
<Preference
android:defaultValue="-16746133"
android:key="pref_key_theme" />
<Preference
android:key="pref_key_icon_dark" />
<Preference
android:defaultValue="@bool/hasL"
android:key="pref_key_status_tint" />
@@ -10,13 +10,12 @@
android:layout="@layout/list_item_preference"
android:summary="@string/pref_theme_summary_alt"
android:title="@string/pref_theme" />
<CheckBoxPreference
<Preference
android:defaultValue="false"
android:key="pref_key_icon_dark"
android:key="pref_key_icon"
android:layout="@layout/list_item_preference"
android:summary="@string/pref_icon_dark_summary"
android:title="@string/pref_icon_dark"
android:widgetLayout="@layout/view_switch" />
android:summary="@string/pref_icon_summary"
android:title="@string/pref_icon" />
<ListPreference
android:defaultValue="light"
android:entries="@array/background_titles"