diff --git a/.github/readme/banner-dark.svg b/.github/readme/banner-dark.svg new file mode 100644 index 0000000..c44c9cf --- /dev/null +++ b/.github/readme/banner-dark.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/readme/banner-light.svg b/.github/readme/banner-light.svg new file mode 100644 index 0000000..a60ec16 --- /dev/null +++ b/.github/readme/banner-light.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/README.en.md b/README.en.md index 847a512..23328f5 100644 --- a/README.en.md +++ b/README.en.md @@ -1,13 +1,24 @@

- Reims-Go + + + Reims-Go +

-

Reims-Go

+

+ Run a GPU-accelerated macOS virtual machine on Windows — prebuilt, ready out of the box.
+ Built on reims-vgpu: QEMU + WHPX virtualization, with macOS Metal calls run on your Windows GPU through Vulkan. +

- Run a GPU-accelerated macOS virtual machine on Windows — prebuilt, ready out of the box. + macOS Tahoe 26 + Windows 10 | 11 + Metal over Vulkan + release + CI + license Apache-2.0

diff --git a/README.md b/README.md index f1cfd27..f06e4ef 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,24 @@

- Reims-Go + + + Reims-Go +

-

Reims-Go

+

+ 在 Windows 上开一台带 GPU 加速的 macOS 虚拟机——免编译,开箱即用。
+ 基于 reims-vgpu:QEMU + WHPX 虚拟化,macOS 的 Metal 调用经 Vulkan 交给 Windows 显卡执行。 +

- 在 Windows 上开一台带 GPU 加速的 macOS 虚拟机——免编译,开箱即用。 + macOS Tahoe 26 + Windows 10 | 11 + Metal over Vulkan + release + CI + license Apache-2.0

diff --git a/assets/wordmark-dark.svg b/assets/wordmark-dark.svg new file mode 100644 index 0000000..39b21fb --- /dev/null +++ b/assets/wordmark-dark.svg @@ -0,0 +1 @@ + diff --git a/assets/wordmark-light.svg b/assets/wordmark-light.svg new file mode 100644 index 0000000..b2a051e --- /dev/null +++ b/assets/wordmark-light.svg @@ -0,0 +1 @@ + diff --git a/scripts/brand/wordmark.py b/scripts/brand/wordmark.py new file mode 100644 index 0000000..8c29908 --- /dev/null +++ b/scripts/brand/wordmark.py @@ -0,0 +1,173 @@ +"""Draws the Reims-Go wordmark and README banners. + +The wordmark is monoline lettering: one stroke width, round caps, built +from circles, ellipses and straight lines so it matches the rounded app +icon. Run from the repository root: + + python scripts/brand/wordmark.py + +It writes assets/wordmark-{light,dark}.svg and +.github/readme/banner-{light,dark}.svg. It needs only the standard library. +""" + +import math +import re +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +X = 72.0 # x-height, outer edge to outer edge + +INK = {"light": "#16182e", "dark": "#f4f5fa"} +MUTED = {"light": "#a3a8bf", "dark": "#5d6382"} +GRADIENT = ("#3b8cff", "#6d5dfc", "#ff7a9a") +BOLT = ("#ffd43b", "#ff9f0a") + +# The style the script writes. Variants used while choosing it: +# joiner: "dash" | "bolt" | "none"; go: "gradient" | "pill" +# dot: "accent" | "ink"; stroke: stroke width. +STYLE = dict(stroke=15.0, joiner="dash", go="gradient", dot="accent") + + +def f(v): + return ("%.2f" % v).rstrip("0").rstrip(".") + + +def arc(rx, ry, large, sweep, x, y): + return f"A{f(rx)} {f(ry)} 0 {large} {sweep} {f(x)} {f(y)}" + + +class Geo: + def __init__(self, w): + self.W, self.H = w, w / 2 + self.TOP, self.BOT, self.MID = -X + w / 2, -w / 2, -X / 2 + self.R = (X - w) / 2 + + +# Glyphs take the geometry and the left outer edge x, and return +# (outer width, [(role, svg element without paint)]). Roles pick the paint. + + +def g_r(g, x): + s, rx = x + g.H, 24 + return g.W + rx, [("ink", f'" for role, el in parts] + x += width + gap + asc, desc = X + 22 + g.H + 1.5, 22.5 + g.H + pill_el = "" + if pill: + top, bot = -X - 12, desc + 8 + x += 14 + pill_el = (f'') + asc, desc = max(asc, -top), bot + stops = "".join(f'' for i, c in enumerate(GRADIENT)) + bolt = "".join(f'' for i, c in enumerate(BOLT)) + defs = (f'{stops}' + f'{bolt}') + body = (f'{defs}{pill_el}{"".join(out)}') + return body, x, asc, desc + + +def standalone(theme, style=STYLE): + body, width, asc, desc = wordmark(theme, style) + pad = 4 + w, h = width + 2 * pad, asc + desc + 2 * pad + return (f'' + f'{body}\n') + + +def banner(theme, style=STYLE): + logo = (ROOT / "assets/logo.svg").read_text(encoding="utf-8") + icon_body = re.sub(r"^.*?]*>", "", logo, flags=re.S).rsplit("", 1)[0] + body, width, _, _ = wordmark(theme, style) + icon, gap = 180, 26 + w = icon + gap + width + 6 + return (f'' + f'{icon_body}' + f'{body}\n') + + +def main(): + for theme in ("light", "dark"): + (ROOT / f"assets/wordmark-{theme}.svg").write_text(standalone(theme), encoding="utf-8", newline="\n") + (ROOT / f".github/readme/banner-{theme}.svg").write_text(banner(theme), encoding="utf-8", newline="\n") + + +if __name__ == "__main__": + main()