Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an adaptive icon as launcher icon #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
android:allowBackup="true"
android:icon="@mipmap/ramseslogo"
android:label="@string/app_name"
android:roundIcon="@mipmap/ramseslogo_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:exported="true">
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/res/drawable/ramseslogo_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="1"
android:viewportHeight="1"
>
<path
android:pathData="M0,0h1v1h-1z"
android:fillColor="@color/logoBackground"
/>
</vector>

14 changes: 14 additions & 0 deletions app/src/main/res/drawable/ramseslogo_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="192"
android:viewportHeight="192"
>
<path
android:pathData="M57,51h13v88h-13zm26,0h51v45h-34l34,34v9h-9l-42,-42v-13h39v-21h-39z"
android:fillColor="@color/logoForeground"
/>
</vector>

11 changes: 3 additions & 8 deletions app/src/main/res/mipmap-anydpi-v26/ramseslogo.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 BMW AG
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ramseslogo_background"/>
<foreground android:drawable="@mipmap/ramseslogo_foreground"/>
<monochrome android:drawable="@drawable/ramseslogo_foreground" />
<background android:drawable="@drawable/ramseslogo_background" />
<foreground android:drawable="@drawable/ramseslogo_foreground" />
</adaptive-icon>
11 changes: 0 additions & 11 deletions app/src/main/res/mipmap-anydpi-v26/ramseslogo_round.xml

This file was deleted.

Binary file removed app/src/main/res/mipmap-hdpi/ramseslogo.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ramseslogo_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ramseslogo.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ramseslogo_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ramseslogo.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ramseslogo_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ramseslogo.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ramseslogo_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ramseslogo.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ramseslogo_round.png
Binary file not shown.
3 changes: 3 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
file, You can obtain one at https://mozilla.org/MPL/2.0/.
-->
<resources>
<color name="logoForeground">#fff</color>
<color name="logoBackground">#000</color>

<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/values/ramseslogo_background.xml

This file was deleted.