feat(icons): one mark, drawn twice — tinted for the shell, coloured for the dock

Reported: "应用的图标问题,要和当前的单色图标保持一致设计" — and clarified:
consistency of *design*, but colour in the panel and the system.

So consistency comes from geometry and filling rules, not from the palette.
`scripts/build-icons.py` now defines the ring once (OUTER/INNER/HUB/GAP/
PLUS_ARM/PLUS_BAR) and emits both marks from it: the tray keeps the alpha-only
flat form because the shell tints it, and the app icon keeps the same figure
in three flat colours drawn from the UI itself — `#FFB25C` wedges and the
`#f04f24` accent the app's own buttons use, on an espresso tile that is also
what shows through the plus punched out of the hub.

What the old icon actually got wrong was not that it was colourful. It was a
gradient tile with a radial shine, a drop shadow and six pastel wedge tints,
which is a different visual language from a crisp flat mark no matter what
hue it wears. Hence the rule: at most three flat colours, and no gradient,
gloss, shadow or per-wedge tint.

The menu-bar icon is byte-for-byte unchanged; the generator reproduces the
committed PNG exactly, so this commit alters only the coloured surfaces. The
hub-inside-a-lighter-ring orientation is deliberately not inverted, because
flipping which end of the mark is dark would read to existing users as a
different product rather than a redraw.

`tauri icon` regenerates the whole tracked set, and the .icns entry set and
.ico size ladder come out identical to the committed ones, so nothing in the
packaging contracts moves.

Co-Authored-By: Codex <noreply@openai.com>
main
mula.liu 2026-11-19 21:27:01 +08:00
parent e1fb18bc6a
commit 8a4c9d2b0d
55 changed files with 254 additions and 118 deletions

View File

