Repaint the launcher mark and the window icon in v5's own ink

This commit is contained in:
2026-08-07 21:24:19 +02:00
parent 7d64027972
commit d7f0bea258
5 changed files with 12 additions and 12 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
The launcher mark, and it is the same mark PhoneShell's header and the desktop titlebar draw: The launcher mark, and it is the same mark PhoneShell's header and the desktop titlebar draw:
>_ in the canvas colour on a solid accent tile. Filled rather than outlined since v2. >_ in AccentInk on a solid accent tile. Filled rather than outlined since v2.
The tile is not in this file. It is the background layer — @color/dodo_accent, see ic_launcher.xml The tile is not in this file. It is the background layer — @color/dodo_accent, see ic_launcher.xml
— and that is the whole trick of the filled design on Android: the rounding a launcher applies is — and that is the whole trick of the filled design on Android: the rounding a launcher applies is
@@ -10,10 +10,10 @@
rounded shape inside the first, visibly clipped at the corners on any device whose mask is not the rounded shape inside the first, visibly clipped at the corners on any device whose mask is not the
one it was drawn for. one it was drawn for.
#0E1220 is AccentInk from DodoSSH.Client.Shell's Theme/Palette.axaml, written out because an #FFFFFF is AccentInk from DodoSSH.Client.Shell's Theme/Palette.axaml, written out because an
Android resource cannot reference a XAML dictionary. It equals Canvas today and is named Android resource cannot reference a XAML dictionary. Through v2 it equalled Canvas and this file
separately in the palette for a reason worth keeping in mind here: this is ink on the accent, not followed it when the two parted: v5's ink on the accent is white, the way every accent surface in
the window behind it, and it follows AccentInk if the two ever part. that palette carries white, while the window behind it went its own way to #05050A.
108x108 with the artwork inside the middle 72 is the adaptive-icon contract — the outer 18 on each 108x108 with the artwork inside the middle 72 is the adaptive-icon contract — the outer 18 on each
edge is what the launcher eats for masking and parallax. The glyph spans 36.06..71.94, which is edge is what the launcher eats for masking and parallax. The glyph spans 36.06..71.94, which is
@@ -35,7 +35,7 @@
<path <path
android:pathData="M36.06,43.33 L49.91,53.57 L36.06,63.8" android:pathData="M36.06,43.33 L49.91,53.57 L36.06,63.8"
android:fillColor="#00000000" android:fillColor="#00000000"
android:strokeColor="#0E1220" android:strokeColor="#FFFFFF"
android:strokeWidth="5.4" android:strokeWidth="5.4"
android:strokeLineCap="round" android:strokeLineCap="round"
android:strokeLineJoin="round" /> android:strokeLineJoin="round" />
@@ -44,7 +44,7 @@
<path <path
android:pathData="M54,64.68 L71.94,64.68" android:pathData="M54,64.68 L71.94,64.68"
android:fillColor="#00000000" android:fillColor="#00000000"
android:strokeColor="#0E1220" android:strokeColor="#FFFFFF"
android:strokeWidth="5.4" android:strokeWidth="5.4"
android:strokeLineCap="round" /> android:strokeLineCap="round" />
@@ -11,7 +11,7 @@
Worth shipping rather than leaving out: a launcher with themed icons on and no monochrome Worth shipping rather than leaving out: a launcher with themed icons on and no monochrome
layer to use falls back to the full-colour icon, so the one app on the home screen still layer to use falls back to the full-colour icon, so the one app on the home screen still
drawn in blue is this one. drawn in its own accent is this one.
--> -->
<vector xmlns:android="http://schemas.android.com/apk/res/android" <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp" android:width="108dp"
@@ -9,12 +9,12 @@
between an Android resource and a XAML resource dictionary, so the duplication is stated rather than between an Android resource and a XAML resource dictionary, so the duplication is stated rather than
hidden. hidden.
--> -->
<color name="dodo_window">#0E1220</color> <color name="dodo_window">#05050A</color>
<!-- <!--
AccentColor from the same palette, here because the launcher icon's background layer is a colour AccentColor from the same palette, here because the launcher icon's background layer is a colour
and not a drawable. Same hand-kept duplication as above, and the same rule: if the palette moves, and not a drawable. Same hand-kept duplication as above, and the same rule: if the palette moves,
this moves with it. this moves with it.
--> -->
<color name="dodo_accent">#5B8CFF</color> <color name="dodo_accent">#5D42DE</color>
</resources> </resources>
@@ -22,8 +22,8 @@ Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
Add-Type -AssemblyName System.Drawing Add-Type -AssemblyName System.Drawing
$accent = [System.Drawing.ColorTranslator]::FromHtml('#5B8CFF') # dodo_accent / AccentColor $accent = [System.Drawing.ColorTranslator]::FromHtml('#5D42DE') # dodo_accent / AccentColor
$ink = [System.Drawing.ColorTranslator]::FromHtml('#0E1220') # AccentInk $ink = [System.Drawing.ColorTranslator]::FromHtml('#FFFFFF') # AccentInk
# Every size Windows asks for: 16 in a titlebar and a tree, 32 on the desktop, 48 in a large-icon # Every size Windows asks for: 16 in a titlebar and a tree, 32 on the desktop, 48 in a large-icon
# view, 256 for the preview pane. Shipping fewer means Windows downsamples one of these to fill # view, 256 for the preview pane. Shipping fewer means Windows downsamples one of these to fill
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB