Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4204

Add monochrome drawable for android app

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.0
    • Android
    • MOODLE_402_STABLE

      With more and more devices getting Android 13, I thought it might be nice if moodle also supported themed app icons.

      In order for these to work, a monochrome drawable needs to be supplied.

      I only know how to do this for 'vanilla' Android apps, and am not sure how this would be done in the case of Moodle, since I'm not familiar with the technology behind it.

      In 'normal' android apps, the steps are as followed:

      • add a `ic_laucher_monochrome.xml` drawable to `app/src/main/res/drawable/` (in most cases just a plain white version of the original icon)
      • reference this in both the `ic_laucher.xml` and `ic_launcher_round.xml` (latter one optional) that are set in the `AndroidManifest.xml` (most of the time in `app/src/minimap-anydpi-v26/`) using `<monochrome android:drawable="@drawable/ic_launcher_monochrome/>`

      I hope this helps if anyone tries implementing this.

      I would also be willing to help, but as I already said, someone would have to point me towards some resources about how moodlemobile is built.

            pferre22 Pau Ferrer
            fischer-felix fischer-felix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.