@ -1,30 +1,13 @@
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="bg" x1="120" y1="92" x2="884" y2="930" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFB25C"/>
<stop offset="0.48" stop-color="#FF6B35"/>
<stop offset="1" stop-color="#C66BFF"/>
</linearGradient>
<radialGradient id="shine" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(344 276) rotate(46) scale(760)">
<stop stop-color="white" stop-opacity="0.32"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</radialGradient>
<filter id="shadow" x="86" y="110" width="852" height="852" filterUnits="userSpaceOnUse">
<feDropShadow dx="0" dy="24" stdDeviation="28" flood-color="#7A3018" flood-opacity="0.28"/>
</filter>
</defs>
<rect width="1024" height="1024" rx="228" fill="url(#bg)"/>
<rect width="1024" height="1024" rx="228" fill="url(#shine)"/>
<g filter="url(#shadow)">
<circle cx="512" cy="512" r="326" fill="#FFF4EA" fill-opacity="0.96"/>
<path d="M512 186A326 326 0 0 1 808.5 358L604.4 476A145 145 0 0 0 512 367V186Z" fill="#FFE9D5"/>
<path d="M808.5 358A326 326 0 0 1 808.5 666L604.4 548A145 145 0 0 0 604.4 476L808.5 358Z" fill="#FFDCC4"/>
<path d="M808.5 666A326 326 0 0 1 512 838V657A145 145 0 0 0 604.4 548L808.5 666Z" fill="#FFE3CE"/>
<path d="M512 838A326 326 0 0 1 215.5 666L419.6 548A145 145 0 0 0 512 657V838Z" fill="#FFD7C0"/>
<path d="M215.5 666A326 326 0 0 1 215.5 358L419.6 476A145 145 0 0 0 419.6 548L215.5 666Z" fill="#FFE9D5"/>
<path d="M215.5 358A326 326 0 0 1 512 186V367A145 145 0 0 0 419.6 476L215.5 358Z" fill="#FFF0E2"/>
<circle cx="512" cy="512" r="157" fill="#FFF9F4"/>
<circle cx="512" cy="512" r="120" fill="#FF6B35"/>
<path d="M512 420V604M420 512H604" stroke="#FFF9F4" stroke-width="46" stroke-linecap="round"/>
<rect x="102" y="102" width="820" height="820" rx="182.58" fill="#37221A"/>
<g fill="#FFB25C">
<path d="M526.79 186.34 A326.00 326.00 0 0 1 786.64 336.36 L663.77 414.94 A180.16 180.16 0 0 0 520.17 332.03 Z"/>
<path d="M801.43 361.97 A326.00 326.00 0 0 1 801.43 662.03 L671.95 594.91 A180.16 180.16 0 0 0 671.95 429.09 Z"/>
<path d="M786.64 687.64 A326.00 326.00 0 0 1 526.79 837.66 L520.17 691.97 A180.16 180.16 0 0 0 663.77 609.06 Z"/>
<path d="M497.21 837.66 A326.00 326.00 0 0 1 237.36 687.64 L360.23 609.06 A180.16 180.16 0 0 0 503.83 691.97 Z"/>
<path d="M222.57 662.03 A326.00 326.00 0 0 1 222.57 361.97 L352.05 429.09 A180.16 180.16 0 0 0 352.05 594.91 Z"/>
<path d="M237.36 336.36 A326.00 326.00 0 0 1 497.21 186.34 L503.83 332.03 A180.16 180.16 0 0 0 360.23 414.94 Z"/>
</g>
<circle cx="512" cy="512" r="108.09" fill="#F04F24"/>
<path d="M445.08 512H578.92M512 445.08V578.92" stroke="#37221A" stroke-width="24.02"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,242 @@
#!/usr/bin/env python3
"""Draw every Shift icon from one mark.
scripts/build-icons.py # tray PNG + assets/icon.svg
scripts/build-icons.py --tauri # ... then the full platform set
Both icons are the same drawing — a six-wedge ring around a hub with a plus
punched out of it, which is the radial ring the app itself paints — and they
differ only in what is allowed to be on screen behind it. The shell tints the
tray mark, so that file carries no colour at all: its only real channel is
alpha, because macOS renders a *template* image black or white to match the
menu bar and the Windows notification area simply shrinks whatever it is
given. At 16-18 px the old colour wheel was a blob, which is what "use a
black/white system icon" was about. The app icon is the same mark with its
colour turned on, because a Dock tile is not tinted by anything and needs a
ground of its own; it is flat and warm, and deliberately not a second
gradient, since the layered rainbow treatment is what made the two icons look
like they belonged to different products.
The geometry lives once, in the constants below. The tray file is rasterised
here; the app icon is written as an SVG master that `tauri icon` turns into
the .icns / .ico / Windows tiles / android / ios set, which is worth using
over hand-rolling: its icon.icns and icon.ico carry the same size ladders the
repository already ships, verified against the committed files.
Only Pillow is needed for the default run.
"""
import argparse
import math
import pathlib
import subprocess
import sys
from PIL import Image, ImageDraw
# --- the mark, in units where the wedge ring's outer radius is 38 -----------
# These are the numbers the ring is specified in, not a size: each consumer
# scales them. Changing GAP or PLUS_BAR changes both icons together, which is
# the whole point of this file.
OUTER = 38.0 # wedge ring, outer radius
INNER = 21.0 # wedge ring, inner radius
HUB = 12.6 # solid centre disc the plus is cut out of
GAP = 5.2 # degrees of air between wedges
PLUS_ARM = 7.8 # half-length of the cross cut out of the hub
PLUS_BAR = 2.8 # half-thickness of that cross
WHEEL = 2 * OUTER # the mark's own diameter in these units
# --- tray ------------------------------------------------------------------
TRAY_EDGE = 88 # tray-icon renders the image 18 pt tall, so this is > 4x
TRAY_SS = 4 # supersample on top of TRAY_EDGE for smooth wedge edges
TRAY_TINT = (128, 128, 128) # unread by macOS; only a base for Windows
# --- app icon --------------------------------------------------------------
MASTER = 1024 # the master canvas `tauri icon` downsamples from
TILE = 820 # tile edge; the committed icon.png is 410 of 512, i.e. 0.801
TILE_CORNER = TILE * 228 / 1024 # same 0.222 corner ratio as the committed set
WHEEL_R = 326 # wheel radius in master units
WEDGE_INK = "#FFB25C" # the warm amber the old master already carried
HUB_INK = "#F04F24" # the accent every button in the app is painted with
TILE_INK = "#37221A" # the espresso tile the plus is punched out of
ROOT = pathlib.Path(__file__).resolve().parent.parent
def ring_segment(center, radius_out, radius_in, start, stop):
"""Corners of a filled annular sector, outer arc forward then inner back."""
steps = max(2, int(stop - start) + 1)
arc = lambda radius, index: (
center + radius * math.cos(math.radians(start + (stop - start) * index / steps)),
center + radius * math.sin(math.radians(start + (stop - start) * index / steps)),
)
points = [arc(radius_out, i) for i in range(steps + 1)]
points += [arc(radius_in, i) for i in range(steps, -1, -1)]
return points
def punch_cross(draw, center, scale):
"""Clear the plus out of whatever has been drawn, leaving the ground to show."""
width = int(PLUS_BAR * scale)
draw.line(
[center - PLUS_ARM * scale, center, center + PLUS_ARM * scale, center],
fill=0,
width=width,
)
draw.line(
[center, center - PLUS_ARM * scale, center, center + PLUS_ARM * scale],
fill=0,
width=width,
)
def render_tray_mask():
"""The mark as an alpha mask at TRAY_EDGE, drawn at TRAY_SS for one smooth pass."""
canvas = TRAY_EDGE * TRAY_SS
center = canvas / 2
mask = Image.new("L", (canvas, canvas), 0)
draw = ImageDraw.Draw(mask)
for wedge in range(6):
start = -90 + wedge * 60 + GAP / 2
stop = -90 + (wedge + 1) * 60 - GAP / 2
draw.polygon(
ring_segment(center, OUTER * TRAY_SS, INNER * TRAY_SS, start, stop), fill=255
)
hub = HUB * TRAY_SS
draw.ellipse([center - hub, center - hub, center + hub, center + hub], fill=255)
punch_cross(draw, center, TRAY_SS)
return mask.resize((TRAY_EDGE, TRAY_EDGE), Image.LANCZOS)
def _shown(path: pathlib.Path) -> str:
# Repo-relative when it is inside the repo; `--tray-out` may point anywhere.
path = path.resolve()
try:
return str(path.relative_to(ROOT))
except ValueError:
return str(path)
def build_tray(path: pathlib.Path) -> None:
icon = Image.new("RGBA", (TRAY_EDGE, TRAY_EDGE), TRAY_TINT + (0,))
icon.putalpha(render_tray_mask())
path.parent.mkdir(parents=True, exist_ok=True)
path.write_bytes(_png_bytes(icon))
print(f"wrote {_shown(path)} ({TRAY_EDGE}x{TRAY_EDGE}, alpha-only monochrome mark)")
def _png_bytes(image: Image.Image) -> bytes:
import io
buffer = io.BytesIO()
image.save(buffer, format="PNG")
return buffer.getvalue()
def build_master_svg() -> str:
"""The app icon: the tray mark, with its colour turned on.
What makes the two icons the same drawing is the geometry and the rule
about how it is filled — six wedges, the same angular gaps, the same ring
and hub radii, the plus punched out of the hub as negative space, and flat
solid fills throughout. Colour is not the thing they have to agree about,
and the tray is the one that cannot have any: macOS tints a template image
and the Windows notification area just shrinks what it is given. A Dock
tile sits on the user's wallpaper with nothing behind it, so it needs a
ground of its own and gets to be warm.
Three flat colours and nothing else. No gradient, no drop shadow, no
radial shine and no per-wedge pastel tint, because that layered treatment
is a different visual language and is exactly why the old rainbow tile and
the crisp new mark read as two unrelated products. The hues are the app's
own rather than invented for the icon: `#FFB25C` is the tone the previous
master already carried and `#F04F24` is the accent every button in the
interface is painted with, and keeping the darker warm disc inside the
lighter ring preserves which end of the mark is which, so the Dock does not
invert on upgrade.
The plus is drawn in the tile's own colour instead of cut through to
transparency: on a Dock tile the two read identically, and a real hole
would be filled in by the platform wherever `tauri icon` composes the iOS
and Android layers.
The wheel is sized to 652 of the 820 tile because that is the ratio the
icon this replaces was drawn at (r=326 in an 820 tile), so the new mark
holds the same optical weight in the Dock rather than arriving larger.
"""
scale = WHEEL_R / OUTER
center = MASTER / 2
offset = (MASTER - TILE) / 2
bar = PLUS_BAR * scale
arm = PLUS_ARM * scale
wedges = []
for wedge in range(6):
start = -90 + wedge * 60 + GAP / 2
stop = -90 + (wedge + 1) * 60 - GAP / 2
outer_start = _point(center, OUTER * scale, start)
outer_end = _point(center, OUTER * scale, stop)
inner_start = _point(center, INNER * scale, stop)
inner_end = _point(center, INNER * scale, start)
wedges.append(
f' <path d="M{outer_start} A{OUTER * scale:.2f} {OUTER * scale:.2f} 0 0 1 '
f'{outer_end} L{inner_start} A{INNER * scale:.2f} {INNER * scale:.2f} 0 0 0 '
f'{inner_end} Z"/>'
)
return (
f'<svg width="{MASTER}" height="{MASTER}" viewBox="0 0 {MASTER} {MASTER}" '
'fill="none" xmlns="http://www.w3.org/2000/svg">\n'
f" <rect x=\"{offset:.0f}\" y=\"{offset:.0f}\" width=\"{TILE}\" height=\"{TILE}\" "
f'rx="{TILE_CORNER:.2f}" fill="{TILE_INK}"/>\n'
f' <g fill="{WEDGE_INK}">\n' + "\n".join(wedges) + "\n </g>\n"
f' <circle cx="{center:.0f}" cy="{center:.0f}" r="{HUB * scale:.2f}" fill="{HUB_INK}"/>\n'
f' <path d="M{center - arm:.2f} {center:.0f}H{center + arm:.2f}'
f'M{center:.0f} {center - arm:.2f}V{center + arm:.2f}" '
f'stroke="{TILE_INK}" stroke-width="{bar:.2f}"/>\n'
"</svg>\n"
)
def _point(center, radius, angle):
return (
f"{center + radius * math.cos(math.radians(angle)):.2f} "
f"{center + radius * math.sin(math.radians(angle)):.2f}"
)
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--tray-out",
type=pathlib.Path,
default=ROOT / "src-tauri" / "icons" / "tray-template.png",
)
parser.add_argument("--master-out", type=pathlib.Path, default=ROOT / "assets" / "icon.svg")
parser.add_argument(
"--tauri",
action="store_true",
help="also run `tauri icon` on the master to regenerate the platform set",
)
args = parser.parse_args()
build_tray(args.tray_out)
args.master_out.parent.mkdir(parents=True, exist_ok=True)
args.master_out.write_text(build_master_svg(), encoding="utf-8")
print(f"wrote {_shown(args.master_out)} (flat three-colour master)")
if args.tauri:
# Full-bleed would be wrong: `tauri icon` scales the master rather than
# padding it, so the tile has to sit inside the canvas the way it does
# in the committed set. That is why the rect above is inset.
subprocess.run(
["pnpm", "tauri", "icon", str(args.master_out)], check=True, cwd=ROOT
)
# The brand mark in the window title bars is the same file at 26 px, so
# it is a copy of the icon rather than a second drawing to keep in step.
brand = ROOT / "public" / "shift-icon.png"
brand.write_bytes((ROOT / "src-tauri" / "icons" / "icon.png").read_bytes())
print(f"wrote {_shown(brand)} (same mark, shown at 26 px in the title bar)")
return 0
if __name__ == "__main__":
sys.exit(main())

