Files
Password-Manager/android-client/android-res/drawable/ic_launcher_foreground.xml
T
r-zakarya ec8b5b3410 feat(android): a shield instead of a padlock, and the launch screen matches
The padlock was drawn in thin blue strokes on slate: at 36 px the outline muddied and the shackle vanished. A filled white shield with a punched keyhole keeps its silhouette at every size, and says protection more plainly.

The keyhole is CUT OUT rather than painted, through an even-odd fill on a single path - painting it meant keeping two files agreeing on one colour, and any drift would have read as a smudge. The launch layer is the exception: it sits flat on the system background, where a cut-out would be a hole, so there the keyhole is painted and stays entirely inside the white shield.

The launch background takes the top of the app gradient instead of slate, so the launch screen dissolves into the first screen rather than cutting against it. No gradient inside the vectors: the aapt this chain uses does not know inline gradients.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 00:02:27 +01:00

27 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Avant-plan de l'icone adaptative : un bouclier a serrure.
TOUT DOIT TENIR DANS LES 66 UNITES CENTRALES (soit 21..87) : le systeme
recadre et anime la couche autour de cette zone sure, et ce qui deborde
peut etre rogne selon le lanceur. Le dessin occupe 31..77 en x, 29..82
en y.
UN SEUL CHEMIN, EN EVENODD. La serrure n'est pas peinte de la couleur du
fond, elle est EVIDEE : le fond se voit au travers. Peinte, elle imposerait
de tenir deux fichiers d'accord sur une couleur, et le moindre ecart se
verrait comme une tache. Evidee, il n'y a rien a synchroniser.
Blanc plein plutot qu'un trait bleu : a 36 px un contour se boue, une
silhouette pleine tient. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M54,29 L77,37 L77,56 C77,69.5 67,78 54,82 C41,78 31,69.5 31,56 L31,37 Z
M54,50 m-7,0 a7,7 0 1,0 14,0 a7,7 0 1,0 -14,0 Z
M51,55.5 L57,55.5 L58.6,70 L49.4,70 Z" />
</vector>