forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Make monochrome icon optional
- Loading branch information
1 parent
1e08f58
commit e42c255
Showing
3 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
WARNING: The content of this file must always match the constant 'platform/android/export/export_plugin.cpp#ICON_XML_TEMPLATE'. | ||
--> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/icon_background"/> | ||
<foreground android:drawable="@mipmap/icon_foreground"/> | ||
<monochrome android:drawable="@mipmap/icon_monochrome"/> | ||
</adaptive-icon> |
11 changes: 11 additions & 0 deletions
11
platform/android/java/lib/res/mipmap-anydpi-v26/themed_icon.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This file is created to work alongside the icon.xml file. | ||
If the user provides a Monochrome icon in the export settings, its data will be used to overwrite the icon.xml file. | ||
We needed to create this file to get a reference for icon_monochrome. | ||
--> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/icon_background"/> | ||
<foreground android:drawable="@mipmap/icon_foreground"/> | ||
<monochrome android:drawable="@mipmap/icon_monochrome"/> | ||
</adaptive-icon> |