View File

@ -1,90 +0,0 @@
#!/usr/bin/env python3
"""Redraw src-tauri/icons/tray-template.png, the mark the system tray shows.
scripts/build-tray-icon.py [--out PATH]
The tray is drawn by the shell, not by Shift, and at 16-18 px the app's colour
wheel is a blob: macOS tints a *template* image black or white to match the menu
bar, and the Windows notification area simply shrinks whatever it is given. So
this file is a flat single-tint mark whose only real channel is alpha — the same
shape as the radial ring the app itself draws, so the two read as one product.
Only Pillow is needed. The mark is drawn at 4x and averaged down so the wedge
edges and the cross arms stay smooth at every size the shell asks for.
"""
import argparse
import math
import pathlib
from PIL import Image, ImageDraw
SIZE = 88 # source edge in px; tray-icon renders the image 18 pt tall
SS = 4 # supersample on top of SIZE
CANVAS = SIZE * SS
CENTER = CANVAS / 2
OUTER = 38.0 # wedge ring, outer radius
INNER = 21.0 # wedge ring, inner radius
HUB = 12.6 # solid centre disc
GAP = 5.2 # degrees of air between wedges
PLUS_ARM = 7.8 # half-length of the cross cut out of the hub
PLUS_BAR = 2.8 # half-thickness of that cross
TINT = (128, 128, 128) # unread by macOS, ignored except as a base for Windows
def ring_segment(radius_out, radius_in, start, stop):
"""Corners of a filled annular sector, outer arc forward then inner back."""
steps = max(2, int(stop - start) + 1)
points = [
(CENTER + radius_out * math.cos(math.radians(a)), CENTER + radius_out * math.sin(math.radians(a)))
for a in [start + (stop - start) * i / steps for i in range(steps + 1)]
]
points += [
(CENTER + radius_in * math.cos(math.radians(a)), CENTER + radius_in * math.sin(math.radians(a)))
for a in [start + (stop - start) * i / steps for i in range(steps, -1, -1)]
]
return points
def render_mask() -> Image.Image:
mask = Image.new("L", (CANVAS, CANVAS), 0)
draw = ImageDraw.Draw(mask)
for wedge in range(6):
start = -90 + wedge * 60 + GAP / 2
stop = -90 + (wedge + 1) * 60 - GAP / 2
draw.polygon(ring_segment(OUTER * SS, INNER * SS, start, stop), fill=255)
draw.ellipse(
[CENTER - HUB * SS, CENTER - HUB * SS, CENTER + HUB * SS, CENTER + HUB * SS], fill=255
)
width = int(PLUS_BAR * SS)
draw.line(
[CENTER - PLUS_ARM * SS, CENTER, CENTER + PLUS_ARM * SS, CENTER], fill=0, width=width
)
draw.line(
[CENTER, CENTER - PLUS_ARM * SS, CENTER, CENTER + PLUS_ARM * SS], fill=0, width=width
)
return mask.resize((SIZE, SIZE), Image.LANCZOS)
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"--out",
type=pathlib.Path,
default=pathlib.Path(__file__).resolve().parent.parent
/ "src-tauri"
/ "icons"
/ "tray-template.png",
)
args = parser.parse_args()
icon = Image.new("RGBA", (SIZE, SIZE), TINT + (0,))
icon.putalpha(render_mask())
args.out.parent.mkdir(parents=True, exist_ok=True)
icon.save(args.out)
print(f"wrote {args.out} ({SIZE}x{SIZE}, alpha-only monochrome mark)")
if __name__ == "__main__":
main()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 845 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 941 B

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -226,7 +226,8 @@ pub fn refresh_tray_language(app: &AppHandle) -> Result<(), String> {
}
/// The wheel mark, drawn flat and alpha-only so the shell can tint it.
/// Regenerate with `scripts/build-tray-icon.py`.
/// Regenerate with `scripts/build-icons.py`, which draws the app icon from the
/// same geometry so the two cannot drift apart.
const TRAY_ICON: &[u8] = include_bytes!("../icons/tray-template.png");
fn setup_tray(app: &AppHandle) -> tauri::Result<()> {