New launcher logo
@ -54,7 +54,7 @@
|
|||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:fullBackupContent="false"
|
android:fullBackupContent="false"
|
||||||
android:networkSecurityConfig="@xml/network_security_config"
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="UnusedAttribute">
|
||||||
|
@ -116,13 +116,6 @@ public class AccountSettings {
|
|||||||
App.log.info("Account " + account.name + " has version " + version + ", current version: " + CURRENT_VERSION);
|
App.log.info("Account " + account.name + " has version " + version + ", current version: " + CURRENT_VERSION);
|
||||||
|
|
||||||
if (version < CURRENT_VERSION) {
|
if (version < CURRENT_VERSION) {
|
||||||
Bitmap bitmapLogo = null;
|
|
||||||
Drawable drawableLogo = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP ?
|
|
||||||
context.getDrawable(R.drawable.ic_launcher) :
|
|
||||||
context.getResources().getDrawable(R.drawable.ic_launcher);
|
|
||||||
if (drawableLogo instanceof BitmapDrawable)
|
|
||||||
bitmapLogo = ((BitmapDrawable)drawableLogo).getBitmap();
|
|
||||||
|
|
||||||
Notification notify = new NotificationCompat.Builder(context)
|
Notification notify = new NotificationCompat.Builder(context)
|
||||||
.setSmallIcon(R.drawable.ic_new_releases_light)
|
.setSmallIcon(R.drawable.ic_new_releases_light)
|
||||||
.setLargeIcon(App.getLauncherBitmap(context))
|
.setLargeIcon(App.getLauncherBitmap(context))
|
||||||
|
@ -152,8 +152,8 @@ public class App extends Application {
|
|||||||
public static Bitmap getLauncherBitmap(@NonNull Context context) {
|
public static Bitmap getLauncherBitmap(@NonNull Context context) {
|
||||||
Bitmap bitmapLogo = null;
|
Bitmap bitmapLogo = null;
|
||||||
Drawable drawableLogo = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP ?
|
Drawable drawableLogo = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP ?
|
||||||
context.getDrawable(R.drawable.ic_launcher) :
|
context.getDrawable(R.mipmap.ic_launcher) :
|
||||||
context.getResources().getDrawable(R.drawable.ic_launcher);
|
context.getResources().getDrawable(R.mipmap.ic_launcher);
|
||||||
if (drawableLogo instanceof BitmapDrawable)
|
if (drawableLogo instanceof BitmapDrawable)
|
||||||
bitmapLogo = ((BitmapDrawable)drawableLogo).getBitmap();
|
bitmapLogo = ((BitmapDrawable)drawableLogo).getBitmap();
|
||||||
return bitmapLogo;
|
return bitmapLogo;
|
||||||
|
@ -123,7 +123,7 @@ public class StartupDialogFragment extends DialogFragment {
|
|||||||
|
|
||||||
case DEVELOPMENT_VERSION:
|
case DEVELOPMENT_VERSION:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setIcon(R.drawable.ic_launcher)
|
.setIcon(R.mipmap.ic_launcher)
|
||||||
.setTitle(R.string.startup_development_version)
|
.setTitle(R.string.startup_development_version)
|
||||||
.setMessage(R.string.startup_development_version_message)
|
.setMessage(R.string.startup_development_version_message)
|
||||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||||
@ -141,7 +141,7 @@ public class StartupDialogFragment extends DialogFragment {
|
|||||||
|
|
||||||
case FDROID_DONATE:
|
case FDROID_DONATE:
|
||||||
return new AlertDialog.Builder(getActivity())
|
return new AlertDialog.Builder(getActivity())
|
||||||
.setIcon(R.drawable.ic_launcher)
|
.setIcon(R.mipmap.ic_launcher)
|
||||||
.setTitle(R.string.startup_donate)
|
.setTitle(R.string.startup_donate)
|
||||||
.setMessage(R.string.startup_donate_message)
|
.setMessage(R.string.startup_donate_message)
|
||||||
.setPositiveButton(R.string.startup_donate_now, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.startup_donate_now, new DialogInterface.OnClickListener() {
|
||||||
|
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 12 KiB |
@ -1,16 +0,0 @@
|
|||||||
<!--
|
|
||||||
~ Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering).
|
|
||||||
~ All rights reserved. This program and the accompanying materials
|
|
||||||
~ are made available under the terms of the GNU Public License v3.0
|
|
||||||
~ which accompanies this distribution, and is available at
|
|
||||||
~ http://www.gnu.org/licenses/gpl.html
|
|
||||||
-->
|
|
||||||
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:shape="rectangle">
|
|
||||||
<gradient
|
|
||||||
android:angle="135"
|
|
||||||
android:endColor="@color/light_green300"
|
|
||||||
android:startColor="@color/green700"
|
|
||||||
android:type="linear"/>
|
|
||||||
</shape>
|
|
@ -34,7 +34,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
||||||
android:textColor="@color/white"
|
android:textColor="@android:color/white"
|
||||||
tools:text="Account Name"/>
|
tools:text="Account Name"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/nav_header_height"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/side_nav_bar"
|
android:background="@color/grey700"
|
||||||
android:gravity="bottom"
|
android:gravity="bottom"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="@dimen/activity_margin"
|
android:padding="@dimen/activity_margin"
|
||||||
@ -21,14 +21,14 @@
|
|||||||
android:id="@+id/imageView"
|
android:id="@+id/imageView"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
android:layout_marginTop="24dp"
|
||||||
android:src="@drawable/ic_launcher"
|
android:src="@mipmap/ic_launcher"
|
||||||
tools:ignore="ContentDescription"/>
|
tools:ignore="ContentDescription"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
android:layout_marginTop="@dimen/nav_header_vertical_spacing"
|
||||||
android:text="@string/app_name"
|
android:text="@string/app_name"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
|
||||||
|
|
||||||
|
BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap/ic_launcher.png
Normal file
After Width: | Height: | Size: 45 KiB |
@ -19,9 +19,8 @@
|
|||||||
<color name="orange400">#ffa726</color>
|
<color name="orange400">#ffa726</color>
|
||||||
<color name="orangeA700">#ff6d00</color>
|
<color name="orangeA700">#ff6d00</color>
|
||||||
|
|
||||||
<color name="grey">#888888</color>
|
<color name="grey200">#eeeeee</color>
|
||||||
<color name="very_light_grey">#ebebeb</color>
|
<color name="grey700">#616161</color>
|
||||||
<color name="white">#ffffff</color>
|
|
||||||
|
|
||||||
<!-- preference-v14 uses this color for categories text -->
|
<!-- preference-v14 uses this color for categories text -->
|
||||||
<color name="preference_fallback_accent_color">@color/orangeA700</color>
|
<color name="preference_fallback_accent_color">@color/orangeA700</color>
|
||||||
@ -35,7 +34,7 @@
|
|||||||
<item name="colorPrimaryDark">@color/light_green700</item>
|
<item name="colorPrimaryDark">@color/light_green700</item>
|
||||||
<item name="colorAccent">@color/orangeA700</item>
|
<item name="colorAccent">@color/orangeA700</item>
|
||||||
<item name="android:textColorPrimary">@drawable/text_color</item>
|
<item name="android:textColorPrimary">@drawable/text_color</item>
|
||||||
<item name="android:textColorSecondary">@color/grey</item>
|
<item name="android:textColorSecondary">@color/grey700</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -65,7 +64,7 @@
|
|||||||
<!-- stepper (wizard) -->
|
<!-- stepper (wizard) -->
|
||||||
|
|
||||||
<style name="stepper_nav_bar">
|
<style name="stepper_nav_bar">
|
||||||
<item name="android:background">@color/very_light_grey</item>
|
<item name="android:background">@color/grey200</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="stepper_nav_button">
|
<style name="stepper_nav_button">
|
||||||
@ -89,11 +88,11 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="toolbar_theme">
|
<style name="toolbar_theme">
|
||||||
<item name="android:textColorSecondary">@color/white</item>
|
<item name="android:textColorSecondary">@android:color/white</item>
|
||||||
</style>
|
</style>
|
||||||
<style name="toolbar_style" parent="Widget.AppCompat.Toolbar">
|
<style name="toolbar_style" parent="Widget.AppCompat.Toolbar">
|
||||||
<item name="android:background">@color/light_green700</item>
|
<item name="android:background">@color/light_green700</item>
|
||||||
<item name="titleTextColor">@color/white</item>
|
<item name="titleTextColor">@android:color/white</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
|
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:accountType="bitfire.at.davdroid"
|
android:accountType="bitfire.at.davdroid"
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:smallIcon="@drawable/ic_launcher"
|
android:smallIcon="@mipmap/ic_launcher"
|
||||||
android:accountPreferences="@xml/sync_prefs" />
|
android:accountPreferences="@xml/sync_prefs" />
|
||||||
|