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

android: add support for adaptive icon/launcher #2446

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

SomberNight
Copy link
Contributor

see https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

This adds a --icon-fg and a --icon-bg build option to the sdl2 bootstrap,
that can be used to specify two PNG files to be used as the foreground and background
of an adaptive icon. These will get used if API 26+ is available at runtime.
The existing --icon option to specify an icon as a single PNG file is kept, as

  • this provides backwards compatibility,
  • and even if the new options are used, it might be a good idea to set all three
    options: when running on API <26, the PNG specified via --icon gets used.

see https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

This adds a `--icon-fg` and a `--icon-bg` build option to the sdl2 bootstrap,
that can be used to specify two PNG files to be used as the foreground and background
of an adaptive icon. These will get used if API 26+ is available at runtime.
The existing `--icon` option to specify an icon as a single PNG file is kept, as
- this provides backwards compatibility,
- and even if the new options are used, it might be a good idea to set all three
  options: when running on API <26, the PNG specified via `--icon` gets used.
@tshirtman tshirtman merged commit 79f9030 into kivy:develop Jun 14, 2021
@tshirtman
Copy link
Member

Thanks!

rnixx added a commit to rnixx/python-for-android that referenced this pull request Jun 16, 2021
tshirtman pushed a commit that referenced this pull request Jun 17, 2021
…con will fail in build.py as of the changes in #2446 (#2463)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants