commit 190346259994d1c9ffeb7c0bb09b9a1ed03761e0 parent 65830dde59b22bb84633889100acba6a0705273b Author: torter <koubbamohamedrayan@gmail.com> Date: Sun, 8 Nov 2026 01:54:29 +0000 the logo goes back to the flat one from before 0.7: three plain pieces, no glass. make.py draws it now (STYLE=glass still gets the old one), and the banner is just the name in bold serif Diffstat:
38 files changed, 35 insertions(+), 54 deletions(-)
diff --git a/artwork/banner.png b/artwork/banner.png Binary files differ. diff --git a/artwork/logo.jpeg b/artwork/logo.jpeg Binary files differ. diff --git a/artwork/logo.png b/artwork/logo.png Binary files differ. diff --git a/artwork/logo.svg b/artwork/logo.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="-16 -16 544 560" role="img" aria-label="Chamesle logo"><defs><clipPath id="gring"><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z"/></clipPath><linearGradient id="gshine" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".55"/><stop offset="1" stop-color="#fff" stop-opacity=".06"/></linearGradient><filter id="gdrop" x="-20%" y="-20%" width="140%" height="150%"><feGaussianBlur in="SourceAlpha" stdDeviation="10"/><feOffset dy="12"/><feComponentTransfer><feFuncA type="linear" slope=".3"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter><linearGradient id="ggreen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#00a856" stop-opacity=".86"/><stop offset="1" stop-color="#005a2e" stop-opacity=".97"/></linearGradient><linearGradient id="gblue" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#2a12c8" stop-opacity=".86"/><stop offset="1" stop-color="#0c0057" stop-opacity=".97"/></linearGradient><linearGradient id="gred" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ff3b33" stop-opacity=".86"/><stop offset="1" stop-color="#a50d0d" stop-opacity=".97"/></linearGradient></defs><g filter="url(#gdrop)"><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z" fill="url(#ggreen)"/><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z" fill="none" stroke="#6ff0a8" stroke-width="10" stroke-opacity=".7" clip-path="url(#gring)"/><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z" fill="none" stroke="#fff" stroke-width="2" stroke-opacity=".9"/><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z" fill="none" stroke="#005a2e" stroke-width="1" stroke-opacity=".8" transform="translate(0 1)"/><path d="M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z" fill="url(#gblue)"/><path d="M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z" fill="none" stroke="#8f80ff" stroke-width="10" stroke-opacity=".7" clip-path="url(#gring)"/><path d="M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z" fill="none" stroke="#fff" stroke-width="2" stroke-opacity=".9"/><path d="M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z" fill="none" stroke="#0c0057" stroke-width="1" stroke-opacity=".8" transform="translate(0 1)"/><path d="M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z" fill="url(#gred)"/><path d="M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z" fill="none" stroke="#ffb0a0" stroke-width="10" stroke-opacity=".7" clip-path="url(#gring)"/><path d="M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z" fill="none" stroke="#fff" stroke-width="2" stroke-opacity=".9"/><path d="M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z" fill="none" stroke="#a50d0d" stroke-width="1" stroke-opacity=".8" transform="translate(0 1)"/><path d="M0 0H512V214Q256 150 0 214Z" fill="url(#gshine)" clip-path="url(#gring)"/></g></svg> -\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="-16 -16 544 560" role="img" aria-label="Chamesle logo"><defs></defs><path d="M58.60 112.58A244 244 0 0 1 453.40 112.58L356.32 183.11A124 124 0 0 0 155.68 183.11Z" fill="#00bf62"/><path d="M478.91 156.76A244 244 0 0 1 281.50 498.66L268.96 379.32A124 124 0 0 0 369.28 205.56Z" fill="#1800ac"/><path d="M230.50 498.66A244 244 0 0 1 33.09 156.76L142.72 205.56A124 124 0 0 0 243.04 379.32Z" fill="#ff3131"/></svg> +\ No newline at end of file diff --git a/artwork/logo/export.py b/artwork/logo/export.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 -# needs fonts/Nunito.ttf (google fonts, OFL) -# glass logo into every png the repo ships, plus the light banner -import gi, os, importlib.util +# the flat logo into every png the repo ships, plus the banner. STYLE=glass for the 0.7 one +import gi, os, importlib.util, subprocess gi.require_version('Rsvg', '2.0') from gi.repository import Rsvg import cairo @@ -11,10 +10,14 @@ HERE = os.path.dirname(os.path.abspath(__file__)) REPO = os.path.join(HERE, '..', '..') spec = importlib.util.spec_from_file_location('m', os.path.join(HERE, 'make.py')) m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m) +STYLE = os.environ.get('STYLE', 'flat') # icons: tight box, a shadow only where there is room for one def svgtext(n): - s = m.svg('glass', n, 'g') + s = m.svg(STYLE, n, 'g') + if STYLE == 'flat': + # no shadow to make room for: the same margin all round, like the first logo.png + return s.replace('viewBox="-16 -16 544 560"', 'viewBox="-6 -6 524 524"') if n <= 32: s = s.replace(' filter="url(#gdrop)"', '').replace('viewBox="-16 -16 544 560"', 'viewBox="-4 -4 520 520"') else: @@ -33,63 +36,35 @@ def png(n, out=None): im.save(out) return im -def font(sz, w): - f = ImageFont.truetype(os.path.join(HERE, 'fonts', 'Nunito.ttf'), sz) - f.set_variation_by_name(w) - return f +def font(name, sz): + path = subprocess.run(['fc-match', '-f', '%{file}', name], capture_output=True, text=True).stdout + return ImageFont.truetype(path, sz) -def vgrad(w, h, stops): - g = Image.new('RGBA', (w, h)) - px = g.load() - for y in range(h): - t = y / max(h - 1, 1) - for i in range(len(stops) - 1): - if stops[i][0] <= t <= stops[i + 1][0]: - a, b = stops[i], stops[i + 1] - k = (t - a[0]) / max(b[0] - a[0], 1e-6) - c = tuple(int(a[1][j] + (b[1][j] - a[1][j]) * k) for j in range(3)) - break - for x in range(w): - px[x, y] = c + (255,) - return g - -# ring, "Chamesle" in shiny dark gel letters, LINUX in blue, and the wet floor +# ring, then "Chamesle" in bold serif and LINUX spaced out under it, black on nothing def banner(scale=2): ring = png(116 * scale) - big, sub = font(80 * scale, b'ExtraBold'), font(21 * scale, b'SemiBold') + big, sub = font('Liberation Serif:bold', 76 * scale), font('Liberation Sans:bold', 20 * scale) word = 'Chamesle' bb = big.getbbox(word) tw, th = bb[2], bb[3] - mask = Image.new('L', (tw, th)); ImageDraw.Draw(mask).text((0, 0), word, font=big, fill=255) - text = vgrad(tw, th, [(0, (74, 88, 104)), (.52, (28, 38, 50)), (.53, (11, 17, 24)), (1, (44, 56, 70))]) - text.putalpha(mask) gap = 22 * scale W = ring.width + gap + tw + 8 * scale - ty = int(ring.height * .12) - H = max(ring.height, ty + th + int(sub.size * 1.5)) - top = Image.new('RGBA', (W, H)) - top.alpha_composite(ring, (0, (H - ring.height) // 2)) + ty = int(ring.height * .1) + H = max(ring.height, ty + th + int(sub.size * 1.6)) + out = Image.new('RGBA', (W, H)) + out.alpha_composite(ring, (0, (H - ring.height) // 2)) tx = ring.width + gap - top.alpha_composite(text, (tx, ty)) - d = ImageDraw.Draw(top) + d = ImageDraw.Draw(out) + d.text((tx, ty), word, font=big, fill=(0, 0, 0, 255)) x = tx + 4 * scale for ch in 'LINUX': - d.text((x, ty + th + 2 * scale), ch, font=sub, fill=(61, 142, 224, 255)) - x += sub.getlength(ch) + 6 * scale - fl = 40 * scale - out = Image.new('RGBA', (W, H + fl + 4 * scale)) - out.alpha_composite(top, (0, 0)) - r = top.transpose(Image.FLIP_TOP_BOTTOM).crop((0, 0, W, fl)) - fade = Image.new('L', (W, fl)) - for y in range(fl): - ImageDraw.Draw(fade).line([(0, y), (W, y)], fill=int(55 * (1 - y / fl) ** 2)) - r.putalpha(ImageChops.darker(r.getchannel('A'), fade)) - out.alpha_composite(r, (0, H + 4 * scale)) + d.text((x, ty + th + 4 * scale), ch, font=sub, fill=(0, 0, 0, 255)) + x += sub.getlength(ch) + 9 * scale return out if __name__ == '__main__': os.makedirs(os.path.join(HERE, 'out'), exist_ok=True) - open(os.path.join(REPO, 'artwork', 'logo.svg'), 'w').write(m.svg('glass', 512, 'g')) + open(os.path.join(REPO, 'artwork', 'logo.svg'), 'w').write(m.svg(STYLE, 512, 'g')) for n in (16, 22, 24, 32, 48, 64, 128, 256): for d in ('overlay/usr/share/icons/hicolor/%dx%d/apps/chamesle-start.png', 'tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/%dx%d/apps/chamesle-start.png', diff --git a/artwork/logo/make.py b/artwork/logo/make.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# the chamesle ring, three 2007 finishes. same geometry as artwork/logo.png: +# the chamesle ring: flat like it started, and three 2007 finishes. same geometry as artwork/logo.png: # three 108 degree pieces, 12 degree gaps at the bottom and upper corners, hole half the ring import math, os, sys @@ -83,12 +83,18 @@ def chrome(p): o.append('</g>') return ''.join(d), ''.join(o) +# the first one, back again from 0.8: three plain pieces, no shine, no shadow +FLAT = {'green': '#00bf62', 'blue': '#1800ac', 'red': '#ff3131'} + +def flat(p): + return '', ''.join('<path d="%s" fill="%s"/>' % (seg(a, b), FLAT[n]) for n, a, b, *_ in SEGS) + def svg(kind, size, p, extra=''): - defs, body = {'gel': gel, 'glass': glass, 'chrome': chrome}[kind](p) + defs, body = {'flat': flat, 'gel': gel, 'glass': glass, 'chrome': chrome}[kind](p) return ('<svg xmlns="http://www.w3.org/2000/svg" width="%s" height="%s" viewBox="-16 -16 544 560" role="img" aria-label="Chamesle logo">' '<defs>%s</defs>%s%s</svg>' % (size, size, defs, body, extra)) if __name__ == '__main__': out = sys.argv[1] if len(sys.argv) > 1 else '.' - for k in ('gel', 'glass', 'chrome'): + for k in ('flat', 'gel', 'glass', 'chrome'): open(os.path.join(out, 'logo-%s.svg' % k), 'w').write(svg(k, 512, k[0])) diff --git a/docs/img/banner.png b/docs/img/banner.png Binary files differ. diff --git a/docs/img/logo.png b/docs/img/logo.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/128x128/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/128x128/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/16x16/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/16x16/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/24x24/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/24x24/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/256x256/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/256x256/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/32x32/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/32x32/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/48x48/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/48x48/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/icons/hicolor/64x64/apps/chamesle-start.png b/overlay/usr/share/icons/hicolor/64x64/apps/chamesle-start.png Binary files differ. diff --git a/overlay/usr/share/live-installer/logo.png b/overlay/usr/share/live-installer/logo.png Binary files differ. diff --git a/overlay/usr/share/live-installer/slideshow/logo.png b/overlay/usr/share/live-installer/slideshow/logo.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/chamesle/greeter-logo.png b/tools/pkg/chamesle-artwork/files/usr/share/chamesle/greeter-logo.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/128x128/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/128x128/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/16x16/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/16x16/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/22x22/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/22x22/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/24x24/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/24x24/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/256x256/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/256x256/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/32x32/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/32x32/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/48x48/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/48x48/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/64x64/places/start-here.png b/tools/pkg/chamesle-artwork/files/usr/share/icons/Chamesle/64x64/places/start-here.png Binary files differ. diff --git a/tools/pkg/chamesle-artwork/recipe b/tools/pkg/chamesle-artwork/recipe @@ -1,6 +1,6 @@ name=chamesle-artwork version=0.7.0 -rel=2 +rel=3 desc="Chamesle wallpapers, icon theme and login screen" url=https://chamesle.org license=GPL-3.0-or-later diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/128x128/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/128x128/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/16x16/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/16x16/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/22x22/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/22x22/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/24x24/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/24x24/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/256x256/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/256x256/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/32x32/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/32x32/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/48x48/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/48x48/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/64x64/apps/chamesle-start.png b/tools/pkg/chamesle-kde/files/usr/share/icons/hicolor/64x64/apps/chamesle-start.png Binary files differ. diff --git a/tools/pkg/chamesle-kde/recipe b/tools/pkg/chamesle-kde/recipe @@ -1,6 +1,6 @@ name=chamesle-kde version=0.7.0 -rel=2 +rel=3 desc="The Chamesle look for KDE Plasma: the Matterhorn, Breeze with a dark taskbar, Inter and the Chamesle start button" url=https://chamesle.org license=GPL-3.0-or-later diff --git a/tools/pkg/chamesle-plymouth/files/usr/share/plymouth/themes/chamesle/logo.png b/tools/pkg/chamesle-plymouth/files/usr/share/plymouth/themes/chamesle/logo.png Binary files differ. diff --git a/tools/pkg/chamesle-plymouth/recipe b/tools/pkg/chamesle-plymouth/recipe @@ -1,6 +1,6 @@ name=chamesle-plymouth version=0.8.0 -rel=2 +rel=3 desc="The Chamesle boot screen: the logo with a spinner under it, and a blue screen when the system can't start" url=https://chamesle.org license=GPL-3.0-or-later