A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
feat: enhance icon clarity and update icon generation logic
CristianOlivera14d026f6f020c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f3419fe..133a4a0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,8 @@ copia la sección de la versión que se publica a la release de GitHub.- Fixed: the menu bar could miss an update and showed no app name until thefirst window switch.- Menu bar: the battery shows a charging bolt.+- The Muelle icon is sharp in the dock (its lotus outline was too thin at dock+ sizes and looked blurred), and the Start button shows the Windows logo.- Settings: options that depend on another fold away under it.- Settings → System: "Check for updates automatically" can be turned off; itis the only network request Muelle makes. New privacy policy and code signing@@ -41,6 +43,9 @@ copia la sección de la versión que se publica a la release de GitHub.- Corregido: la barra superior podía perder una actualización y no mostraba elnombre de la app hasta el primer cambio de ventana.- Barra superior: la batería muestra un rayo mientras carga.+- El icono de Muelle se ve nítido en el dock (el contorno de la flor era+ demasiado fino a ese tamaño y parecía borroso), y el botón Inicio muestra el+ logo de Windows.- Ajustes: las opciones que dependen de otra se pliegan bajo ella.- Ajustes → Sistema: «Buscar actualizaciones automáticamente» se puededesactivar; es la única conexión de red de Muelle. Nuevas páginas de políticadiff --git a/apps/dock/src/gfx.rs b/apps/dock/src/gfx.rsindex bcd4870..acf9173 100644--- a/apps/dock/src/gfx.rs+++ b/apps/dock/src/gfx.rs@@ -344,25 +344,24 @@ impl Gfx {&gradient,);- let white = dc.CreateSolidColorBrush(&rgb(1.0, 1.0, 1.0, 0.95), None)?;- let grid = size * 0.46;- let cell = grid / 3.0;- let square = cell * 0.72;- let origin = (size - grid) / 2.0 + (cell - square) / 2.0;- for row in 0..3 {- for column in 0..3 {- let left = origin + column as f32 * cell;- let top = origin + row as f32 * cell;- dc.FillRoundedRectangle(- &D2D1_ROUNDED_RECT {- rect: D2D_RECT_F {- left,- top,- right: left + square,- bottom: top + square,- },- radiusX: square * 0.28,- radiusY: square * 0.28,+ // The Windows logo: four square panes split by a thin gap+ // (0.85 of 18.5 units in its SVG), on whole pixels so the+ // edges stay sharp at every icon size.+ let white = dc.CreateSolidColorBrush(&rgb(1.0, 1.0, 1.0, 0.97), None)?;+ let logo = (size * 0.44).round();+ let gap = (logo * 0.046).round().max(1.0);+ let pane = ((logo - gap) / 2.0).floor();+ let origin = ((size - (2.0 * pane + gap)) / 2.0).round();+ for row in 0..2 {+ for column in 0..2 {+ let left = origin + column as f32 * (pane + gap);+ let top = origin + row as f32 * (pane + gap);+ dc.FillRectangle(+ &D2D_RECT_F {+ left,+ top,+ right: left + pane,+ bottom: top + pane,},&white,);diff --git a/apps/settings/src-tauri/icons/icon.ico b/apps/settings/src-tauri/icons/icon.icoindex a68f7d4..2500890 100644Binary files a/apps/settings/src-tauri/icons/icon.ico and b/apps/settings/src-tauri/icons/icon.ico differdiff --git a/assets/brand/muelle.ico b/assets/brand/muelle.icoindex a68f7d4..2500890 100644Binary files a/assets/brand/muelle.ico and b/assets/brand/muelle.ico differdiff --git a/scripts/make_icon.py b/scripts/make_icon.pyindex a89c1e6..38f3850 100644--- a/scripts/make_icon.py+++ b/scripts/make_icon.py@@ -146,12 +146,22 @@ def shrink(master: Image.Image, size: int) -> Image.Image:return Image.fromarray((out * 255 + 0.5).astype(np.uint8))+def variant(size: int, fine: Image.Image, medium: Image.Image, bold: Image.Image) -> Image.Image:+ """The master that keeps the lotus outline at least about one pixel wide."""+ if size <= 48:+ return bold+ # The dock shows the 256 px image at 60-120 px: with the fine outline+ # (0.3 px there) the lotus looked blurred and washed out.+ return medium if size <= 256 else fine++def main() -> None:fine = draw(stroke=3.2 / 1024, petal_boost=0.0)+ medium = draw(stroke=13 / 1024, petal_boost=0.07)bold = draw(stroke=22 / 1024, petal_boost=0.14)shrink(fine, 1024).save(BRAND / "muelle-1024.png", optimize=True)- frames = [shrink(fine if size > 48 else bold, size) for size in ICO_SIZES]+ frames = [shrink(variant(size, fine, medium, bold), size) for size in ICO_SIZES]frames[-1].save(BRAND / "muelle.ico",sizes=[(s, s) for s in ICO_SIZES],