Files
Password-Manager/android-client/android-res/drawable/splash_vector.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.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Icone de l'ecran de demarrage.
Sur Android 12+, le systeme l'affiche via windowSplashScreenAnimatedIcon
dans un disque de 288 unites dont il ne garantit que les 192 centrales :
le dessin occupe 103..186, bien a l'interieur.
Meme bouclier que l'icone du lanceur, a l'echelle.
ICI LA SERRURE EST PEINTE, pas evidee : la couche de demarrage est posee
a plat sur le fond du systeme, et un evidement y ferait un trou. Elle est
entierement contenue dans le bouclier blanc, donc sa couleur n'a qu'a
trancher sur du blanc - elle ne depend d'aucun autre fichier. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="288dp"
android:height="288dp"
android:viewportWidth="288"
android:viewportHeight="288">
<path
android:fillColor="#FFFFFF"
android:pathData="M144,96.3 L185.4,110.7 L185.4,144.9 C185.4,169.2 167.4,184.5 144,191.7 C120.6,184.5 102.6,169.2 102.6,144.9 L102.6,110.7 Z" />
<path
android:fillColor="#1B3563"
android:pathData="M144,134.1 m-12.6,0 a12.6,12.6 0 1,0 25.2,0 a12.6,12.6 0 1,0 -25.2,0 Z" />
<path
android:fillColor="#1B3563"
android:pathData="M138.6,144 L149.4,144 L152.3,170.1 L135.7,170.1 Z" />
</vector>