Skip to content
πŸ“± La Capitaine icons on Android!
Python Kotlin
Branch: master
Clone or download
Latest commit a2277e2 Nov 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Update .idea/codeStyles/Project.xml Nov 4, 2019
app Hide app from launcher Nov 5, 2019
gradle/wrapper Initial commit Nov 4, 2019
images Update screenshots Nov 5, 2019
la-capitaine-icon-theme @ 6d0dae5 Add la-capitaine-icon-theme submodule Nov 4, 2019
.gitignore Remove values/iconpack.xml (not required) Nov 5, 2019
.gitmodules Add la-capitaine-icon-theme submodule Nov 4, 2019
LICENSE Add LICENSE Nov 4, 2019
NOTES.md Update NOTES.md Nov 5, 2019
README.md Icon theme -> Icon pack Nov 5, 2019
build.gradle Initial commit Nov 4, 2019
gradle.properties
gradlew Initial commit Nov 4, 2019
gradlew.bat Initial commit Nov 4, 2019
res.py Remove category from drawable.xml Nov 5, 2019
res.yml Add VLC icon Nov 5, 2019
settings.gradle Initial commit Nov 4, 2019

README.md

La Capitaine Android

Icon pack for Android using the La Capitaine icons.

Icon List (1) Icon List (2) Icon List (3)

This is still in a super early stage and currently only works with Lawnchair launcher. Support for more launchers should be as simple as adding a few <intent-filter>s to AndroidManifest.xml, see here.

Naturally I will add icons for the apps I'm personally using first as that's the most straightforward way of making progess - I can directly test it on my device. A few popular Google and messenger apps are already included as well.

Any help is highly appreciated!

Requirements

Installation

There's no release of this app on the Google Play Store or F-Droid yet, although that might happen in the future.

Run python3 res.py build which will create the files xml/appfilter.xml and xml/drawable.xml as well as rendering all used SVG icons (from la-capitaine-icon-theme/apps/scalable) to PNG files.

Open the project in Android Studio, compile it and install it on your phone or emulator.

Make sure to select Launch: Nothing in the run configuration as the app has no launcher intent filter.

To remove the files created by the build script run python3 res.py clean.

Development

To add missing icons, you'll need:

  • The app package name
  • The name of the activity that's missing an icon (usually the main activity)
  • An icon from la-capitaine-icon-theme/apps/scalable that should be applied

Use a tool like Assist Mapper to obtain these details (this app is for assistant button re-mapping, but it shows package and activity names and highlights the main activity).

A new app entry in res.yml looks like this:

apps:
  - package: com.example.app
    activity: com.example.app.activities.MainActivity
    icon: example_icon

If example_icon doesn't exist yet, add it:

icons:
  example_icon: example-icon.svg

This way an icon that's being used by multiple apps has only be included once and general icons that don't belong to a specific app can be included as well.

Note that the activity domain doesn't necessarily match the package domain. Please keep the entries sorted alphabetically by package name.

Now, do the steps from the Installation section again. You're done!

Try restarting your launcher application if new icons don't appear immediately.

To Do

  • Currently, since icon files are rendered and saved per activity, there might be duplicates.

Authors

  • Linus Groh (@linusg) - Initial work on La Capitaine Android
  • Keefer Rourke (@keeferrourke) - Creator of the La Capitaine Icon Theme

License

This project is licensed under the GPLv3 license - see LICENSE file for details.

You can’t perform that action at this time.