chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit 135b65fd8a851801f6df5415e6ef234325455068
parent 8e8d4bb2d1584286ec87061696dd1340e8e5617f
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Tue, 27 Oct 2026 15:08:22 -0400

chamesle glass 0.7: glass frames, panels and glossy buttons for kde, play, ranni, xfce, cinnamon and mate, oxygen icons with our own on top. gnome and astro keep their look

Diffstat:
Mtools/pkg/chamesle-artwork/files/etc/lightdm/slick-greeter.conf | 4++--
Mtools/pkg/chamesle-artwork/recipe | 4++--
Mtools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override | 8++++----
Mtools/pkg/chamesle-cinnamon/recipe | 6+++---
Atools/pkg/chamesle-glass-icons/files/firefox.png | 0
Atools/pkg/chamesle-glass-icons/files/make.py | 435+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/orb/16.png | 0
Atools/pkg/chamesle-glass-icons/files/orb/22.png | 0
Atools/pkg/chamesle-glass-icons/files/orb/24.png | 0
Atools/pkg/chamesle-glass-icons/files/orb/32.png | 0
Atools/pkg/chamesle-glass-icons/files/orb/48.png | 0
Atools/pkg/chamesle-glass-icons/files/orb/64.png | 0
Atools/pkg/chamesle-glass-icons/files/parts/battery.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/bin-full.svg | 28++++++++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/bin.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/box.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/calculator.svg | 22++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/calendar.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/camera.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/clipboard.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/diskusage.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/drive.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/drivers.svg | 20++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/editor.svg | 21+++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/ethernet.svg | 21+++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/files.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/gamepad.svg | 12++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/headphones.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/help.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/installer.svg | 20++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/keyboard.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/keys.svg | 13+++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/mail.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/monitor.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/mouse.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/music.svg | 25+++++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/partitions.svg | 21+++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/pc.svg | 22++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/phone.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/pics.svg | 23+++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/pkgimport.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/printer.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/screenshot.svg | 19+++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/sdcard.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/settings.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/speaker.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/store.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/term.svg | 20++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/tweaks.svg | 18++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/updater.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/usb.svg | 16++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/video.svg | 19+++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/viewer.svg | 18++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/volume.svg | 15+++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/webcam.svg | 17+++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/wine.svg | 14++++++++++++++
Atools/pkg/chamesle-glass-icons/files/parts/zip.svg | 18++++++++++++++++++
Atools/pkg/chamesle-glass-icons/files/sheet.py | 36++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-glass-icons/recipe | 15+++++++++++++++
Atools/pkg/chamesle-glass/files/make.py | 813+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atools/pkg/chamesle-glass/recipe | 14++++++++++++++
Mtools/pkg/chamesle-kde/files/etc/xdg/kdeglobals | 4++--
Mtools/pkg/chamesle-kde/files/etc/xdg/kwinrc | 4++--
Mtools/pkg/chamesle-kde/files/etc/xdg/plasmarc | 2+-
Mtools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults | 6+++---
Mtools/pkg/chamesle-kde/recipe | 6+++---
Mtools/pkg/chamesle-mate/files/usr/share/glib-2.0/schemas/50_chamesle-mate.gschema.override | 6+++---
Mtools/pkg/chamesle-mate/recipe | 6+++---
Mtools/pkg/chamesle-play/files/usr/share/plasma/look-and-feel/org.chamesle.play.desktop/contents/defaults | 6+++---
Mtools/pkg/chamesle-play/recipe | 2+-
Mtools/pkg/chamesle-ranni/files/etc/xdg/ranni/kwinrc | 2++
Mtools/pkg/chamesle-ranni/files/usr/share/plasma/look-and-feel/org.chamesle.ranni.desktop/contents/defaults | 4++--
Mtools/pkg/chamesle-ranni/recipe | 2+-
Mtools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml | 3++-
Mtools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml | 4++--
Mtools/pkg/chamesle-xfce/recipe | 6+++---
76 files changed, 2134 insertions(+), 41 deletions(-)

diff --git a/tools/pkg/chamesle-artwork/files/etc/lightdm/slick-greeter.conf b/tools/pkg/chamesle-artwork/files/etc/lightdm/slick-greeter.conf @@ -3,8 +3,8 @@ background=/usr/share/backgrounds/chamesle/matterhorn.jpg draw-user-backgrounds=false draw-grid=false logo=/usr/share/chamesle/greeter-logo.png -theme-name=Fluent-Dark -icon-theme-name=Papirus-Dark +theme-name=Chamesle-Glass +icon-theme-name=Chamesle-Glass font-name=Inter 11 cursor-theme-name=Adwaita clock-format=%H:%M diff --git a/tools/pkg/chamesle-artwork/recipe b/tools/pkg/chamesle-artwork/recipe @@ -1,6 +1,6 @@ name=chamesle-artwork -version=0.2.0 -rel=3 +version=0.7.0 +rel=0 desc="Chamesle wallpapers, icon theme and login screen" url=https://chamesle.org license=GPL-3.0-or-later diff --git a/tools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override b/tools/pkg/chamesle-cinnamon/files/usr/share/glib-2.0/schemas/50_chamesle-cinnamon.gschema.override @@ -4,8 +4,8 @@ picture-uri='file:///usr/share/backgrounds/chamesle/matterhorn.jpg' picture-options='zoom' [org.cinnamon.desktop.interface] -gtk-theme='Fluent-Light' -icon-theme='Chamesle' +gtk-theme='Chamesle-Glass' +icon-theme='Chamesle-Glass' cursor-theme='Adwaita' font-name='Inter 10' @@ -16,11 +16,11 @@ monospace-font-name='Noto Sans Mono 10' document-font-name='Inter 10' [org.cinnamon.desktop.wm.preferences] -theme='Fluent-Light' +theme='Chamesle-Glass' titlebar-font='Inter Semi-Bold 10' [org.cinnamon.theme] -name='Fluent-Light' +name='Chamesle-Glass' [org.cinnamon.settings-daemon.plugins.xsettings] antialiasing='grayscale' diff --git a/tools/pkg/chamesle-cinnamon/recipe b/tools/pkg/chamesle-cinnamon/recipe @@ -1,6 +1,6 @@ name=chamesle-cinnamon -version=0.4.1 -rel=1 +version=0.7.0 +rel=0 desc="The Chamesle look for Cinnamon: wallpaper, theme settings, login screen, and fixes for its settings" url=https://chamesle.org license=GPL-3.0-or-later @@ -8,7 +8,7 @@ source= makedeps="" # gnome-keyring: cinnamon looks for saved wi-fi passwords there before asking for one, and without it the # lookup fails, no password box shows up and the network says the password is wrong -depends="chamesle-artwork gnome-keyring" +depends="chamesle-glass chamesle-glass-icons chamesle-artwork gnome-keyring" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-glass-icons/files/firefox.png b/tools/pkg/chamesle-glass-icons/files/firefox.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/make.py b/tools/pkg/chamesle-glass-icons/files/make.py @@ -0,0 +1,435 @@ +#!/usr/bin/env python3 +# chamesle glass icons: builds the icon theme from glossy parts +# usage: make.py OUTDIR (OUTDIR/Chamesle-Glass gets made) +import os, sys, shutil + +HERE = os.path.dirname(os.path.abspath(__file__)) + +def svg(body, defs=''): + return ('<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">\n' + '<defs>' + COMMON + defs + '</defs>\n' + body + '\n</svg>\n') + +def lin(id, *stops, x2=0, y2=1): + s = ''.join('<stop offset="%s" stop-color="%s"%s/>' % (o, c, '' if a is None else ' stop-opacity="%s"' % a) + for o, c, a in [(st + (None,))[:3] for st in stops]) + return '<linearGradient id="%s" x1="0" y1="0" x2="%s" y2="%s">%s</linearGradient>' % (id, x2, y2, s) + +def rad(id, *stops, cx=.5, cy=.5, r=.5): + s = ''.join('<stop offset="%s" stop-color="%s"%s/>' % (o, c, '' if a is None else ' stop-opacity="%s"' % a) + for o, c, a in [(st + (None,))[:3] for st in stops]) + return '<radialGradient id="%s" cx="%s" cy="%s" r="%s">%s</radialGradient>' % (id, cx, cy, r, s) + +COMMON = (rad('shadow', (0, '#000', .45), (1, '#000', 0)) + + lin('gloss', (0, '#fff', .85), (1, '#fff', .05)) + + lin('glossd', (0, '#fff', .55), (.55, '#fff', 0), x2=1) + + lin('paper', (0, '#ffffff'), (1, '#dde5ec')) + + lin('metal', (0, '#ffffff'), (.5, '#b9c1ca'), (1, '#6f7a86')) + + '<filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="2.5"/></filter>' + + '<filter id="soft"><feGaussianBlur stdDeviation="4"/></filter>') + +def shadow(cx=64, cy=114, rx=52, ry=7): + return '<ellipse cx="%d" cy="%d" rx="%d" ry="%d" fill="url(#shadow)"/>' % (cx, cy, rx, ry) + +# a white glyph with a dark edge, readable on any colour +def glyph(d, edge='#0b3866', w=5, fill='none'): + return ('<path d="%s" fill="%s" stroke="%s" stroke-width="%g" stroke-linecap="round" stroke-linejoin="round"/>' + '<path d="%s" fill="%s" stroke="#fff" stroke-width="%g" stroke-linecap="round" stroke-linejoin="round"/>' + % (d, 'none' if fill == 'none' else edge, edge, w + 3, d, fill, w)) + +# glossy bead, the base for round things +def bead(c0, c1, c2, cx=64, cy=62, r=46, inner=''): + d = rad('b', (0, c0), (.55, c1), (1, c2), cy=.3, r=.75) + b = (shadow(cx, cy + r + 6, r, 7) + + '<circle cx="%d" cy="%d" r="%d" fill="url(#b)" stroke="#0d1a2a" stroke-opacity=".7" stroke-width="1.5"/>' % (cx, cy, r) + + inner + + '<ellipse cx="%d" cy="%d" rx="%d" ry="%d" fill="url(#gloss)" opacity=".8"/>' % (cx, cy - r * .48, r * .72, r * .4)) + return b, d + +# folders + +FOLDER_BACK = '<path d="M12 26a6 6 0 0 1 6-6h30l8 8h56a6 6 0 0 1 6 6v68a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6z" fill="url(#fb)" stroke="#0b3866" stroke-width="1.5"/>' +FOLDER_FRONT = ('<path d="M8 52a6 6 0 0 1 6-6h100a6 6 0 0 1 6 6l-4 50a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6z" fill="url(#ff)" stroke="#0b3866" stroke-width="1.5"/>' + '<path d="M11 52a4 4 0 0 1 4-4h98a4 4 0 0 1 4 4l-1.6 20c-34 7-68 7-103 0z" fill="url(#gloss)" opacity=".75"/>' + '<path d="M14 49h100" stroke="#fff" stroke-opacity=".9" stroke-width="1.5" stroke-linecap="round"/>') +FOLDER_DEFS = (lin('fb', (0, '#3b9be0'), (1, '#11508f')) + + lin('ff', (0, '#8fdcff'), (.45, '#3fa8ee'), (1, '#1667b8'))) +PAPERS = ('<rect x="22" y="32" width="86" height="50" rx="3" fill="url(#paper)" stroke="#9aa9b6" transform="rotate(-4 64 57)"/>' + '<rect x="26" y="38" width="80" height="46" rx="3" fill="url(#paper)" stroke="#9aa9b6" transform="rotate(3 64 61)"/>') + +def folder(emblem='', papers=True, open=False): + front = FOLDER_FRONT + if open: + front = ('<path d="M4 58a6 6 0 0 1 6-6h104a6 6 0 0 1 6 7l-8 43a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6z" fill="url(#ff)" stroke="#0b3866" stroke-width="1.5"/>' + '<path d="M7 58a4 4 0 0 1 4-4h102a4 4 0 0 1 4 4.5l-2.5 14c-34 7-70 7-104 0z" fill="url(#gloss)" opacity=".75"/>') + return svg(shadow(64, 114, 54, 8) + FOLDER_BACK + (PAPERS if papers else '') + front + emblem, FOLDER_DEFS) + +EMBLEMS = { + 'documents': glyph('M54 66h14l8 8v26H54zM68 66v8h8M59 82h12M59 90h12'), + 'download': glyph('M64 64v24M53 78l11 11 11-11M50 98h28'), + 'music': glyph('M60 96V72l16-4v22', w=4.5) + '<circle cx="56" cy="96" r="5" fill="#fff" stroke="#0b3866" stroke-width="2"/><circle cx="72" cy="90" r="5" fill="#fff" stroke="#0b3866" stroke-width="2"/>', + 'pictures': glyph('M48 68h32v28H48z') + '<path d="M51 93l9-10 6 6 4-4 8 8z" fill="#fff"/><circle cx="72" cy="75" r="3" fill="#fff"/>', + 'videos': glyph('M58 70l18 12-18 12z', fill='#fff'), + 'desktop': glyph('M48 68h32v20H48zM58 96h12M64 88v8'), + 'templates': ('<path d="M52 64h18l8 8v28H52z" fill="none" stroke="#0b3866" stroke-width="7" stroke-linejoin="round"/>' + '<path d="M52 64h18l8 8v28H52z" fill="#fff" fill-opacity=".25" stroke="#fff" stroke-width="4" stroke-dasharray="6 4" stroke-linejoin="round"/>' + + glyph('M64 76v14M57 83h14', w=4)), + 'publicshare': glyph('M56 76a5 5 0 1 0 0.1 0M72 76a5 5 0 1 0 0.1 0M46 98c2-10 18-10 20 0M62 98c2-10 18-10 20 0'), + 'remote': glyph('M64 66a16 16 0 1 0 0.1 0M48 82h32M64 66c7 6 7 26 0 32M64 66c-7 6-7 26 0 32', w=3.5), + 'home': ('<path d="M46 78v22h36V78" fill="url(#wall)" stroke="#2b5d8a" stroke-width="1.5"/>' + '<rect x="58" y="86" width="12" height="14" rx="1.5" fill="#3a8fd6" stroke="#2b5d8a"/>' + '<path d="M40 80l24-20 24 20" fill="url(#roof)" stroke="#8c3a10" stroke-width="2" stroke-linejoin="round"/>' + '<path d="M44 76l20-16.5 20 16.5" fill="none" stroke="#fff" stroke-opacity=".6" stroke-width="1.5" stroke-linejoin="round"/>'), + 'git': glyph('M56 64v34M56 88c0-12 16-8 16-20', w=4) + ''.join('<circle cx="%d" cy="%d" r="5" fill="#fff" stroke="#0b3866" stroke-width="2.5"/>' % p for p in [(56, 62), (56, 98), (72, 66)]), + 'games': glyph('M50 76h28a8 8 0 0 1 8 8v4a6 6 0 0 1-11 3l-3-4H56l-3 4a6 6 0 0 1-11-3v-4a8 8 0 0 1 8-8zM56 80v8M52 84h8'), +} +HOME_DEFS = lin('roof', (0, '#ffb36b'), (1, '#d9601f')) + lin('wall', (0, '#ffffff'), (1, '#dfe9f2')) + +def emblem_folder(name): + s = folder(EMBLEMS[name], papers=False) + return s.replace('</defs>', HOME_DEFS + '</defs>') if name == 'home' else s + +# pages, for file types + +PAGE = ('<path d="M28 8h52l24 24v80a6 6 0 0 1-6 6H28a6 6 0 0 1-6-6V14a6 6 0 0 1 6-6z" fill="url(#paper)" stroke="#6f7c89" stroke-width="1.5"/>' + '<path d="M80 8v18a6 6 0 0 0 6 6h18" fill="#e6edf3" stroke="#6f7c89" stroke-width="1.5" stroke-linejoin="round"/>' + '<path d="M24 14a6 6 0 0 1 6-4h48v14C60 26 40 40 24 60z" fill="url(#glossd)" opacity=".7"/>') + +def lines(x0=34, x1=94, y0=44, n=7, gap=9, col='#8fa0b0'): + return ''.join('<path d="M%d %dh%d" stroke="%s" stroke-width="3" stroke-linecap="round"/>' % (x0, y0 + i * gap, (x1 - x0) - (14 if i % 3 == 2 else 0), col) for i in range(n)) + +def band(c0, c1, label='', y=86): + d = lin('band', (0, c0), (.5, c1), (1, c0)) + t = ('<text x="63" y="%d" text-anchor="middle" font-family="DejaVu Sans, sans-serif" font-weight="700" font-size="17" fill="#fff" stroke="#000" stroke-opacity=".25" stroke-width=".8">%s</text>' % (y + 18, label)) if label else '' + return ('<rect x="22" y="%d" width="82" height="26" fill="url(#band)" stroke="#000" stroke-opacity=".35"/>' % y + + '<rect x="22" y="%d" width="82" height="11" fill="#fff" opacity=".35"/>' % y + t), d + +def page(inner='', defs=''): + return svg(shadow(64, 118, 44, 6) + PAGE + inner, defs) + +def typed(label, c0, c1, inner=None): + b, d = band(c0, c1, label) + return page((lines(n=4) if inner is None else inner) + b, d) + +# pictures that go on pages or stand alone + +PHOTO_DEFS = (lin('sky', (0, '#2f9bf0'), (1, '#c8efff')) + lin('hill', (0, '#8fe35a'), (1, '#2f8a2a')) + + lin('hill2', (0, '#b7f07a'), (1, '#4fae36')) + rad('sun', (0, '#fffbe0'), (1, '#ffc21f'), cx=.4, cy=.4, r=.6)) + +def photo(x, y, w, h): + return ('<clipPath id="pc"><rect x="%d" y="%d" width="%d" height="%d"/></clipPath>' % (x, y, w, h) + + '<g clip-path="url(#pc)"><rect x="%d" y="%d" width="%d" height="%d" fill="url(#sky)"/>' % (x, y, w, h) + + '<circle cx="%d" cy="%d" r="%d" fill="url(#sun)"/>' % (x + w * .75, y + h * .28, h * .15) + + '<path d="M%d %dc%d %d %d %d %d 0s%d %d %d %dv%dH%dz" fill="url(#hill2)"/>' % (x - 4, y + h * .76, w * .22, -h * .24, w * .45, -h * .2, w * .65, w * .38, h * .1, w * .45, -h * .03, h * .4, x - 4) + + '<path d="M%d %dc%d %d %d %d %d -3s%d 3 %d 0v%dH%dz" fill="url(#hill)"/>' % (x - 4, y + h * .9, w * .25, -h * .2, w * .55, -h * .2, w * .77, w * .27, w * .32, h * .3, x - 4) + + '</g><rect x="%d" y="%d" width="%d" height="%d" fill="none" stroke="#5d6873"/>' % (x, y, w, h)) + +DISC_DEFS = rad('disc', (.2, '#f4f6f8'), (.9, '#c9d1d9'), (1, '#9aa5b0')) +def disc(cx=64, cy=60, r=48): + return ('<clipPath id="dc"><circle cx="%d" cy="%d" r="%d"/></clipPath>' % (cx, cy, r) + + '<circle cx="%d" cy="%d" r="%d" fill="url(#disc)" stroke="#5d6873" stroke-width="1.5"/>' % (cx, cy, r) + + '<g clip-path="url(#dc)" filter="url(#soft)" opacity=".55" transform="translate(%d %d)">' % (cx - 64, cy - 60) + + '<path d="M64 60L24 10h32z" fill="#ff5fa2"/><path d="M64 60l48-30v28z" fill="#4fd0ff"/>' + '<path d="M64 60l42 48H78z" fill="#ffe15a"/><path d="M64 60L14 84V62z" fill="#7cff8a"/></g>' + + '<circle cx="%d" cy="%d" r="%d" fill="#e8edf2" fill-opacity=".8" stroke="#8a96a2"/>' % (cx, cy, r // 3) + + '<circle cx="%d" cy="%d" r="%d" fill="#fff" stroke="#6f7a86"/>' % (cx, cy, r // 8) + + '<path d="M%d %dc10-22 %d-26 %d-6" fill="none" stroke="#fff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round"/>' % (cx - r * .78, cy - r * .42, r * 1.3, r * 1.6)) + +def note_bubble(cx=92, cy=90, r=26): + return ('<circle cx="%d" cy="%d" r="%d" fill="url(#note)" stroke="#7d200c" stroke-width="1.5"/>' % (cx, cy, r) + + '<path d="M%d %dV%dl14-4v20" fill="none" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>' % (cx - 4, cy + 12, cy - 12) + + '<ellipse cx="%d" cy="%d" rx="5.5" ry="4.5" fill="#fff"/><ellipse cx="%d" cy="%d" rx="5.5" ry="4.5" fill="#fff"/>' % (cx - 8, cy + 12, cx + 6, cy + 6) + + '<ellipse cx="%d" cy="%d" rx="%d" ry="%d" fill="url(#gloss)" opacity=".75"/>' % (cx, cy - r * .55, r * .72, r * .38)) +NOTE_DEFS = lin('note', (0, '#ffb08a'), (.5, '#f0602e'), (1, '#b8361a')) + +def film(x, y, w, h): + holes = ''.join('<rect x="%d" y="%d" width="6" height="5" rx="1" fill="#e8edf2"/><rect x="%d" y="%d" width="6" height="5" rx="1" fill="#e8edf2"/>' % (x + 4 + i * 11, y + 3, x + 4 + i * 11, y + h - 8) for i in range(int((w - 4) // 11))) + return ('<rect x="%d" y="%d" width="%d" height="%d" rx="3" fill="url(#filmg)" stroke="#000"/>' % (x, y, w, h) + holes + + '<rect x="%d" y="%d" width="%d" height="%d" fill="url(#screen)"/>' % (x + 4, y + 11, w - 8, h - 22)) +FILM_DEFS = lin('filmg', (0, '#4a525c'), (1, '#0d0f12')) + lin('screen', (0, '#1f7fd6'), (.6, '#4fc3e8'), (1, '#bff0d0')) + +# the chamesle ring: three thick pieces with gaps, like the logo +def ring(cx=64, cy=64, R=30, r=15): + import math + def pt(a, rr): + return cx + rr * math.cos(math.radians(a)), cy + rr * math.sin(math.radians(a)) + def piece(a0, a1, col): + o0, o1, i0, i1 = pt(a0, R), pt(a1, R), pt(a0, r), pt(a1, r) + return ('<path d="M%.1f %.1fA%d %d 0 0 1 %.1f %.1fL%.1f %.1fA%d %d 0 0 0 %.1f %.1fz" fill="%s" stroke="#fff" stroke-width="1.2" stroke-linejoin="round"/>' + % (o0[0], o0[1], R, R, o1[0], o1[1], i1[0], i1[1], r, r, i0[0], i0[1], col)) + return piece(-143, -37, '#00bf63') + piece(-27, 84, '#1a00a8') + piece(96, 207, '#ff3333') + +# hand-drawn ones live in parts/*.svg + +def part(name): + with open(os.path.join(HERE, 'parts', name + '.svg')) as f: + return f.read() + +# icons: name -> svg text + +ICONS = {} +def add(cat, name, text): + ICONS[(cat, name)] = text + +def build(): + add('places', 'folder', folder()) + add('places', 'folder-open', folder(open=True)) + for e in EMBLEMS: + add('places', 'folder-' + e, emblem_folder(e)) + add('places', 'user-trash', part('bin')) + add('places', 'user-trash-full', part('bin-full')) + b, d = bead('#ffffff', '#e2f1fa', '#7fa9c8', inner=ring(64, 62, 32, 16)) + add('places', 'start-here', svg(b, d)) + b, d = bead('#bdf1ff', '#2f9be0', '#0f4f96', inner=glyph('M64 26a36 36 0 1 0 0.1 0M28 62h72M64 26c14 10 14 62 0 72M64 26c-14 10-14 62 0 72', w=3.5)) + add('places', 'network-workgroup', svg(b, d)) + + add('devices', 'computer', part('pc')) + add('devices', 'drive-harddisk', part('drive')) + add('devices', 'drive-removable-media', part('usb')) + add('devices', 'media-optical', svg(shadow(64, 114, 50, 7) + disc(64, 60, 48), DISC_DEFS)) + add('devices', 'media-flash', part('sdcard')) + add('devices', 'phone', part('phone')) + add('devices', 'printer', part('printer')) + add('devices', 'input-keyboard', part('keyboard')) + add('devices', 'input-mouse', part('mouse')) + add('devices', 'input-gaming', part('gamepad')) + add('devices', 'camera-photo', part('camera')) + add('devices', 'camera-web', part('webcam')) + add('devices', 'audio-headphones', part('headphones')) + add('devices', 'audio-speakers', part('speaker')) + add('devices', 'battery', part('battery')) + b, d = bead('#a8ecff', '#2f8de4', '#0f4f96', inner=glyph('M52 46l24 24-12 12V38l12 12-24 24', w=4.5)) + add('devices', 'bluetooth', svg(b, d)) + b, d = bead('#bdf1ff', '#2f9be0', '#0f4f96', inner=glyph('M36 56a40 40 0 0 1 56 0M44 66a28 28 0 0 1 40 0M53 76a14 14 0 0 1 22 0M64 86h.1', w=5)) + add('devices', 'network-wireless', svg(b, d)) + add('devices', 'network-wired', part('ethernet')) + + add('mimetypes', 'text-x-generic', page(lines())) + add('mimetypes', 'text-x-script', page('<rect x="30" y="38" width="66" height="62" rx="3" fill="#0b1820"/>' + + '<path d="M38 50l8 6-8 6M50 64h14M38 76h40M38 86h28" stroke="#5cff86" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>')) + add('mimetypes', 'text-x-source', page( + '<path d="M46 52l-10 12 10 12M80 52l10 12-10 12M70 46l-14 36" stroke="#2f7fe0" stroke-width="5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>' + lines(y0=94, n=2))) + b, d = bead('#bdf1ff', '#2f9be0', '#0f4f96', cx=64, cy=72, r=26, inner=glyph('M64 46a26 26 0 1 0 0.1 0M38 72h52M64 46c10 7 10 45 0 52M64 46c-10 7-10 45 0 52', w=2.5)) + add('mimetypes', 'text-html', page(lines(n=2) + b, d)) + add('mimetypes', 'application-pdf', typed('PDF', '#e0452c', '#b8301c')) + add('mimetypes', 'image-x-generic', page(photo(32, 40, 62, 50), PHOTO_DEFS)) + add('mimetypes', 'audio-x-generic', page(note_bubble(63, 70, 26), NOTE_DEFS)) + add('mimetypes', 'video-x-generic', page(film(30, 46, 66, 48), FILM_DEFS)) + add('mimetypes', 'package-x-generic', part('box')) + add('mimetypes', 'application-x-archive', part('zip')) + add('mimetypes', 'application-x-executable', page( + '<g transform="translate(26 32) scale(.58)">' + part('settings').split('</defs>')[1].replace('</svg>', '') + '</g>', rad('eye', (0, '#bff0ff'), (.55, '#2f8de4'), (1, '#0f4f96'), cy=.3, r=.75))) + add('mimetypes', 'application-x-cd-image', svg(shadow(64, 114, 50, 7) + disc(64, 60, 48) + + '<rect x="70" y="72" width="44" height="28" rx="4" fill="url(#ib)" stroke="#0b3866"/><text x="92" y="92" text-anchor="middle" font-family="DejaVu Sans, sans-serif" font-weight="700" font-size="15" fill="#fff">ISO</text>', + DISC_DEFS + lin('ib', (0, '#8fdcff'), (.5, '#2f8de4'), (1, '#1667b8')))) + add('mimetypes', 'font-x-generic', page('<text x="62" y="86" text-anchor="middle" font-family="DejaVu Serif, serif" font-size="46" fill="url(#ink)" stroke="#0b2c5a" stroke-width="1">Aa</text>', lin('ink', (0, '#5fb0ff'), (1, '#0f4f96')))) + add('mimetypes', 'x-office-document', typed('', '#3f8fe8', '#1d5fb4', lines(y0=40, n=5))) + add('mimetypes', 'x-office-spreadsheet', page(''.join( + '<rect x="%d" y="%d" width="15" height="9" fill="%s" stroke="#7fb58a"/>' % (32 + c * 16, 40 + r * 10, '#c9ecd0' if r == 0 else '#ffffff') for r in range(6) for c in range(4)) + + band('#55c060', '#2a9a3a')[0], band('#55c060', '#2a9a3a')[1])) + add('mimetypes', 'x-office-presentation', page( + '<rect x="32" y="40" width="62" height="42" fill="#fff4ea" stroke="#d98a4a"/><path d="M40 74V60M52 74V52M64 74V64M76 74V48" stroke="#f08a2e" stroke-width="7"/>' + + band('#f6a04a', '#d9601f')[0], band('#f6a04a', '#d9601f')[1])) + + add('apps', 'files', part('files')) + add('apps', 'terminal', part('term')) + add('apps', 'store', part('store')) + add('apps', 'settings', part('settings')) + add('apps', 'music', part('music')) + add('apps', 'pictures', part('pics')) + for p in ['editor', 'viewer', 'calculator', 'screenshot', 'monitor', 'diskusage', 'partitions', 'video', + 'updater', 'drivers', 'wine', 'installer', 'pkgimport', 'tweaks', 'help', 'keys', 'volume', 'clipboard', 'mail', 'calendar']: + add('apps', p, part(p)) + b, d = bead('#bdf1ff', '#2f9be0', '#0f4f96', inner=glyph('M64 38h.1M58 52h6v34M56 86h16', w=6)) + add('apps', 'info', svg(b, d)) + add('apps', 'archive', part('zip')) + add('apps', 'display', part('pc')) + add('apps', 'power', part('battery')) + add('apps', 'bluetooth', ICONS[('devices', 'bluetooth')]) + add('apps', 'network', ICONS[('devices', 'network-wireless')]) + add('apps', 'printer', ICONS[('devices', 'printer')]) + add('apps', 'menu', ICONS[('places', 'start-here')]) + +# every name an app or file type looks for, pointing at one drawing +ALIASES = { + ('places', 'folder'): 'inode-directory folder-blue default-folder', + ('places', 'folder-home'): 'user-home folder-home default-user-home', + ('places', 'folder-desktop'): 'user-desktop', + ('places', 'folder-download'): 'folder-downloads', + ('places', 'folder-pictures'): 'folder-images', + ('places', 'folder-videos'): 'folder-video folder-movies', + ('places', 'folder-remote'): 'folder-network network-server', + ('places', 'user-trash'): 'trash-empty user-trash-empty', + ('places', 'user-trash-full'): 'trash-full', + ('places', 'start-here'): 'start-here-kde distributor-logo chamesle xfce4-whiskermenu whiskermenu cinnamon-menu mate-menu', + ('places', 'network-workgroup'): 'network-workgroup folder-network network', + ('devices', 'computer'): 'computer-laptop video-display display preferences-desktop-display', + ('devices', 'drive-harddisk'): 'drive-harddisk-system drive-harddisk-solidstate drive-multidisk', + ('devices', 'drive-removable-media'): 'drive-removable-media-usb media-removable drive-removable-media-usb-pendrive', + ('devices', 'media-optical'): 'drive-optical media-optical-cd media-optical-dvd', + ('devices', 'phone'): 'smartphone phone-android', + ('devices', 'input-gaming'): 'applications-games', + ('devices', 'camera-photo'): 'camera', + ('devices', 'battery'): 'battery-full', + ('devices', 'network-wireless'): 'network-wireless-connected', + ('mimetypes', 'text-x-generic'): 'text-plain text-x-readme text-x-log text-x-markdown', + ('mimetypes', 'text-x-script'): 'application-x-shellscript text-x-sh application-x-perl text-x-python text-x-python3', + ('mimetypes', 'text-x-source'): 'text-x-c text-x-csrc text-x-chdr text-x-c++src text-x-rust text-x-go text-x-java application-javascript text-javascript application-json text-css text-x-makefile', + ('mimetypes', 'text-html'): 'application-xhtml+xml text-xml application-xml', + ('mimetypes', 'image-x-generic'): 'image-png image-jpeg image-gif image-webp image-bmp image-tiff image-svg+xml image-x-xcf image-heif image-avif', + ('mimetypes', 'audio-x-generic'): 'audio-mpeg audio-x-flac audio-flac audio-ogg audio-x-vorbis+ogg audio-x-wav audio-mp4 audio-x-opus+ogg audio-aac', + ('mimetypes', 'video-x-generic'): 'video-mp4 video-x-matroska video-webm video-x-msvideo video-quicktime video-mpeg video-ogg', + ('mimetypes', 'package-x-generic'): 'application-x-apk application-vnd.debian.binary-package application-x-deb application-x-rpm application-x-redhat-package-manager application-vnd.flatpak application-vnd.flatpak.ref application-x-flatpak', + ('mimetypes', 'application-x-archive'): 'application-zip application-x-tar application-x-compressed-tar application-x-xz-compressed-tar application-x-zstd-compressed-tar application-x-bzip-compressed-tar application-gzip application-x-gzip application-x-xz application-x-zstd application-x-7z-compressed application-x-rar application-vnd.rar', + ('mimetypes', 'application-x-executable'): 'application-x-sharedlib application-x-object application-x-msdownload application-x-ms-dos-executable application-x-desktop', + ('mimetypes', 'application-x-cd-image'): 'application-x-iso9660-image application-x-raw-disk-image', + ('mimetypes', 'font-x-generic'): 'font-ttf font-otf application-x-font-ttf font-woff', + ('mimetypes', 'x-office-document'): 'application-vnd.oasis.opendocument.text application-msword application-vnd.openxmlformats-officedocument.wordprocessingml.document application-rtf text-rtf', + ('mimetypes', 'x-office-spreadsheet'): 'application-vnd.oasis.opendocument.spreadsheet application-vnd.ms-excel application-vnd.openxmlformats-officedocument.spreadsheetml.sheet text-csv', + ('mimetypes', 'x-office-presentation'): 'application-vnd.oasis.opendocument.presentation application-vnd.ms-powerpoint application-vnd.openxmlformats-officedocument.presentationml.presentation', + ('apps', 'files'): 'system-file-manager org.kde.dolphin dolphin org.xfce.thunar thunar Thunar org.gnome.Nautilus nautilus nemo caja file-manager', + ('apps', 'terminal'): 'utilities-terminal org.kde.konsole konsole org.xfce.terminal xfce4-terminal org.gnome.Console org.gnome.Terminal gnome-terminal mate-terminal terminal xterm', + ('apps', 'store'): 'system-software-install org.chamesle.Store chamesle-store plasmadiscover org.kde.discover flatpak-discover org.gnome.Software gnome-software', + ('apps', 'settings'): 'preferences-system systemsettings org.kde.systemsettings org.gnome.Settings gnome-control-center org.xfce.settings.manager xfce4-settings-manager mate-control-center cinnamon-settings preferences-desktop', + ('apps', 'music'): 'org.kde.elisa elisa multimedia-audio-player audio-player rhythmbox', + ('apps', 'pictures'): 'org.kde.gwenview gwenview org.xfce.ristretto ristretto org.gnome.Loupe org.gnome.eog eog eom image-viewer multimedia-photo-viewer', + ('apps', 'editor'): 'accessories-text-editor org.kde.kate kate org.xfce.mousepad mousepad org.gnome.TextEditor gnome-text-editor xed pluma text-editor', + ('apps', 'viewer'): 'org.kde.okular okular org.gnome.Evince evince org.gnome.Papers xreader atril document-viewer x-office-document-viewer', + ('apps', 'calculator'): 'accessories-calculator org.kde.kcalc kcalc org.gnome.Calculator gnome-calculator mate-calc galculator', + ('apps', 'screenshot'): 'applets-screenshooter org.kde.spectacle spectacle org.xfce.screenshooter xfce4-screenshooter org.gnome.Screenshot gnome-screenshot accessories-screenshot', + ('apps', 'monitor'): 'utilities-system-monitor org.kde.plasma-systemmonitor plasma-systemmonitor ksysguard org.gnome.SystemMonitor gnome-system-monitor mate-system-monitor org.xfce.taskmanager xfce4-taskmanager', + ('apps', 'diskusage'): 'org.kde.filelight filelight baobab org.gnome.baobab', + ('apps', 'partitions'): 'partitionmanager org.kde.partitionmanager gparted org.gnome.DiskUtility gnome-disks drive-harddisk-system', + ('apps', 'video'): 'io.github.celluloid_player.Celluloid celluloid multimedia-video-player totem vlc mpv', + ('apps', 'updater'): 'chamesle-updater system-software-update software-update-available update-manager', + ('apps', 'drivers'): 'chamesle-drivers jockey', + ('apps', 'wine'): 'chamesle-wine wine wine-config', + ('apps', 'installer'): 'jiggity system-installer live-installer calamares', + ('apps', 'pkgimport'): 'pkgimport pkgimport-gui application-x-deb-import', + ('apps', 'tweaks'): 'org.gnome.tweaks gnome-tweak-tool preferences-desktop-tweaks', + ('apps', 'help'): 'help-browser help-contents org.kde.khelpcenter yelp org.gnome.Yelp', + ('apps', 'keys'): 'kwalletmanager org.kde.kwalletmanager seahorse org.gnome.seahorse.Application dialog-password', + ('apps', 'volume'): 'multimedia-volume-control pavucontrol org.pulseaudio.pavucontrol audio-volume-high preferences-desktop-sound', + ('apps', 'clipboard'): 'xfce4-clipman-plugin clipman edit-paste klipper', + ('apps', 'mail'): 'internet-mail thunderbird mail-client', + ('apps', 'calendar'): 'office-calendar org.gnome.Calendar', + ('apps', 'info'): 'kinfocenter org.kde.kinfocenter dialog-information hwinfo', + ('apps', 'archive'): 'org.kde.ark ark xarchiver org.gnome.FileRoller file-roller engrampa utilities-file-archiver', + ('apps', 'display'): 'preferences-desktop-display kscreen kgamma', + ('apps', 'power'): 'org.xfce.powermanager xfce4-power-manager mate-power-manager preferences-system-power', + ('apps', 'bluetooth'): 'blueman bluedevil preferences-system-bluetooth', + ('apps', 'network'): 'nm-applet network-manager preferences-system-network', + ('apps', 'printer'): 'system-config-printer printer-settings', + ('apps', 'menu'): 'kmenuedit alacarte menulibre', +} + +INDEX = '''[Icon Theme] +Name=Chamesle Glass +Comment=Oxygen with Chamesle's own icons on top +Inherits=oxygen,breeze,Adwaita,hicolor +Example=folder +Directories=scalable/apps,scalable/places,scalable/devices,scalable/mimetypes,256/apps,16x16/places,22x22/places,24x24/places,32x32/places,48x48/places,64x64/places + +[16x16/places] +Size=16 +Context=Places +Type=Fixed + +[22x22/places] +Size=22 +Context=Places +Type=Fixed + +[24x24/places] +Size=24 +Context=Places +Type=Fixed + +[32x32/places] +Size=32 +Context=Places +Type=Fixed + +[48x48/places] +Size=48 +Context=Places +Type=Fixed + +[64x64/places] +Size=64 +Context=Places +Type=Fixed + +[scalable/apps] +Size=128 +MinSize=16 +MaxSize=512 +Type=Scalable +Context=Applications + +[scalable/places] +Size=128 +MinSize=16 +MaxSize=512 +Type=Scalable +Context=Places + +[scalable/devices] +Size=128 +MinSize=16 +MaxSize=512 +Type=Scalable +Context=Devices + +[scalable/mimetypes] +Size=128 +MinSize=16 +MaxSize=512 +Type=Scalable +Context=MimeTypes + +[256/apps] +Size=256 +MinSize=16 +MaxSize=512 +Type=Scalable +Context=Applications +''' + +# oxygen draws everything else, these are ours +OURS = {('places', 'start-here'), ('apps', 'store'), ('apps', 'updater'), ('apps', 'drivers'), + ('apps', 'wine'), ('apps', 'installer'), ('apps', 'pkgimport')} + +def main(out): + build() + for k in list(ICONS): + if k not in OURS: + del ICONS[k] + for k in list(ALIASES): + if k not in OURS: + del ALIASES[k] + root = os.path.join(out, 'Chamesle-Glass') + shutil.rmtree(root, ignore_errors=True) + for (cat, name), text in ICONS.items(): + d = os.path.join(root, 'scalable', cat) + os.makedirs(d, exist_ok=True) + with open(os.path.join(d, name + '.svg'), 'w') as f: + f.write(text) + # the 2007 firefox logo, mozilla's own, under the mpl + os.makedirs(os.path.join(root, '256', 'apps'), exist_ok=True) + shutil.copy(os.path.join(HERE, 'firefox.png'), os.path.join(root, '256', 'apps', 'firefox.png')) + # cinnamon paints any svg named -symbolic white, so its menu gets the orb as pngs + for n in os.listdir(os.path.join(HERE, 'orb')): + d = os.path.join(root, '%sx%s' % (n[:-4], n[:-4]), 'places') + os.makedirs(d, exist_ok=True) + shutil.copy(os.path.join(HERE, 'orb', n), os.path.join(d, 'cinnamon-symbolic.png')) + for (cat, name), names in ALIASES.items(): + for n in names.split(): + p = os.path.join(root, 'scalable', cat, n + '.svg') + if not os.path.lexists(p): + os.symlink(name + '.svg', p) + with open(os.path.join(root, 'index.theme'), 'w') as f: + f.write(INDEX) + print(len(ICONS), 'drawings,', sum(len(v.split()) for v in ALIASES.values()), 'names') + +if __name__ == '__main__': + main(sys.argv[1] if len(sys.argv) > 1 else '.') diff --git a/tools/pkg/chamesle-glass-icons/files/orb/16.png b/tools/pkg/chamesle-glass-icons/files/orb/16.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/orb/22.png b/tools/pkg/chamesle-glass-icons/files/orb/22.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/orb/24.png b/tools/pkg/chamesle-glass-icons/files/orb/24.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/orb/32.png b/tools/pkg/chamesle-glass-icons/files/orb/32.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/orb/48.png b/tools/pkg/chamesle-glass-icons/files/orb/48.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/orb/64.png b/tools/pkg/chamesle-glass-icons/files/orb/64.png Binary files differ. diff --git a/tools/pkg/chamesle-glass-icons/files/parts/battery.svg b/tools/pkg/chamesle-glass-icons/files/parts/battery.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="shell" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset=".5" stop-color="#c3cad2"/><stop offset="1" stop-color="#7d8892"/></linearGradient> +<linearGradient id="charge" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9f5b5"/><stop offset=".48" stop-color="#3cbf2c"/><stop offset=".52" stop-color="#2a9a1d"/><stop offset="1" stop-color="#3cbf2c"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="100" rx="56" ry="7" fill="url(#shadow)"/> +<rect x="8" y="36" width="104" height="56" rx="9" fill="url(#shell)" stroke="#4a545e" stroke-width="1.5"/> +<rect x="112" y="52" width="10" height="24" rx="3" fill="url(#shell)" stroke="#4a545e" stroke-width="1.5"/> +<rect x="16" y="44" width="70" height="40" rx="5" fill="url(#charge)" stroke="#1b6a14"/> +<rect x="10" y="38" width="100" height="22" rx="8" fill="url(#gloss)" opacity=".65"/> +<path d="M58 50l-10 16h10l-4 14 14-20H58l4-10z" fill="#fff" stroke="#1b6a14" stroke-width="1.5" stroke-linejoin="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/bin-full.svg b/tools/pkg/chamesle-glass-icons/files/parts/bin-full.svg @@ -0,0 +1,28 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="glass" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#bfeee6" stop-opacity=".7"/><stop offset=".3" stop-color="#ffffff" stop-opacity=".45"/><stop offset=".7" stop-color="#9fdcd2" stop-opacity=".4"/><stop offset="1" stop-color="#5fb0a8" stop-opacity=".65"/></linearGradient> +<linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e8fbf7"/><stop offset="1" stop-color="#7cc7bd"/></linearGradient> +<radialGradient id="ball" cx=".4" cy=".35" r=".7"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#c9d3dc"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".4"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="40" ry="6" fill="url(#shadow)"/> +<ellipse cx="64" cy="26" rx="31" ry="4" fill="#3f8c84" fill-opacity=".35"/> +<g stroke="#8a96a2" stroke-width="1.2" fill="url(#ball)"> +<path d="M42 104c-4-8 0-16 8-17 6-1 11 4 10 11s-5 11-11 10c-3 0-5-2-7-4z"/> +<path d="M60 106c-3-9 2-17 11-17 7 0 12 6 10 13s-8 9-14 8c-3-1-6-2-7-4z"/> +<path d="M46 86c-3-9 3-16 11-16s12 7 10 14-8 10-14 8c-3-1-6-3-7-6z"/> +<path d="M66 72c-2-9 4-15 12-14s11 8 9 14-9 9-14 7c-4-1-6-4-7-7z"/> +<path d="M44 62c-2-8 4-14 11-13s10 7 8 13-8 8-13 6c-3-1-5-3-6-6z"/> +<path d="M58 40c-3-8 3-15 11-15s12 7 10 14-8 10-14 8c-3-1-6-4-7-7z"/> +<path d="M40 34c0-7 6-12 12-10s8 9 5 14-10 6-14 3c-2-2-3-4-3-7z"/> +</g> +<g stroke="#9aa5b0" stroke-width="1" fill="none" opacity=".7"><path d="M62 33c4 1 7 4 9 8M47 30c2 2 4 5 4 8M50 92c4 0 7 2 9 5"/></g> +<path d="M28 26h72l-8 80a7 7 0 0 1-7 6H43a7 7 0 0 1-7-6z" fill="url(#glass)" stroke="#2f6f68" stroke-opacity=".8" stroke-width="1.5"/> +<g stroke="#ffffff" stroke-opacity=".5" stroke-width="2.5" stroke-linecap="round"> +<path d="M44 36l3 66M56 36l1 68M72 36l-1 68M84 36l-3 66"/> +</g> +<path d="M34 32l6 72" stroke="#fff" stroke-opacity=".85" stroke-width="5" stroke-linecap="round"/> +<path d="M27 26a37 7 0 0 0 74 0" fill="none" stroke="#2f6f68" stroke-width="5"/> +<path d="M27 26a37 7 0 0 0 74 0" fill="none" stroke="url(#rim)" stroke-width="3"/> +<path d="M27 26a37 7 0 0 1 74 0" fill="none" stroke="#2f6f68" stroke-opacity=".7" stroke-width="1.5"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/bin.svg b/tools/pkg/chamesle-glass-icons/files/parts/bin.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="glass" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#bfeee6" stop-opacity=".75"/><stop offset=".3" stop-color="#ffffff" stop-opacity=".55"/><stop offset=".7" stop-color="#9fdcd2" stop-opacity=".45"/><stop offset="1" stop-color="#5fb0a8" stop-opacity=".7"/></linearGradient> +<linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e8fbf7"/><stop offset="1" stop-color="#7cc7bd"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".4"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="40" ry="6" fill="url(#shadow)"/> +<path d="M28 26h72l-8 80a7 7 0 0 1-7 6H43a7 7 0 0 1-7-6z" fill="url(#glass)" stroke="#2f6f68" stroke-opacity=".8" stroke-width="1.5"/> +<g stroke="#ffffff" stroke-opacity=".55" stroke-width="2.5" stroke-linecap="round"> +<path d="M44 36l3 66M56 36l1 68M72 36l-1 68M84 36l-3 66"/> +</g> +<path d="M34 32l6 72" stroke="#fff" stroke-opacity=".85" stroke-width="5" stroke-linecap="round"/> +<ellipse cx="64" cy="26" rx="37" ry="7" fill="url(#rim)" stroke="#2f6f68" stroke-width="1.5"/> +<ellipse cx="64" cy="26" rx="31" ry="4" fill="#3f8c84" fill-opacity=".35"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/box.svg b/tools/pkg/chamesle-glass-icons/files/parts/box.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6d9a6"/><stop offset="1" stop-color="#d9a65f"/></linearGradient> +<linearGradient id="left" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e2b26a"/><stop offset="1" stop-color="#a8723a"/></linearGradient> +<linearGradient id="right" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9924f"/><stop offset="1" stop-color="#8a5a28"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<path d="M64 16l50 20-50 20-50-20z" fill="url(#top)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M14 36l50 20v56L14 92z" fill="url(#left)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M114 36L64 56v56l50-20z" fill="url(#right)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M39 26l50 20v14l-8 3V49L31 29z" fill="#3a8fd6" stroke="#0b3866" stroke-linejoin="round"/> +<path d="M39 26l50 20" stroke="#bfe6ff" stroke-width="1.5"/> +<path d="M14 36l50 20 50-20" fill="none" stroke="#fff" stroke-opacity=".5" stroke-width="1.5"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/calculator.svg b/tools/pkg/chamesle-glass-icons/files/parts/calculator.svg @@ -0,0 +1,22 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#7d8794"/><stop offset=".5" stop-color="#3a414b"/><stop offset="1" stop-color="#1c2026"/></linearGradient> +<linearGradient id="lcd" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#d9f2c4"/><stop offset="1" stop-color="#9cc48a"/></linearGradient> +<linearGradient id="k" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#b9c1ca"/></linearGradient> +<linearGradient id="ko" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffc9a8"/><stop offset="1" stop-color="#e0583e"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".45"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="40" ry="6" fill="url(#shadow)"/> +<rect x="24" y="8" width="80" height="108" rx="10" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="32" y="18" width="64" height="24" rx="3" fill="url(#lcd)" stroke="#262c32" stroke-width="1.5"/> +<text x="90" y="38" text-anchor="end" font-family="DejaVu Sans Mono, monospace" font-size="17" font-weight="700" fill="#2a3a22">42</text> +<g fill="url(#k)" stroke="#262c32"> +<rect x="32" y="50" width="14" height="12" rx="3"/><rect x="50" y="50" width="14" height="12" rx="3"/><rect x="68" y="50" width="14" height="12" rx="3"/> +<rect x="32" y="66" width="14" height="12" rx="3"/><rect x="50" y="66" width="14" height="12" rx="3"/><rect x="68" y="66" width="14" height="12" rx="3"/> +<rect x="32" y="82" width="14" height="12" rx="3"/><rect x="50" y="82" width="14" height="12" rx="3"/><rect x="68" y="82" width="14" height="12" rx="3"/> +<rect x="32" y="98" width="32" height="12" rx="3"/><rect x="68" y="98" width="14" height="12" rx="3"/> +</g> +<g fill="url(#ko)" stroke="#7d200c"><rect x="86" y="50" width="10" height="28" rx="3"/><rect x="86" y="82" width="10" height="28" rx="3"/></g> +<path d="M24 18a10 10 0 0 1 10-10h60a10 10 0 0 1 10 10v2C78 32 50 50 24 76z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/calendar.svg b/tools/pkg/chamesle-glass-icons/files/parts/calendar.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#dde5ec"/></linearGradient> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ff9a80"/><stop offset=".5" stop-color="#e0452c"/><stop offset="1" stop-color="#b8301c"/></linearGradient> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="116" rx="48" ry="6" fill="url(#shadow)"/> +<rect x="14" y="18" width="100" height="94" rx="8" fill="url(#paper)" stroke="#5d6873" stroke-width="1.5"/> +<path d="M14 26a8 8 0 0 1 8-8h84a8 8 0 0 1 8 8v16H14z" fill="url(#top)" stroke="#7d200c" stroke-width="1.5"/> +<rect x="16" y="20" width="96" height="10" rx="5" fill="#fff" opacity=".35"/> +<g fill="url(#metal)" stroke="#3a434c"><rect x="34" y="8" width="8" height="20" rx="4"/><rect x="86" y="8" width="8" height="20" rx="4"/></g> +<text x="64" y="98" text-anchor="middle" font-family="DejaVu Sans, sans-serif" font-weight="700" font-size="48" fill="#262c32">27</text> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/camera.svg b/tools/pkg/chamesle-glass-icons/files/parts/camera.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="lens" cx=".4" cy=".35" r=".7"><stop offset="0" stop-color="#9fe8ff"/><stop offset=".4" stop-color="#1f5fa8"/><stop offset="1" stop-color="#050a14"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".5"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="110" rx="56" ry="7" fill="url(#shadow)"/> +<path d="M42 30l6-10h32l6 10z" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="8" y="30" width="112" height="72" rx="10" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="10" y="32" width="108" height="26" rx="9" fill="url(#gloss)"/> +<circle cx="64" cy="66" r="30" fill="url(#metal)" stroke="#262c32" stroke-width="1.5"/> +<circle cx="64" cy="66" r="22" fill="url(#lens)" stroke="#000" stroke-width="1.5"/> +<ellipse cx="57" cy="58" rx="8" ry="5" fill="#fff" opacity=".6"/> +<rect x="94" y="38" width="16" height="9" rx="2" fill="#fff8d0" stroke="#4a545e"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/clipboard.svg b/tools/pkg/chamesle-glass-icons/files/parts/clipboard.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="board" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e2b26a"/><stop offset="1" stop-color="#a8723a"/></linearGradient> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#dde5ec"/></linearGradient> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="44" ry="6" fill="url(#shadow)"/> +<rect x="20" y="14" width="88" height="102" rx="7" fill="url(#board)" stroke="#6b4318" stroke-width="1.5"/> +<rect x="28" y="26" width="72" height="82" rx="2" fill="url(#paper)" stroke="#8a96a2"/> +<g stroke="#8fa0b0" stroke-width="3" stroke-linecap="round"><path d="M36 44h56M36 54h56M36 64h40M36 74h56M36 84h30"/></g> +<rect x="42" y="6" width="44" height="18" rx="4" fill="url(#metal)" stroke="#3a434c" stroke-width="1.5"/> +<rect x="56" y="10" width="16" height="6" rx="3" fill="#3a434c"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/diskusage.svg b/tools/pkg/chamesle-glass-icons/files/parts/diskusage.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="a" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="b" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9f5b5"/><stop offset="1" stop-color="#2a9a1d"/></linearGradient> +<linearGradient id="c" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffd9a0"/><stop offset="1" stop-color="#e07a1c"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<clipPath id="top"><rect x="0" y="0" width="128" height="52"/></clipPath> +</defs> +<ellipse cx="62" cy="114" rx="50" ry="7" fill="url(#shadow)"/> +<path d="M64 60V12A48 48 0 0 1 88 101.6z" fill="url(#a)" stroke="#0b3866" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M64 60L88 101.6A48 48 0 0 1 18.9 76.4z" fill="url(#b)" stroke="#1b6a14" stroke-width="1.5" stroke-linejoin="round"/> +<g transform="translate(-5.7 -4)"> +<path d="M64 60L18.9 76.4A48 48 0 0 1 64 12z" fill="url(#c)" stroke="#8a4a10" stroke-width="1.5" stroke-linejoin="round"/> +</g> +<g clip-path="url(#top)"><ellipse cx="60" cy="34" rx="40" ry="22" fill="url(#gloss)" opacity=".55"/></g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/drive.svg b/tools/pkg/chamesle-glass-icons/files/parts/drive.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset="1" stop-color="#c3cad2"/></linearGradient> +<linearGradient id="face" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9aa4ae"/><stop offset=".5" stop-color="#5d6873"/><stop offset="1" stop-color="#3a434c"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".8"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<radialGradient id="led" cx=".4" cy=".4" r=".6"><stop offset="0" stop-color="#e6ffe9"/><stop offset="1" stop-color="#2fd35a"/></radialGradient> +</defs> +<ellipse cx="64" cy="104" rx="56" ry="7" fill="url(#shadow)"/> +<path d="M14 54l14-20h72l14 20z" fill="url(#top)" stroke="#4a545e" stroke-width="1.5" stroke-linejoin="round"/> +<rect x="14" y="54" width="100" height="44" rx="5" fill="url(#face)" stroke="#262c32" stroke-width="1.5"/> +<rect x="15.5" y="55.5" width="97" height="20" rx="4" fill="url(#gloss)" opacity=".55"/> +<rect x="24" y="68" width="56" height="16" rx="2" fill="#2a3036" stroke="#1a1e22"/> +<path d="M28 76h48" stroke="#5d6873" stroke-width="2"/> +<circle cx="98" cy="76" r="5" fill="url(#led)" stroke="#16692c"/> +<circle cx="98" cy="76" r="9" fill="#2fd35a" opacity=".25"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/drivers.svg b/tools/pkg/chamesle-glass-icons/files/parts/drivers.svg @@ -0,0 +1,20 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="chip" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="pin" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff1a8"/><stop offset="1" stop-color="#c9921c"/></linearGradient> +<linearGradient id="die" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".45"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="46" ry="6" fill="url(#shadow)"/> +<g fill="url(#pin)" stroke="#8a6410" stroke-width=".8"> +<rect x="34" y="8" width="6" height="18"/><rect x="48" y="8" width="6" height="18"/><rect x="62" y="8" width="6" height="18"/><rect x="76" y="8" width="6" height="18"/><rect x="90" y="8" width="6" height="18"/> +<rect x="34" y="100" width="6" height="18"/><rect x="48" y="100" width="6" height="18"/><rect x="62" y="100" width="6" height="18"/><rect x="76" y="100" width="6" height="18"/><rect x="90" y="100" width="6" height="18"/> +<rect x="8" y="34" width="18" height="6"/><rect x="8" y="48" width="18" height="6"/><rect x="8" y="62" width="18" height="6"/><rect x="8" y="76" width="18" height="6"/><rect x="8" y="90" width="18" height="6"/> +<rect x="102" y="34" width="18" height="6"/><rect x="102" y="48" width="18" height="6"/><rect x="102" y="62" width="18" height="6"/><rect x="102" y="76" width="18" height="6"/><rect x="102" y="90" width="18" height="6"/> +</g> +<rect x="22" y="22" width="84" height="84" rx="8" fill="url(#chip)" stroke="#000" stroke-width="1.5"/> +<rect x="42" y="42" width="44" height="44" rx="4" fill="url(#die)" stroke="#0b3866" stroke-width="1.5"/> +<path d="M50 64h28M64 50v28" stroke="#fff" stroke-opacity=".6" stroke-width="2"/> +<path d="M22 30a8 8 0 0 1 8-8h68a8 8 0 0 1 8 8v2C80 46 46 62 22 92z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/editor.svg b/tools/pkg/chamesle-glass-icons/files/parts/editor.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#e4ebf1"/></linearGradient> +<linearGradient id="pad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="pencil" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ffe680"/><stop offset=".5" stop-color="#f2b632"/><stop offset="1" stop-color="#c98a10"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".6"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="44" ry="6" fill="url(#shadow)"/> +<rect x="20" y="14" width="80" height="100" rx="4" fill="url(#paper)" stroke="#6f7c89" stroke-width="1.5"/> +<rect x="20" y="14" width="80" height="16" rx="4" fill="url(#pad)" stroke="#0b3866" stroke-width="1.5"/> +<g fill="#c3cad2" stroke="#4a545e"><circle cx="34" cy="14" r="4"/><circle cx="50" cy="14" r="4"/><circle cx="66" cy="14" r="4"/><circle cx="82" cy="14" r="4"/></g> +<g stroke="#8fb3d6" stroke-width="2"><path d="M28 44h64M28 54h64M28 64h64M28 74h64M28 84h40M28 94h52"/></g> +<path d="M20 30h80v10C70 46 44 60 20 84z" fill="url(#gloss)"/> +<g transform="rotate(40 86 76)"> +<rect x="80" y="30" width="14" height="66" fill="url(#pencil)" stroke="#8a5a10" stroke-width="1.5"/> +<rect x="80" y="24" width="14" height="8" rx="2" fill="#f28aa0" stroke="#8a3a50" stroke-width="1.5"/> +<path d="M80 96h14l-7 16z" fill="#f6d9a6" stroke="#8a5a10" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M84.5 106h5l-2.5 6z" fill="#262c32"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/ethernet.svg b/tools/pkg/chamesle-glass-icons/files/parts/ethernet.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="plug" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#bfeaff" stop-opacity=".9"/><stop offset=".35" stop-color="#ffffff" stop-opacity=".8"/><stop offset="1" stop-color="#5fb0e0" stop-opacity=".9"/></linearGradient> +<linearGradient id="boot" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#8fdcff"/><stop offset=".5" stop-color="#2f8de4"/><stop offset="1" stop-color="#0f4f96"/></linearGradient> +<linearGradient id="gold" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff1a8"/><stop offset="1" stop-color="#c9921c"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="40" ry="6" fill="url(#shadow)"/> +<path d="M64 100c0 10-4 14-14 16" fill="none" stroke="#0b3866" stroke-width="13" stroke-linecap="round"/> +<path d="M64 100c0 10-4 14-14 16" fill="none" stroke="#2f8de4" stroke-width="9" stroke-linecap="round"/> +<path d="M48 72h32l-4 30H52z" fill="url(#boot)" stroke="#0b3866" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M52 76h24" stroke="#fff" stroke-opacity=".6" stroke-width="2"/> +<rect x="36" y="14" width="56" height="60" rx="4" fill="url(#plug)" stroke="#2f6f9a" stroke-width="1.5"/> +<path d="M54 74V88h20V74" fill="url(#plug)" stroke="#2f6f9a" stroke-width="1.5"/> +<g fill="url(#gold)" stroke="#8a6410" stroke-width=".6"> +<rect x="41" y="16" width="4" height="16"/><rect x="47.5" y="16" width="4" height="16"/><rect x="54" y="16" width="4" height="16"/><rect x="60.5" y="16" width="4" height="16"/> +<rect x="67" y="16" width="4" height="16"/><rect x="73.5" y="16" width="4" height="16"/><rect x="80" y="16" width="4" height="16"/><rect x="86" y="16" width="3" height="16"/> +</g> +<g stroke-width="2" fill="none"><path d="M44 40v30M52 40v30M60 40v30M68 40v30M76 40v30M84 40v30" stroke="#ff8a3a" stroke-opacity=".7"/></g> +<path d="M40 18c4 20 4 40 0 52" fill="none" stroke="#fff" stroke-opacity=".9" stroke-width="3" stroke-linecap="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/files.svg b/tools/pkg/chamesle-glass-icons/files/parts/files.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="back" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#3b9be0"/><stop offset="1" stop-color="#11508f"/></linearGradient> +<linearGradient id="front" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset=".45" stop-color="#3fa8ee"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity=".05"/></linearGradient> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#dfe7ee"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="54" ry="8" fill="url(#shadow)"/> +<path d="M12 26a6 6 0 0 1 6-6h30l8 8h56a6 6 0 0 1 6 6v68a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6z" fill="url(#back)" stroke="#0b3866" stroke-width="1.5"/> +<rect x="22" y="32" width="86" height="50" rx="3" fill="url(#paper)" stroke="#9aa9b6" transform="rotate(-4 64 57)"/> +<rect x="26" y="38" width="80" height="46" rx="3" fill="url(#paper)" stroke="#9aa9b6" transform="rotate(3 64 61)"/> +<path d="M8 52a6 6 0 0 1 6-6h100a6 6 0 0 1 6 6l-4 50a6 6 0 0 1-6 6H18a6 6 0 0 1-6-6z" fill="url(#front)" stroke="#0b3866" stroke-width="1.5"/> +<path d="M11 52a4 4 0 0 1 4-4h98a4 4 0 0 1 4 4l-1.6 20c-34 7-68 7-103 0z" fill="url(#gloss)" opacity=".75"/> +<path d="M14 49h100" stroke="#fff" stroke-opacity=".9" stroke-width="1.5" stroke-linecap="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/gamepad.svg b/tools/pkg/chamesle-glass-icons/files/parts/gamepad.svg @@ -0,0 +1,12 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="gloss" 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="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="106" rx="56" ry="7" fill="url(#shadow)"/> +<path d="M36 36h56c14 0 22 10 26 30s4 32-8 34-16-10-22-18H40c-6 8-10 20-22 18s-12-14-8-34 12-30 26-30z" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<path d="M36 39h56c10 0 17 6 21 18-30 8-68 8-98 0 4-12 11-18 21-18z" fill="url(#gloss)"/> +<path d="M34 56v18M25 65h18" stroke="#c3cad2" stroke-width="7" stroke-linecap="round"/> +<circle cx="92" cy="56" r="5" fill="#2fd35a"/><circle cx="102" cy="65" r="5" fill="#f03a3a"/><circle cx="82" cy="65" r="5" fill="#2f8de4"/><circle cx="92" cy="74" r="5" fill="#f2c94c"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/headphones.svg b/tools/pkg/chamesle-glass-icons/files/parts/headphones.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="cup" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="pad" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffb08a"/><stop offset=".5" stop-color="#f0602e"/><stop offset="1" stop-color="#b8361a"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<path d="M22 76V62a42 42 0 0 1 84 0v14" fill="none" stroke="#262c32" stroke-width="10" stroke-linecap="round"/> +<path d="M22 70V62a42 42 0 0 1 84 0v8" fill="none" stroke="#8a95a1" stroke-width="3" stroke-linecap="round"/> +<rect x="10" y="66" width="30" height="44" rx="12" fill="url(#cup)" stroke="#000" stroke-width="1.5"/> +<rect x="88" y="66" width="30" height="44" rx="12" fill="url(#cup)" stroke="#000" stroke-width="1.5"/> +<rect x="32" y="70" width="12" height="36" rx="6" fill="url(#pad)" stroke="#7d200c"/> +<rect x="84" y="70" width="12" height="36" rx="6" fill="url(#pad)" stroke="#7d200c"/> +<path d="M14 74a10 10 0 0 1 10-6h6" stroke="#fff" stroke-opacity=".6" stroke-width="3" fill="none" stroke-linecap="round"/> +<path d="M92 74a10 10 0 0 1 10-6h6" stroke="#fff" stroke-opacity=".6" stroke-width="3" fill="none" stroke-linecap="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/help.svg b/tools/pkg/chamesle-glass-icons/files/parts/help.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<radialGradient id="ring" cx=".5" cy=".35" r=".7"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#c9d1d9"/></radialGradient> +<linearGradient id="red" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ff9a80"/><stop offset=".5" stop-color="#e0452c"/><stop offset="1" stop-color="#9a2a12"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<mask id="hole"><rect width="128" height="128" fill="#fff"/><circle cx="64" cy="60" r="22" fill="#000"/></mask> +</defs> +<ellipse cx="64" cy="114" rx="48" ry="7" fill="url(#shadow)"/> +<g mask="url(#hole)"> +<circle cx="64" cy="60" r="48" fill="url(#ring)" stroke="#4a545e" stroke-width="1.5"/> +<path d="M64 60L30 26a48 48 0 0 1 68 0zM64 60l34 34a48 48 0 0 1-68 0z" fill="url(#red)" stroke="#7d200c" stroke-width="1.5" stroke-linejoin="round"/> +<ellipse cx="64" cy="30" rx="34" ry="16" fill="url(#gloss)" opacity=".7"/> +</g> +<circle cx="64" cy="60" r="22" fill="none" stroke="#4a545e" stroke-width="1.5"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/installer.svg b/tools/pkg/chamesle-glass-icons/files/parts/installer.svg @@ -0,0 +1,20 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<radialGradient id="disc" cx=".5" cy=".5" r=".5"><stop offset=".2" stop-color="#f4f6f8"/><stop offset=".9" stop-color="#c9d1d9"/><stop offset="1" stop-color="#9aa5b0"/></radialGradient> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset="1" stop-color="#c3cad2"/></linearGradient> +<linearGradient id="face" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9aa4ae"/><stop offset=".5" stop-color="#5d6873"/><stop offset="1" stop-color="#3a434c"/></linearGradient> +<radialGradient id="arrow" cx=".5" cy=".3" r=".75"><stop offset="0" stop-color="#c9f5b5"/><stop offset=".55" stop-color="#3cbf2c"/><stop offset="1" stop-color="#1b6a14"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<filter id="soft"><feGaussianBlur stdDeviation="3"/></filter> +<clipPath id="c"><circle cx="52" cy="44" r="38"/></clipPath> +</defs> +<ellipse cx="64" cy="114" rx="56" ry="7" fill="url(#shadow)"/> +<circle cx="52" cy="44" r="38" fill="url(#disc)" stroke="#5d6873" stroke-width="1.5"/> +<g clip-path="url(#c)" filter="url(#soft)" opacity=".55"><path d="M52 44L20 4h26z" fill="#ff5fa2"/><path d="M52 44l40-24v22z" fill="#4fd0ff"/><path d="M52 44l34 40H64z" fill="#ffe15a"/></g> +<circle cx="52" cy="44" r="12" fill="#e8edf2" fill-opacity=".8" stroke="#8a96a2"/><circle cx="52" cy="44" r="4" fill="#fff" stroke="#6f7a86"/> +<path d="M30 82l10-14h70l10 14z" fill="url(#top)" stroke="#4a545e" stroke-width="1.5" stroke-linejoin="round"/> +<rect x="30" y="82" width="90" height="28" rx="4" fill="url(#face)" stroke="#262c32" stroke-width="1.5"/> +<circle cx="108" cy="96" r="4" fill="#2fd35a" stroke="#16692c"/> +<circle cx="96" cy="50" r="18" fill="url(#arrow)" stroke="#0f4a0c" stroke-width="1.5"/> +<path d="M96 40v18M88 50l8 9 8-9" fill="none" stroke="#fff" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/keyboard.svg b/tools/pkg/chamesle-glass-icons/files/parts/keyboard.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset="1" stop-color="#1c2026"/></linearGradient> +<linearGradient id="key" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#c3cad2"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="100" rx="60" ry="8" fill="url(#shadow)"/> +<path d="M20 38h88l14 54H6z" fill="url(#body)" stroke="#0d0f12" stroke-width="1.5" stroke-linejoin="round"/> +<g fill="url(#key)" stroke="#4a545e" stroke-width=".8"> +<path d="M24 44h10l-1 9H22z"/><path d="M37 44h10l-.5 9H36z"/><path d="M50 44h10v9H50z"/><path d="M63 44h10l.5 9H63z"/><path d="M76 44h10l1 9H77z"/><path d="M89 44h10l2 9H91z"/> +<path d="M20 57h12l-1 10H18z"/><path d="M35 57h12l-.5 10H34z"/><path d="M50 57h12v10H50z"/><path d="M65 57h12l.5 10H66z"/><path d="M80 57h12l1 10H81z"/><path d="M95 57h10l2 10H97z"/> +<path d="M16 71h14l-1 11H13z"/><path d="M33 71h62l1 11H32z"/><path d="M98 71h14l3 11H100z"/> +</g> +<path d="M20 38h88l2 8H18z" fill="#fff" opacity=".25"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/keys.svg b/tools/pkg/chamesle-glass-icons/files/parts/keys.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="gold" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff1a8"/><stop offset=".5" stop-color="#e9b41c"/><stop offset="1" stop-color="#9a6a10"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="112" rx="48" ry="6" fill="url(#shadow)"/> +<g transform="rotate(-35 64 64)"> +<path d="M14 64a26 26 0 1 1 50 10h52v14h-10v12H94V88H84v12H72V74H64A26 26 0 0 1 14 64zm14 0a10 10 0 1 0 20 0 10 10 0 1 0-20 0z" fill="url(#gold)" stroke="#6b4a08" stroke-width="2" fill-rule="evenodd" stroke-linejoin="round"/> +<path d="M18 58a22 22 0 0 1 42 0" fill="none" stroke="#fff" stroke-opacity=".8" stroke-width="3" stroke-linecap="round"/> +<path d="M66 77h48" stroke="#fff" stroke-opacity=".6" stroke-width="2"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/mail.svg b/tools/pkg/chamesle-glass-icons/files/parts/mail.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="env" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#d4dde6"/></linearGradient> +<linearGradient id="flap" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#eef3f7"/><stop offset="1" stop-color="#b9c4cf"/></linearGradient> +<radialGradient id="stamp" cx=".5" cy=".3" r=".75"><stop offset="0" stop-color="#bfeaff"/><stop offset=".55" stop-color="#2f8de4"/><stop offset="1" stop-color="#0f4f96"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="108" rx="56" ry="7" fill="url(#shadow)"/> +<rect x="8" y="28" width="112" height="74" rx="5" fill="url(#env)" stroke="#5d6873" stroke-width="1.5"/> +<path d="M8 98l44-34M120 98L76 64" stroke="#9aa5b0" stroke-width="1.5"/> +<path d="M10 30l54 42 54-42" fill="url(#flap)" stroke="#5d6873" stroke-width="1.5" stroke-linejoin="round"/> +<circle cx="98" cy="84" r="14" fill="url(#stamp)" stroke="#0b3866" stroke-width="1.5"/> +<path d="M92 84l4 4 8-8" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/monitor.svg b/tools/pkg/chamesle-glass-icons/files/parts/monitor.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="frame" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#7d8794"/><stop offset=".5" stop-color="#3a414b"/><stop offset="1" stop-color="#1c2026"/></linearGradient> +<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#0f2430"/><stop offset="1" stop-color="#020507"/></linearGradient> +<linearGradient id="area" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5cff86" stop-opacity=".55"/><stop offset="1" stop-color="#5cff86" stop-opacity="0"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".35"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<rect x="10" y="16" width="108" height="92" rx="10" fill="url(#frame)" stroke="#0d0f12" stroke-width="1.5"/> +<rect x="18" y="28" width="92" height="72" rx="4" fill="url(#screen)" stroke="#000"/> +<g stroke="#1f3a2a" stroke-width="1"><path d="M18 46h92M18 64h92M18 82h92M41 28v72M64 28v72M87 28v72"/></g> +<path d="M18 86l14-10 12 6 14-24 12 14 14-30 12 18 14-10v50H18z" fill="url(#area)"/> +<path d="M18 86l14-10 12 6 14-24 12 14 14-30 12 18 14-10" fill="none" stroke="#b8ffcc" stroke-width="3" stroke-linejoin="round"/> +<path d="M18 32a4 4 0 0 1 4-4h84a4 4 0 0 1 4 4v14C80 40 46 48 18 64z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/mouse.svg b/tools/pkg/chamesle-glass-icons/files/parts/mouse.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<radialGradient id="body" cx=".4" cy=".3" r=".8"><stop offset="0" stop-color="#ffffff"/><stop offset=".6" stop-color="#d9dfe5"/><stop offset="1" stop-color="#8a95a1"/></radialGradient> +<linearGradient id="wheel" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".95"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="34" ry="7" fill="url(#shadow)"/> +<path d="M18 26c2-8 20-6 30 4" fill="none" stroke="#4a545e" stroke-width="3" stroke-linecap="round"/> +<path d="M64 14c-22 0-32 18-32 46s10 52 32 52 32-24 32-52-10-46-32-46z" fill="url(#body)" stroke="#4a545e" stroke-width="1.5"/> +<path d="M64 14v40M32 54h64" stroke="#8a95a1" stroke-width="1.5"/> +<rect x="59" y="26" width="10" height="20" rx="5" fill="url(#wheel)" stroke="#0b3866"/> +<path d="M40 30c6-12 18-14 22-14v34H34c0-8 2-14 6-20z" fill="url(#gloss)" opacity=".7"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/music.svg b/tools/pkg/chamesle-glass-icons/files/parts/music.svg @@ -0,0 +1,25 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<radialGradient id="disc" cx=".5" cy=".5" r=".5"><stop offset=".2" stop-color="#f4f6f8"/><stop offset=".9" stop-color="#c9d1d9"/><stop offset="1" stop-color="#9aa5b0"/></radialGradient> +<linearGradient id="note" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffb08a"/><stop offset=".5" stop-color="#f0602e"/><stop offset="1" stop-color="#b8361a"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<filter id="soft"><feGaussianBlur stdDeviation="4"/></filter> +<clipPath id="c"><circle cx="58" cy="58" r="46"/></clipPath> +</defs> +<ellipse cx="64" cy="114" rx="50" ry="7" fill="url(#shadow)"/> +<circle cx="58" cy="58" r="46" fill="url(#disc)" stroke="#5d6873" stroke-width="1.5"/> +<g clip-path="url(#c)" filter="url(#soft)" opacity=".55"> +<path d="M58 58L20 10h30z" fill="#ff5fa2"/> +<path d="M58 58L104 30v26z" fill="#4fd0ff"/> +<path d="M58 58l40 46H72z" fill="#ffe15a"/> +<path d="M58 58L10 80V60z" fill="#7cff8a"/> +</g> +<circle cx="58" cy="58" r="16" fill="#e8edf2" fill-opacity=".8" stroke="#8a96a2"/> +<circle cx="58" cy="58" r="6" fill="#ffffff" stroke="#6f7a86"/> +<path d="M22 38c10-22 60-26 74-6" fill="none" stroke="#fff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round"/> +<circle cx="92" cy="90" r="27" fill="url(#note)" stroke="#7d200c" stroke-width="1.5"/> +<path d="M88 102V78l14-4v20" fill="none" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> +<ellipse cx="84" cy="102" rx="5.5" ry="4.5" fill="#fff"/><ellipse cx="98" cy="96" rx="5.5" ry="4.5" fill="#fff"/> +<ellipse cx="92" cy="76" rx="20" ry="10" fill="url(#gloss)" opacity=".75"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/partitions.svg b/tools/pkg/chamesle-glass-icons/files/parts/partitions.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset="1" stop-color="#c3cad2"/></linearGradient> +<linearGradient id="face" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9aa4ae"/><stop offset=".5" stop-color="#5d6873"/><stop offset="1" stop-color="#3a434c"/></linearGradient> +<linearGradient id="p1" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="p2" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9f5b5"/><stop offset="1" stop-color="#2a9a1d"/></linearGradient> +<linearGradient id="p3" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffd9a0"/><stop offset="1" stop-color="#e07a1c"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".8"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="110" rx="56" ry="7" fill="url(#shadow)"/> +<path d="M14 40l14-20h72l14 20z" fill="url(#top)" stroke="#4a545e" stroke-width="1.5" stroke-linejoin="round"/> +<rect x="14" y="40" width="100" height="40" rx="5" fill="url(#face)" stroke="#262c32" stroke-width="1.5"/> +<rect x="15.5" y="41.5" width="97" height="16" rx="4" fill="url(#gloss)" opacity=".5"/> +<circle cx="98" cy="62" r="5" fill="#2fd35a" stroke="#16692c"/> +<rect x="10" y="88" width="108" height="20" rx="3" fill="#fff" stroke="#4a545e" stroke-width="1.5"/> +<rect x="12" y="90" width="44" height="16" fill="url(#p1)"/> +<rect x="58" y="90" width="34" height="16" fill="url(#p2)"/> +<rect x="94" y="90" width="22" height="16" fill="url(#p3)"/> +<rect x="12" y="90" width="104" height="6" fill="#fff" opacity=".4"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/pc.svg b/tools/pkg/chamesle-glass-icons/files/parts/pc.svg @@ -0,0 +1,22 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="bezel" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#4a525c"/><stop offset=".5" stop-color="#1c2026"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1f7fd6"/><stop offset=".6" stop-color="#4fc3e8"/><stop offset="1" stop-color="#bff0d0"/></linearGradient> +<linearGradient id="hill" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fe35a"/><stop offset="1" stop-color="#2f8a2a"/></linearGradient> +<linearGradient id="stand" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#eef1f4"/><stop offset="1" stop-color="#8a95a1"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".5"/><stop offset=".55" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<clipPath id="c"><rect x="16" y="20" width="96" height="62" rx="2"/></clipPath> +</defs> +<ellipse cx="64" cy="116" rx="40" ry="6" fill="url(#shadow)"/> +<path d="M54 90h20l4 16H50z" fill="url(#stand)" stroke="#5d6873"/> +<ellipse cx="64" cy="108" rx="26" ry="5" fill="url(#stand)" stroke="#5d6873"/> +<rect x="8" y="12" width="112" height="80" rx="7" fill="url(#bezel)" stroke="#000" stroke-width="1.5"/> +<rect x="9.5" y="13.5" width="109" height="77" rx="6" fill="none" stroke="#fff" stroke-opacity=".3"/> +<g clip-path="url(#c)"> +<rect x="16" y="20" width="96" height="62" fill="url(#screen)"/> +<path d="M10 70c24-16 50-14 70 0s30 4 34 0v16H10z" fill="url(#hill)"/> +</g> +<path d="M8 19a7 7 0 0 1 7-7h98a7 7 0 0 1 7 7v10C86 24 40 40 8 66z" fill="url(#gloss)"/> +<circle cx="64" cy="87" r="1.6" fill="#5cff86"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/phone.svg b/tools/pkg/chamesle-glass-icons/files/parts/phone.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#4a525c"/><stop offset=".5" stop-color="#1c2026"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1f7fd6"/><stop offset=".6" stop-color="#4fc3e8"/><stop offset="1" stop-color="#bff0d0"/></linearGradient> +<linearGradient id="hill" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fe35a"/><stop offset="1" stop-color="#2f8a2a"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".5"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<clipPath id="c"><rect x="40" y="20" width="48" height="82" rx="2"/></clipPath> +</defs> +<ellipse cx="64" cy="118" rx="32" ry="5" fill="url(#shadow)"/> +<rect x="34" y="6" width="60" height="110" rx="10" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="35.5" y="7.5" width="57" height="107" rx="9" fill="none" stroke="#fff" stroke-opacity=".3"/> +<g clip-path="url(#c)"><rect x="40" y="20" width="48" height="82" fill="url(#screen)"/><path d="M36 86c12-10 28-8 36 0s16 2 20 0v20H36z" fill="url(#hill)"/></g> +<rect x="56" y="12" width="16" height="3" rx="1.5" fill="#5d6873"/> +<circle cx="64" cy="109" r="3.5" fill="none" stroke="#5d6873" stroke-width="1.5"/> +<path d="M34 16a10 10 0 0 1 10-10h40a10 10 0 0 1 10 10v6C76 30 52 54 34 86z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/pics.svg b/tools/pkg/chamesle-glass-icons/files/parts/pics.svg @@ -0,0 +1,23 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#2f9bf0"/><stop offset="1" stop-color="#c8efff"/></linearGradient> +<linearGradient id="hill" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fe35a"/><stop offset="1" stop-color="#2f8a2a"/></linearGradient> +<linearGradient id="hill2" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#b7f07a"/><stop offset="1" stop-color="#4fae36"/></linearGradient> +<radialGradient id="sun" cx=".4" cy=".4" r=".6"><stop offset="0" stop-color="#fffbe0"/><stop offset="1" stop-color="#ffc21f"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".55"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<clipPath id="c"><rect x="24" y="30" width="80" height="58"/></clipPath> +</defs> +<ellipse cx="64" cy="112" rx="52" ry="7" fill="url(#shadow)"/> +<g transform="rotate(-6 64 62)"> +<rect x="14" y="20" width="100" height="84" rx="3" fill="#ffffff" stroke="#8a96a2" stroke-width="1.5"/> +<g clip-path="url(#c)"> +<rect x="24" y="30" width="80" height="58" fill="url(#sky)"/> +<circle cx="84" cy="46" r="9" fill="url(#sun)"/> +<path d="M20 74c18-14 36-12 52 0s30 6 36-2v20H20z" fill="url(#hill2)"/> +<path d="M20 82c20-12 44-12 62-2s22 2 26 0v12H20z" fill="url(#hill)"/> +<path d="M24 30h80v14C76 40 46 50 24 64z" fill="url(#gloss)"/> +</g> +<rect x="24" y="30" width="80" height="58" fill="none" stroke="#5d6873"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/pkgimport.svg b/tools/pkg/chamesle-glass-icons/files/parts/pkgimport.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6d9a6"/><stop offset="1" stop-color="#d9a65f"/></linearGradient> +<linearGradient id="left" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e2b26a"/><stop offset="1" stop-color="#a8723a"/></linearGradient> +<linearGradient id="right" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9924f"/><stop offset="1" stop-color="#8a5a28"/></linearGradient> +<radialGradient id="arrow" cx=".5" cy=".3" r=".75"><stop offset="0" stop-color="#bfeaff"/><stop offset=".55" stop-color="#2f8de4"/><stop offset="1" stop-color="#0f4f96"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<path d="M64 30l50 20-50 20-50-20z" fill="url(#top)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M14 50l50 20v42L14 92z" fill="url(#left)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M114 50L64 70v42l50-20z" fill="url(#right)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M14 50l50 20 50-20" fill="none" stroke="#fff" stroke-opacity=".5" stroke-width="1.5"/> +<circle cx="64" cy="34" r="24" fill="url(#arrow)" stroke="#0b3866" stroke-width="1.5"/> +<path d="M64 20v24M54 34l10 11 10-11" fill="none" stroke="#fff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/> +<ellipse cx="64" cy="22" rx="16" ry="8" fill="#fff" opacity=".5"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/printer.svg b/tools/pkg/chamesle-glass-icons/files/parts/printer.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset=".5" stop-color="#c3cad2"/><stop offset="1" stop-color="#7d8892"/></linearGradient> +<linearGradient id="dark" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset="1" stop-color="#262c32"/></linearGradient> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#dde5ec"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="112" rx="56" ry="7" fill="url(#shadow)"/> +<rect x="34" y="10" width="60" height="36" fill="url(#paper)" stroke="#8a96a2" stroke-width="1.5"/> +<rect x="10" y="40" width="108" height="50" rx="8" fill="url(#body)" stroke="#4a545e" stroke-width="1.5"/> +<rect x="12" y="42" width="104" height="20" rx="7" fill="url(#gloss)" opacity=".7"/> +<rect x="26" y="76" width="76" height="10" rx="2" fill="url(#dark)"/> +<path d="M30 84h68l6 24H24z" fill="url(#paper)" stroke="#8a96a2" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M36 94h44M34 102h56" stroke="#8fa0b0" stroke-width="3" stroke-linecap="round"/> +<circle cx="102" cy="54" r="4" fill="#2fd35a" stroke="#16692c"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/screenshot.svg b/tools/pkg/chamesle-glass-icons/files/parts/screenshot.svg @@ -0,0 +1,19 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5d6873"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="lens" cx=".4" cy=".35" r=".7"><stop offset="0" stop-color="#9fe8ff"/><stop offset=".4" stop-color="#1f5fa8"/><stop offset="1" stop-color="#050a14"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".5"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="116" rx="50" ry="6" fill="url(#shadow)"/> +<rect x="6" y="6" width="116" height="104" rx="4" fill="#bfe6ff" fill-opacity=".35" stroke="#1f7fd6" stroke-width="3" stroke-dasharray="8 6"/> +<g transform="translate(14 22) scale(.78)"> +<path d="M42 30l6-10h32l6 10z" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="8" y="30" width="112" height="72" rx="10" fill="url(#body)" stroke="#000" stroke-width="1.5"/> +<rect x="10" y="32" width="108" height="26" rx="9" fill="url(#gloss)"/> +<circle cx="64" cy="66" r="30" fill="url(#metal)" stroke="#262c32" stroke-width="1.5"/> +<circle cx="64" cy="66" r="22" fill="url(#lens)" stroke="#000" stroke-width="1.5"/> +<ellipse cx="57" cy="58" rx="8" ry="5" fill="#fff" opacity=".6"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/sdcard.svg b/tools/pkg/chamesle-glass-icons/files/parts/sdcard.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b6672"/><stop offset="1" stop-color="#1c2026"/></linearGradient> +<linearGradient id="label" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="gold" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff1a8"/><stop offset="1" stop-color="#c9921c"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".45"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="40" ry="6" fill="url(#shadow)"/> +<path d="M30 12h52l16 16v78a4 4 0 0 1-4 4H30a4 4 0 0 1-4-4V16a4 4 0 0 1 4-4z" fill="url(#body)" stroke="#0d0f12" stroke-width="1.5"/> +<g fill="url(#gold)" stroke="#8a6410" stroke-width=".8"><rect x="36" y="16" width="6" height="14"/><rect x="46" y="16" width="6" height="14"/><rect x="56" y="16" width="6" height="14"/><rect x="66" y="16" width="6" height="14"/><rect x="76" y="20" width="6" height="12"/></g> +<rect x="34" y="50" width="56" height="48" rx="3" fill="url(#label)" stroke="#0b3866"/> +<path d="M44 74h36M44 84h24" stroke="#fff" stroke-width="4" stroke-linecap="round"/> +<path d="M26 16a4 4 0 0 1 4-4h52l6 6C60 30 40 50 26 76z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/settings.svg b/tools/pkg/chamesle-glass-icons/files/parts/settings.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="eye" cx=".5" cy=".3" r=".75"><stop offset="0" stop-color="#bff0ff"/><stop offset=".55" stop-color="#2f8de4"/><stop offset="1" stop-color="#0f4f96"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="44" ry="7" fill="url(#shadow)"/> +<g fill="url(#metal)" stroke="#3f4954" stroke-width="1.5" stroke-linejoin="round"> +<path d="M56 10h16l3 15 10 4 13-8 11 11-8 13 4 10 15 3v16l-15 3-4 10 8 13-11 11-13-8-10 4-3 15H56l-3-15-10-4-13 8-11-11 8-13-4-10-15-3V56l15-3 4-10-8-13 11-11 13 8 10-4z"/> +</g> +<circle cx="64" cy="64" r="34" fill="none" stroke="#ffffff" stroke-opacity=".6" stroke-width="1.5"/> +<circle cx="64" cy="64" r="20" fill="url(#eye)" stroke="#0b3866" stroke-width="2"/> +<ellipse cx="64" cy="55" rx="13" ry="7" fill="url(#gloss)"/> +<path d="M24 46c10-22 70-22 80 0" fill="none" stroke="#fff" stroke-opacity=".7" stroke-width="2" stroke-linecap="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/speaker.svg b/tools/pkg/chamesle-glass-icons/files/parts/speaker.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="box" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#4a525c"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<radialGradient id="cone" cx=".45" cy=".4" r=".6"><stop offset="0" stop-color="#9aa4ae"/><stop offset=".6" stop-color="#3a434c"/><stop offset="1" stop-color="#0a0c0f"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".4"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="40" ry="6" fill="url(#shadow)"/> +<rect x="28" y="8" width="72" height="108" rx="8" fill="url(#box)" stroke="#000" stroke-width="1.5"/> +<circle cx="64" cy="36" r="15" fill="url(#cone)" stroke="#000"/><circle cx="64" cy="36" r="5" fill="#5d6873"/> +<circle cx="64" cy="82" r="26" fill="url(#cone)" stroke="#000"/><circle cx="64" cy="82" r="9" fill="#5d6873"/> +<circle cx="64" cy="82" r="20" fill="none" stroke="#8fdcff" stroke-opacity=".5" stroke-width="1.5"/> +<path d="M28 16a8 8 0 0 1 8-8h56a8 8 0 0 1 8 8v4C78 28 50 50 28 80z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/store.svg b/tools/pkg/chamesle-glass-icons/files/parts/store.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="bag" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9ff07a"/><stop offset=".5" stop-color="#3aae3f"/><stop offset="1" stop-color="#1b7a2a"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".8"/><stop offset="1" stop-color="#fff" stop-opacity=".05"/></linearGradient> +<radialGradient id="badge" cx=".5" cy=".35" r=".7"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#d9f2dc"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="48" ry="7" fill="url(#shadow)"/> +<path d="M44 46V36a20 20 0 0 1 40 0v10" fill="none" stroke="#14591f" stroke-width="9" stroke-linecap="round"/> +<path d="M44 46V36a20 20 0 0 1 40 0v10" fill="none" stroke="#7fdc77" stroke-width="4" stroke-linecap="round"/> +<path d="M22 44h84l-6 60a7 7 0 0 1-7 6H35a7 7 0 0 1-7-6z" fill="url(#bag)" stroke="#11531c" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M25 47h78l-2.4 24C76 78 50 78 27.4 71z" fill="url(#gloss)" opacity=".7"/> +<circle cx="64" cy="82" r="17" fill="url(#badge)" stroke="#11531c" stroke-width="1.5"/> +<path d="M64 72v16M57 82l7 7 7-7" fill="none" stroke="#1f8a2e" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/term.svg b/tools/pkg/chamesle-glass-icons/files/parts/term.svg @@ -0,0 +1,20 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="frame" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#7d8794"/><stop offset=".5" stop-color="#3a414b"/><stop offset="1" stop-color="#1c2026"/></linearGradient> +<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#0f2430"/><stop offset="1" stop-color="#020507"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".35"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +<filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="2.5"/></filter> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<rect x="10" y="16" width="108" height="92" rx="10" fill="url(#frame)" stroke="#0d0f12" stroke-width="1.5"/> +<rect x="11.5" y="17.5" width="105" height="89" rx="9" fill="none" stroke="#fff" stroke-opacity=".35"/> +<rect x="18" y="30" width="92" height="70" rx="4" fill="url(#screen)" stroke="#000"/> +<g stroke="#5cff86" stroke-width="7" stroke-linecap="round" stroke-linejoin="round" fill="none" filter="url(#glow)" opacity=".8"> +<path d="M32 50l14 12-14 12M54 78h24"/> +</g> +<g stroke="#b8ffcc" stroke-width="5" stroke-linecap="round" stroke-linejoin="round" fill="none"> +<path d="M32 50l14 12-14 12M54 78h24"/> +</g> +<path d="M18 34a4 4 0 0 1 4-4h84a4 4 0 0 1 4 4v16C80 42 46 50 18 66z" fill="url(#gloss)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/tweaks.svg b/tools/pkg/chamesle-glass-icons/files/parts/tweaks.svg @@ -0,0 +1,18 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="panel" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset="1" stop-color="#c3cad2"/></linearGradient> +<radialGradient id="knob" cx=".4" cy=".3" r=".75"><stop offset="0" stop-color="#ffffff"/><stop offset=".55" stop-color="#bfe6ff"/><stop offset="1" stop-color="#2f8de4"/></radialGradient> +<linearGradient id="fill" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#1667b8"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".9"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="112" rx="54" ry="7" fill="url(#shadow)"/> +<rect x="10" y="16" width="108" height="90" rx="10" fill="url(#panel)" stroke="#4a545e" stroke-width="1.5"/> +<rect x="12" y="18" width="104" height="30" rx="9" fill="url(#gloss)" opacity=".6"/> +<g stroke="#4a545e" stroke-width="1.5"> +<rect x="24" y="34" width="80" height="8" rx="4" fill="#d9dfe5"/><rect x="24" y="34" width="58" height="8" rx="4" fill="url(#fill)"/> +<rect x="24" y="58" width="80" height="8" rx="4" fill="#d9dfe5"/><rect x="24" y="58" width="28" height="8" rx="4" fill="url(#fill)"/> +<rect x="24" y="82" width="80" height="8" rx="4" fill="#d9dfe5"/><rect x="24" y="82" width="70" height="8" rx="4" fill="url(#fill)"/> +<circle cx="82" cy="38" r="9" fill="url(#knob)"/><circle cx="52" cy="62" r="9" fill="url(#knob)"/><circle cx="94" cy="86" r="9" fill="url(#knob)"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/updater.svg b/tools/pkg/chamesle-glass-icons/files/parts/updater.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="shield" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9f5b5"/><stop offset=".5" stop-color="#3cbf2c"/><stop offset="1" stop-color="#1b6a14"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="40" ry="6" fill="url(#shadow)"/> +<path d="M64 8l44 14v34c0 30-20 50-44 60C40 106 20 86 20 56V22z" fill="url(#shield)" stroke="#0f4a0c" stroke-width="2" stroke-linejoin="round"/> +<path d="M64 14l38 12v20C82 54 46 54 26 46V26z" fill="url(#gloss)" opacity=".7"/> +<g fill="none" stroke="#0f4a0c" stroke-width="10" stroke-linecap="round"><path d="M44 62a20 20 0 0 1 36-12M84 66a20 20 0 0 1-36 12"/></g> +<g fill="none" stroke="#fff" stroke-width="6" stroke-linecap="round"><path d="M44 62a20 20 0 0 1 36-12M84 66a20 20 0 0 1-36 12"/></g> +<path d="M84 40v14H70z" fill="#fff" stroke="#0f4a0c" stroke-width="2" stroke-linejoin="round"/> +<path d="M44 88V74h14z" fill="#fff" stroke="#0f4a0c" stroke-width="2" stroke-linejoin="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/usb.svg b/tools/pkg/chamesle-glass-icons/files/parts/usb.svg @@ -0,0 +1,16 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#8fdcff"/><stop offset=".48" stop-color="#2f8de4"/><stop offset=".52" stop-color="#1a6dc4"/><stop offset="1" stop-color="#0f4f96"/></linearGradient> +<linearGradient id="plug" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#c3cad2"/><stop offset="1" stop-color="#7d8892"/></linearGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity=".05"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="108" rx="48" ry="7" fill="url(#shadow)"/> +<g transform="rotate(-35 64 64)"> +<rect x="82" y="50" width="30" height="28" rx="2" fill="url(#plug)" stroke="#4a545e" stroke-width="1.5"/> +<rect x="90" y="57" width="6" height="5" fill="#4a545e"/><rect x="100" y="57" width="6" height="5" fill="#4a545e"/> +<rect x="16" y="44" width="70" height="40" rx="10" fill="url(#body)" stroke="#0b3866" stroke-width="1.5"/> +<rect x="19" y="46" width="64" height="16" rx="8" fill="url(#gloss)" opacity=".75"/> +<circle cx="30" cy="64" r="5" fill="none" stroke="#0b3866" stroke-width="2"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/video.svg b/tools/pkg/chamesle-glass-icons/files/parts/video.svg @@ -0,0 +1,19 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="film" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#4a525c"/><stop offset="1" stop-color="#0d0f12"/></linearGradient> +<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1f7fd6"/><stop offset=".6" stop-color="#4fc3e8"/><stop offset="1" stop-color="#bff0d0"/></linearGradient> +<radialGradient id="play" cx=".5" cy=".3" r=".75"><stop offset="0" stop-color="#ffc9a8"/><stop offset=".55" stop-color="#e0583e"/><stop offset="1" stop-color="#9a2a12"/></radialGradient> +<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".85"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="112" rx="56" ry="7" fill="url(#shadow)"/> +<g transform="rotate(-8 64 60)"> +<rect x="8" y="22" width="112" height="76" rx="5" fill="url(#film)" stroke="#000" stroke-width="1.5"/> +<g fill="#e8edf2"><rect x="14" y="27" width="8" height="6" rx="1"/><rect x="30" y="27" width="8" height="6" rx="1"/><rect x="46" y="27" width="8" height="6" rx="1"/><rect x="62" y="27" width="8" height="6" rx="1"/><rect x="78" y="27" width="8" height="6" rx="1"/><rect x="94" y="27" width="8" height="6" rx="1"/><rect x="110" y="27" width="6" height="6" rx="1"/> +<rect x="14" y="87" width="8" height="6" rx="1"/><rect x="30" y="87" width="8" height="6" rx="1"/><rect x="46" y="87" width="8" height="6" rx="1"/><rect x="62" y="87" width="8" height="6" rx="1"/><rect x="78" y="87" width="8" height="6" rx="1"/><rect x="94" y="87" width="8" height="6" rx="1"/><rect x="110" y="87" width="6" height="6" rx="1"/></g> +<rect x="14" y="38" width="100" height="44" fill="url(#screen)"/> +</g> +<circle cx="64" cy="60" r="24" fill="url(#play)" stroke="#5a1006" stroke-width="1.5"/> +<path d="M57 48l18 12-18 12z" fill="#fff"/> +<ellipse cx="64" cy="48" rx="17" ry="9" fill="url(#gloss)" opacity=".75"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/viewer.svg b/tools/pkg/chamesle-glass-icons/files/parts/viewer.svg @@ -0,0 +1,18 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="paper" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset="1" stop-color="#dde5ec"/></linearGradient> +<radialGradient id="glass" cx=".4" cy=".35" r=".7"><stop offset="0" stop-color="#ffffff" stop-opacity=".9"/><stop offset=".6" stop-color="#bfe6ff" stop-opacity=".5"/><stop offset="1" stop-color="#5fb0ff" stop-opacity=".6"/></radialGradient> +<linearGradient id="handle" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#5d6873"/><stop offset=".5" stop-color="#262c32"/><stop offset="1" stop-color="#0a0c0f"/></linearGradient> +<linearGradient id="band" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e0452c"/><stop offset="1" stop-color="#b8301c"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="118" rx="48" ry="6" fill="url(#shadow)"/> +<path d="M24 8h48l22 22v78a6 6 0 0 1-6 6H24a6 6 0 0 1-6-6V14a6 6 0 0 1 6-6z" fill="url(#paper)" stroke="#6f7c89" stroke-width="1.5"/> +<path d="M72 8v16a6 6 0 0 0 6 6h16" fill="#e6edf3" stroke="#6f7c89" stroke-width="1.5"/> +<rect x="26" y="18" width="40" height="12" rx="2" fill="url(#band)"/> +<g stroke="#8fa0b0" stroke-width="3" stroke-linecap="round"><path d="M28 46h50M28 56h40M28 66h46M28 76h30"/></g> +<path d="M88 92l24 22" stroke="url(#handle)" stroke-width="12" stroke-linecap="round"/> +<circle cx="74" cy="78" r="24" fill="url(#glass)" stroke="#3a434c" stroke-width="6"/> +<circle cx="74" cy="78" r="24" fill="none" stroke="#c3cad2" stroke-width="2"/> +<ellipse cx="66" cy="68" rx="9" ry="5" fill="#fff" opacity=".8" transform="rotate(-30 66 68)"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/volume.svg b/tools/pkg/chamesle-glass-icons/files/parts/volume.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="body" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6f8fa"/><stop offset=".5" stop-color="#c3cad2"/><stop offset="1" stop-color="#7d8892"/></linearGradient> +<radialGradient id="cone" cx=".3" cy=".4" r=".8"><stop offset="0" stop-color="#8fdcff"/><stop offset="1" stop-color="#0f4f96"/></radialGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="60" cy="110" rx="50" ry="7" fill="url(#shadow)"/> +<path d="M14 44h20l30-26v92L34 84H14z" fill="url(#body)" stroke="#3a434c" stroke-width="2" stroke-linejoin="round"/> +<path d="M34 44l30-26v92L34 84z" fill="url(#cone)" stroke="#0b3866" stroke-width="2" stroke-linejoin="round"/> +<path d="M18 48h14" stroke="#fff" stroke-width="3" stroke-linecap="round"/> +<g fill="none" stroke-linecap="round"> +<path d="M78 46a24 24 0 0 1 0 36M90 34a40 40 0 0 1 0 60M102 22a56 56 0 0 1 0 84" stroke="#0b3866" stroke-width="9"/> +<path d="M78 46a24 24 0 0 1 0 36M90 34a40 40 0 0 1 0 60M102 22a56 56 0 0 1 0 84" stroke="#8fdcff" stroke-width="5"/> +</g> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/webcam.svg b/tools/pkg/chamesle-glass-icons/files/parts/webcam.svg @@ -0,0 +1,17 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<radialGradient id="ball" cx=".4" cy=".3" r=".75"><stop offset="0" stop-color="#ffffff"/><stop offset=".6" stop-color="#d9dfe5"/><stop offset="1" stop-color="#8a95a1"/></radialGradient> +<radialGradient id="lens" cx=".4" cy=".35" r=".7"><stop offset="0" stop-color="#9fe8ff"/><stop offset=".4" stop-color="#1f5fa8"/><stop offset="1" stop-color="#050a14"/></radialGradient> +<linearGradient id="metal" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="116" rx="36" ry="6" fill="url(#shadow)"/> +<path d="M56 86h16l6 22H50z" fill="url(#metal)" stroke="#4a545e"/> +<ellipse cx="64" cy="110" rx="28" ry="6" fill="url(#metal)" stroke="#4a545e"/> +<circle cx="64" cy="54" r="42" fill="url(#ball)" stroke="#4a545e" stroke-width="1.5"/> +<circle cx="64" cy="56" r="20" fill="#262c32"/> +<circle cx="64" cy="56" r="15" fill="url(#lens)"/> +<ellipse cx="59" cy="50" rx="6" ry="4" fill="#fff" opacity=".65"/> +<circle cx="88" cy="34" r="3.5" fill="#2fd35a"/> +<ellipse cx="54" cy="26" rx="26" ry="12" fill="#fff" opacity=".6"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/wine.svg b/tools/pkg/chamesle-glass-icons/files/parts/wine.svg @@ -0,0 +1,14 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="glass" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#dff5ff" stop-opacity=".35"/><stop offset=".3" stop-color="#ffffff" stop-opacity=".15"/><stop offset="1" stop-color="#9fc8dc" stop-opacity=".35"/></linearGradient> +<linearGradient id="wine" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c8163e"/><stop offset="1" stop-color="#5a0418"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="116" rx="34" ry="6" fill="url(#shadow)"/> +<path d="M34 50h60c0 18-12 30-30 30S34 68 34 50z" fill="url(#wine)"/> +<ellipse cx="64" cy="50" rx="30" ry="5" fill="#e0405e"/> +<path d="M30 10h68c4 26 2 48-6 60-6 8-16 12-28 12s-22-4-28-12c-8-12-10-34-6-60z" fill="url(#glass)" stroke="#4a7a8a" stroke-opacity=".8" stroke-width="1.5"/> +<path d="M62 82h4v24h-4z" fill="url(#glass)" stroke="#4a7a8a" stroke-opacity=".8"/> +<ellipse cx="64" cy="110" rx="26" ry="6" fill="url(#glass)" stroke="#4a7a8a" stroke-opacity=".8" stroke-width="1.5"/> +<path d="M38 16c-2 20 0 40 8 50" fill="none" stroke="#fff" stroke-opacity=".9" stroke-width="5" stroke-linecap="round"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/parts/zip.svg b/tools/pkg/chamesle-glass-icons/files/parts/zip.svg @@ -0,0 +1,18 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> +<defs> +<linearGradient id="top" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f6d9a6"/><stop offset="1" stop-color="#d9a65f"/></linearGradient> +<linearGradient id="left" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#e2b26a"/><stop offset="1" stop-color="#a8723a"/></linearGradient> +<linearGradient id="right" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#c9924f"/><stop offset="1" stop-color="#8a5a28"/></linearGradient> +<linearGradient id="metal" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#ffffff"/><stop offset=".5" stop-color="#b9c1ca"/><stop offset="1" stop-color="#6f7a86"/></linearGradient> +<radialGradient id="shadow"><stop offset="0" stop-color="#000" stop-opacity=".45"/><stop offset="1" stop-color="#000" stop-opacity="0"/></radialGradient> +</defs> +<ellipse cx="64" cy="114" rx="52" ry="7" fill="url(#shadow)"/> +<path d="M64 16l50 20-50 20-50-20z" fill="url(#top)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M14 36l50 20v56L14 92z" fill="url(#left)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M114 36L64 56v56l50-20z" fill="url(#right)" stroke="#6b4318" stroke-width="1.5" stroke-linejoin="round"/> +<path d="M64 56v56" stroke="#3a434c" stroke-width="7"/> +<path d="M64 60v48" stroke="#c3cad2" stroke-width="5" stroke-dasharray="3 3"/> +<path d="M14 36l50 20 50-20" fill="none" stroke="#fff" stroke-opacity=".5" stroke-width="1.5"/> +<rect x="58" y="62" width="12" height="16" rx="3" fill="url(#metal)" stroke="#262c32" stroke-width="1.5"/> +<rect x="61" y="76" width="6" height="14" rx="3" fill="url(#metal)" stroke="#262c32" stroke-width="1.5"/> +</svg> diff --git a/tools/pkg/chamesle-glass-icons/files/sheet.py b/tools/pkg/chamesle-glass-icons/files/sheet.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python3 +# renders every drawing in a theme into one picture, to look at +import os, sys, gi +gi.require_version('Rsvg', '2.0') +from gi.repository import Rsvg +import cairo +from PIL import Image, ImageDraw, ImageFont + +root, out = sys.argv[1], sys.argv[2] +size = int(sys.argv[3]) if len(sys.argv) > 3 else 96 +items = [] +for cat in ['places', 'devices', 'mimetypes', 'apps']: + d = os.path.join(root, 'scalable', cat) + for f in sorted(os.listdir(d)): + p = os.path.join(d, f) + if not os.path.islink(p): + items.append((cat, f[:-4], p)) +cols = 10 +cw, ch = size + 40, size + 34 +img = Image.new('RGBA', (cols * cw, ((len(items) + cols - 1) // cols) * ch), (214, 230, 242, 255)) +font = ImageFont.truetype('/usr/share/fonts/noto/NotoSans-Regular.ttf', 12) +d = ImageDraw.Draw(img) +for i, (cat, name, p) in enumerate(items): + h = Rsvg.Handle.new_from_file(p) + s = cairo.ImageSurface(cairo.FORMAT_ARGB32, size, size) + v = Rsvg.Rectangle(); v.x = v.y = 0; v.width = v.height = size + h.render_document(cairo.Context(s), v) + tmp = out + '.tmp.png' + s.write_to_png(tmp) + x, y = (i % cols) * cw, (i // cols) * ch + img.alpha_composite(Image.open(tmp).convert('RGBA'), (x + 20, y + 4)) + t = name if len(name) < 20 else name[:19] + '…' + d.text((x + cw // 2, y + size + 8), t, font=font, fill=(20, 30, 40), anchor='mt') +os.remove(out + '.tmp.png') +img.save(out) +print(len(items), 'drawn') diff --git a/tools/pkg/chamesle-glass-icons/recipe b/tools/pkg/chamesle-glass-icons/recipe @@ -0,0 +1,15 @@ +name=chamesle-glass-icons +version=0.7 +rel=2 +desc="Chamesle Glass icons: Oxygen with the Chamesle orb, store, updater and the 2007 firefox logo" +url=https://chamesle.org +license="GPL-3.0-or-later AND MPL-1.1" +source= +makedeps="python3" +depends="oxygen-icons5 breeze-icons" + +# the icons are drawn in parts/, make.py builds the theme from them +# firefox.png is mozilla's 2004-2009 logo, released under the mpl +build() { + python3 make.py "$pkgdir/usr/share/icons" +} diff --git a/tools/pkg/chamesle-glass/files/make.py b/tools/pkg/chamesle-glass/files/make.py @@ -0,0 +1,813 @@ +#!/usr/bin/env python3 +# chamesle glass: window frames, buttons and panels for every desktop +# make.py SHARE writes SHARE/themes, SHARE/aurorae, SHARE/plasma, SHARE/color-schemes +import os, sys, math +from PIL import Image, ImageDraw + +NAME = 'Chamesle-Glass' +TINT = (60, 145, 215) +TH = 30 # title height, top border included +B = 6 # side and bottom borders +R = 7 # corner radius +BH = 20 # caption buttons hang this far down +BW = {'hide': 28, 'maximize': 27, 'close': 48} +ORDER = ['hide', 'maximize', 'close'] +MW = {'hide': 30, 'maximize': 30, 'close': 30} # metacity has one width for all + +# one row of glass: tint under a shine that stops sharp at the middle +def glass(y, h, a, x=0): + t = y / max(1, h - 1) + w = .46 - .30 * t / .5 if t < .5 else .10 * (t - .5) / .5 + if (x + y * .47) % 120 < 18: + w += .07 + al = w + a * (1 - w) + c = [int((255 * w + TINT[i] * a * (1 - w)) / max(al, .001)) for i in range(3)] + return (*c, int(255 * al)) + +def mix(p, q, k): + return tuple(int(p[i] * (1 - k) + q[i] * k) for i in range(4)) + +# the whole frame at size w x h, cut into pieces later +def frame(w, h, active): + a = .60 if active else .33 + im = Image.new('RGBA', (w, h)) + px = im.load() + for y in range(h): + for x in range(w): + px[x, y] = glass(min(y, TH - 1), TH, a, x) + mb = Image.new('L', (w, h), 0) + ImageDraw.Draw(mb).rounded_rectangle((0, 0, w - 1, h - 1), R, fill=255) + k = Image.composite(im, Image.new('RGBA', (w, h)), mb) + d = ImageDraw.Draw(k) + d.rounded_rectangle((0, 0, w - 1, h - 1), R, outline=(0, 0, 0, 150)) + d.rounded_rectangle((1, 1, w - 2, h - 2), R - 1, outline=(255, 255, 255, 115 if active else 70)) + # the window sits in a hole; a thin dark line and a white one around it + d.rectangle((B - 1, TH - 1, w - B, h - B), outline=(255, 255, 255, 90)) + d.rectangle((B, TH, w - B - 1, h - B - 1), fill=(0, 0, 0, 0), outline=(0, 0, 0, 120)) + return k + +def glyph(d, kind, x, y, w, h, s=1): + cx, cy = x + w / 2, y + h / 2 + dk, wh = (20, 30, 45, 230), (255, 255, 255, 255) + def box(x0, y0, x1, y1, c, wd=0, f=None): + d.rectangle((cx + x0 * s, cy + y0 * s, cx + x1 * s, cy + y1 * s), fill=f, outline=c, width=int(wd * s)) + if kind == 'hide': + box(-5.5, 1.5, 5.5, 5.5, None, 0, dk); box(-4.5, 2.5, 4.5, 4.5, None, 0, wh) + elif kind == 'maximize': + box(-6.5, -5.5, 6.5, 5.5, dk, 4); box(-5.5, -4.5, 5.5, 4.5, wh, 2) + elif kind == 'restore': + for ox, oy in ((2, -3), (-2, 1)): + box(-4.5 + ox, -3.5 + oy, 4.5 + ox, 3.5 + oy, dk, 3); box(-3.5 + ox, -2.5 + oy, 3.5 + ox, 2.5 + oy, wh, 1.2) + elif kind == 'close': + xs = [((cx - 5 * s, cy - 4 * s), (cx + 5 * s, cy + 4 * s)), ((cx - 5 * s, cy + 4 * s), (cx + 5 * s, cy - 4 * s))] + for p in xs: + d.line(p, fill=dk, width=int(5 * s)) + for p in xs: + d.line(p, fill=wh, width=int(2.6 * s)) + +def fill(state, red, active): + if red: + top, bot = {'prelight': ((255, 190, 170), (232, 72, 40)), 'pressed': ((190, 110, 90), (150, 35, 20))}.get(state, ((238, 160, 140), (200, 60, 40))) + al = 240 if active or state != 'normal' else 130 + else: + top, bot = {'prelight': ((225, 245, 255), (90, 175, 240)), 'pressed': ((150, 190, 225), (60, 110, 165))}.get(state, ((235, 245, 252), (150, 185, 215))) + al = 255 if state != 'normal' else (150 if active else 90) + return top, bot, al + +# the three buttons are drawn as one strip and cut apart, so they join +def button(kind, state, active, w=None, widths=None): + base = 'maximize' if kind == 'restore' else kind + ws = dict(widths or BW) + if w: + ws[base] = w + tw = sum(ws[k] for k in ORDER) + im = Image.new('RGBA', (tw, BH)) + px = im.load() + x0 = 0 + for k in ORDER: + top, bot, al = fill(state if k == base else 'normal', k == 'close', active) + for y in range(BH): + t = y / (BH - 1) + c = [int(top[i] + (bot[i] - top[i]) * t) for i in range(3)] + if t < .5: + c = [int(v + (255 - v) * .45) for v in c] + for x in range(x0, x0 + ws[k]): + px[x, y] = (*c, al) + x0 += ws[k] + m = Image.new('L', (tw, BH), 0) + ImageDraw.Draw(m).rounded_rectangle((0, -8, tw - 1, BH - 1), 6, fill=255) + im = Image.composite(im, Image.new('RGBA', (tw, BH)), m) + d = ImageDraw.Draw(im) + d.rounded_rectangle((0, -8, tw - 1, BH - 1), 6, outline=(0, 0, 0, 170)) + d.rounded_rectangle((1, -8, tw - 2, BH - 2), 5, outline=(255, 255, 255, 120)) + x0 = 0 + for k in ORDER: + if k == base: + break + x0 += ws[k] + if x0: + d.line((x0, 0, x0, BH - 2), fill=(0, 0, 0, 150)) + d.line((x0 + 1, 1, x0 + 1, BH - 3), fill=(255, 255, 255, 90)) + if base != ORDER[-1]: + e = x0 + ws[base] + d.line((e, 0, e, BH - 2), fill=(0, 0, 0, 150)) + # symbols at 4x, scaled down so they come out smooth + S = 4 + g = Image.new('RGBA', (ws[base] * S, BH * S)) + glyph(ImageDraw.Draw(g), kind, 0, 0, ws[base] * S, BH * S, S) + im.alpha_composite(g.resize((ws[base], BH), Image.LANCZOS), (x0, 0)) + return im.crop((x0, 0, x0 + ws[base], BH)) + +# window managers without alpha in frames: glass over a sky colour, edges cut sharp +def flat(im): + w, h = im.size + back = Image.new('RGBA', (w, h)) + px = back.load() + for y in range(h): + t = min(y, TH) / TH + c = tuple(int(a + (b - a) * t) for a, b in zip((150, 188, 222), (104, 150, 196))) + for x in range(w): + px[x, y] = (*c, 255) + back.alpha_composite(im) + m = im.getchannel('A').point(lambda v: 255 if v > 40 else 0) + back.putalpha(m) + return back + +def save(im, *p): + f = os.path.join(*p) + os.makedirs(os.path.dirname(f), exist_ok=True) + im.save(f) + +# a button on its piece of title, for window managers that don't blend them +def on_title(btn, active, x0, h=TH): + a = .60 if active else .33 + im = Image.new('RGBA', (btn.width, h)) + px = im.load() + for y in range(h): + for x in range(btn.width): + px[x, y] = glass(y, TH, a, x0 + x) + ImageDraw.Draw(im).line((0, 0, btn.width, 0), fill=(0, 0, 0, 150)) + ImageDraw.Draw(im).line((0, 1, btn.width, 1), fill=(255, 255, 255, 115 if active else 70)) + im.alpha_composite(btn, (0, 1)) + return im + +STATES = {'normal': 'active', 'prelight': 'prelight', 'pressed': 'pressed'} + +def xfwm4(out): + d = os.path.join(out, 'themes', NAME, 'xfwm4') + W, H = 240, 120 + for act in (True, False): + f = flat(frame(W, H, act)) + s = 'active' if act else 'inactive' + save(f.crop((0, 0, R + 1, TH)), d, 'top-left-%s.png' % s) + save(f.crop((W - R - 1, 0, W, TH)), d, 'top-right-%s.png' % s) + for i in range(1, 6): + save(f.crop((R + 1, 0, R + 1 + 120, TH)), d, 'title-%d-%s.png' % (i, s)) + save(f.crop((0, TH, B, TH + 20)), d, 'left-%s.png' % s) + save(f.crop((W - B, TH, W, TH + 20)), d, 'right-%s.png' % s) + save(f.crop((0, H - B, R + 1, H)), d, 'bottom-left-%s.png' % s) + save(f.crop((W - R - 1, H - B, W, H)), d, 'bottom-right-%s.png' % s) + save(f.crop((R + 1, H - B, R + 21, H)), d, 'bottom-%s.png' % s) + x = 0 + for k in ORDER + ['maximize-toggled']: + kind = 'restore' if k == 'maximize-toggled' else k + for st, name in STATES.items(): + if not act and st != 'normal': + continue + b = flat(on_title(button(kind, st, act), act, x)) + save(b, d, '%s-%s.png' % (k, name if act else 'inactive')) + if k != 'maximize-toggled': + x += BW[k] + open(os.path.join(d, 'themerc'), 'w').write('''button_offset=0 +button_spacing=0 +full_width_title=true +title_alignment=left +title_horizontal_offset=6 +title_vertical_offset_active=1 +title_vertical_offset_inactive=1 +title_shadow_active=false +title_shadow_inactive=false +active_text_color=#0f2030 +inactive_text_color=#3a4b5c +maximized_offset=0 +shadow_delta_height=2 +shadow_delta_width=0 +shadow_delta_x=0 +shadow_delta_y=-4 +shadow_opacity=45 +''') + +# marco and muffin read the same metacity theme +def metacity(out): + d = os.path.join(out, 'themes', NAME, 'metacity-1') + W, H = 240, 120 + for act in (True, False): + f = flat(frame(W, H, act)) + s = 'active' if act else 'inactive' + for n, box in {'tl': (0, 0, R + 1, TH), 'title': (R + 1, 0, R + 121, TH), 'tr': (W - R - 1, 0, W, TH), + 'l': (0, TH, B, TH + 20), 'r': (W - B, TH, W, TH + 20), + 'bl': (0, H - B, R + 1, H), 'b': (R + 1, H - B, R + 21, H), 'br': (W - R - 1, H - B, W, H)}.items(): + save(f.crop(box), d, '%s-%s.png' % (n, s)) + for k in ORDER + ['restore']: + for st in ('normal', 'prelight', 'pressed'): + save(flat(on_title(button(k, st, act, widths=MW), act, 0, BH + 1)), d, '%s-%s-%s.png' % (k, st, s)) + def img(f, x, y, w, h, fill='tile'): + return '<image filename="%s" x="%s" y="%s" width="%s" height="%s" fill_type="%s"/>' % (f, x, y, w, h, fill) + def ops(s): + return ''.join([ + img('tl-%s.png' % s, 0, 0, R + 1, TH), + img('title-%s.png' % s, R + 1, 0, 'width-%d' % (2 * R + 2), TH), + img('tr-%s.png' % s, 'width-%d' % (R + 1), 0, R + 1, TH), + img('l-%s.png' % s, 0, TH, B, 'height-%d' % (TH + B)), + img('r-%s.png' % s, 'width-%d' % B, TH, B, 'height-%d' % (TH + B)), + img('bl-%s.png' % s, 0, 'height-%d' % B, R + 1, B), + img('b-%s.png' % s, R + 1, 'height-%d' % B, 'width-%d' % (2 * R + 2), B), + img('br-%s.png' % s, 'width-%d' % (R + 1), 'height-%d' % B, R + 1, B)]) + def btn(fn, k): + o = [] + for st in ('normal', 'prelight', 'pressed'): + o.append('<button function="%s" state="%s"><draw_ops>%s</draw_ops></button>' % (fn, st, + img('%s-%s-active.png' % (k, st), 0, 0, 'width', 'height', 'scale'))) + return ''.join(o) + def btn_in(fn, k): + return ''.join('<button function="%s" state="%s"><draw_ops>%s</draw_ops></button>' % (fn, st, + img('%s-normal-inactive.png' % k, 0, 0, 'width', 'height', 'scale')) for st in ('normal', 'prelight', 'pressed')) + none = ''.join('<button function="%s" state="%s"><draw_ops></draw_ops></button>' % (f, s) + for f in ('menu', 'shade', 'unshade', 'above', 'unabove', 'stick', 'unstick', + 'left_left_background', 'left_middle_background', 'left_right_background', + 'right_left_background', 'right_middle_background', 'right_right_background') for s in ('normal', 'prelight', 'pressed')) + xml = '''<?xml version="1.0"?> +<metacity_theme> +<info><name>%s</name><author>Chamesle</author><copyright>GPL-3.0-or-later</copyright><date>2026</date><description>Chamesle Glass</description></info> +<frame_geometry name="normal" title_scale="medium" rounded_top_left="%d" rounded_top_right="%d" rounded_bottom_left="%d" rounded_bottom_right="%d"> +<distance name="left_width" value="%d"/><distance name="right_width" value="%d"/><distance name="bottom_height" value="%d"/> +<distance name="left_titlebar_edge" value="8"/><distance name="right_titlebar_edge" value="8"/> +<distance name="title_vertical_pad" value="4"/> +<border name="title_border" left="2" right="2" top="1" bottom="0"/> +<border name="button_border" left="0" right="0" top="0" bottom="0"/> +<distance name="button_width" value="30"/><distance name="button_height" value="%d"/> +</frame_geometry> +<frame_geometry name="max" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false"> +<distance name="left_width" value="0"/><distance name="right_width" value="0"/><distance name="bottom_height" value="0"/> +</frame_geometry> +<draw_ops name="title_active"><title x="2" y="(height - title_height) / 2" color="#0f2030"/></draw_ops> +<draw_ops name="title_inactive"><title x="2" y="(height - title_height) / 2" color="#3a4b5c"/></draw_ops> +<draw_ops name="frame_active">%s</draw_ops> +<draw_ops name="frame_inactive">%s</draw_ops> +<frame_style name="active" geometry="normal"> +<piece position="entire_background" draw_ops="frame_active"/><piece position="title" draw_ops="title_active"/> +%s%s%s%s +</frame_style> +<frame_style name="inactive" geometry="normal"> +<piece position="entire_background" draw_ops="frame_inactive"/><piece position="title" draw_ops="title_inactive"/> +%s%s%s%s +</frame_style> +<frame_style name="max_active" geometry="max" parent="active"/> +<frame_style name="max_inactive" geometry="max" parent="inactive"/> +<frame_style_set name="normal"> +<frame focus="yes" state="normal" resize="both" style="active"/><frame focus="no" state="normal" resize="both" style="inactive"/> +<frame focus="yes" state="maximized" style="max_active"/><frame focus="no" state="maximized" style="max_inactive"/> +<frame focus="yes" state="shaded" style="active"/><frame focus="no" state="shaded" style="inactive"/> +<frame focus="yes" state="maximized_and_shaded" style="max_active"/><frame focus="no" state="maximized_and_shaded" style="max_inactive"/> +</frame_style_set> +<window type="normal" style_set="normal"/><window type="dialog" style_set="normal"/><window type="modal_dialog" style_set="normal"/> +<window type="menu" style_set="normal"/><window type="utility" style_set="normal"/><window type="border" style_set="normal"/> +</metacity_theme> +''' % (NAME, R, R, 0, 0, B, B, B, BH, ops('active'), ops('inactive'), + btn('close', 'close'), btn('maximize', 'maximize'), btn('minimize', 'hide'), none, + btn_in('close', 'close'), btn_in('maximize', 'maximize'), btn_in('minimize', 'hide'), none) + # restore uses its own glyph + xml = xml.replace('<frame_style name="max_active" geometry="max" parent="active"/>', + '<frame_style name="max_active" geometry="max" parent="active">%s</frame_style>' % btn('maximize', 'restore')) + xml = xml.replace('<frame_style name="max_inactive" geometry="max" parent="inactive"/>', + '<frame_style name="max_inactive" geometry="max" parent="inactive">%s</frame_style>' % btn_in('maximize', 'restore')) + for v in ('2', '3'): + open(os.path.join(d, 'metacity-theme-%s.xml' % v), 'w').write(xml) + +GTK = '''@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained.css"); +/* chamesle glass: adwaita underneath, 2007 on top */ +@define-color theme_selected_bg_color #3d8ee0; +@define-color accent #3d8ee0; +@define-color glass rgba(60, 145, 215, .6); + +button, .button { + border: 1px solid #7a8a99; + border-radius: 3px; + background-image: linear-gradient(to bottom, #fbfcfd 0%, #eef1f4 48%, #dde3e9 50%, #cfd6dd 100%); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); + text-shadow: none; +} +button:hover { + border-color: #3c7fb1; + background-image: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 48%, #bee6fd 50%, #a7d9f5 100%); +} +button:active, button:checked { + border-color: #2c628b; + background-image: linear-gradient(to bottom, #c2e4f6 0%, #a9d9f2 48%, #90cbeb 50%, #6fb8e0 100%); + box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); +} +button.suggested-action { + border-color: #2c628b; color: #fff; + background-image: linear-gradient(to bottom, #8fd0f7 0%, #4ea6e6 48%, #2f87d0 50%, #3b98dc 100%); +} +button.destructive-action { + border-color: #8b2c1d; color: #fff; + background-image: linear-gradient(to bottom, #f5a48c 0%, #e0583e 48%, #c2341b 50%, #db4d30 100%); +} +button.flat, button.titlebutton, .sidebar button, headerbar button.image-button:not(:hover) { background-image: none; border-color: transparent; box-shadow: none; } + +entry { + border: 1px solid #abadb3; border-top-color: #707070; border-radius: 2px; + background-color: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); +} +entry:focus { border-color: #3d8ee0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px rgba(61, 142, 224, .35); } + +headerbar, .titlebar:not(headerbar) { + border-bottom: 1px solid rgba(0, 0, 0, .45); + background-image: linear-gradient(to bottom, rgba(255,255,255,.46) 0%, rgba(255,255,255,.16) 46%, rgba(255,255,255,0) 50%, rgba(255,255,255,.1) 100%); + background-color: #5aa3dc; + box-shadow: inset 0 1px rgba(255, 255, 255, .45); + color: #0f2030; +} +headerbar:backdrop { background-color: #a9c6dc; } +headerbar .title { font-weight: normal; } + +menu, .menu, .context-menu, popover.menu > contents { + border: 1px solid #979797; border-radius: 0; + background-color: #f0f0f0; + background-image: linear-gradient(to right, transparent 28px, #e2e3e3 28px, #e2e3e3 29px, #fff 29px, #fff 30px, transparent 30px); + padding: 2px; +} +menu menuitem:hover, .menu menuitem:hover, popover.menu modelbutton:hover { + border: 1px solid #a8d8eb; border-radius: 3px; color: #000; + background-image: linear-gradient(to bottom, #f1f8fb, #d6ecf6); +} + +progressbar trough { border: 1px solid #8a8a8a; border-radius: 3px; background-image: linear-gradient(to bottom, #f3f3f3, #dcdcdc 50%, #cfcfcf 50%, #e6e6e6); min-height: 14px; } +progressbar progress { + border: 1px solid #1d8a1d; border-radius: 2px; min-height: 12px; + background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.7) 1px, transparent 2px), + radial-gradient(circle at 60% 30%, rgba(255,255,255,.6) 1px, transparent 2px), + linear-gradient(to bottom, #a8f0a0 0%, #3fd23a 48%, #1fb31a 50%, #39cc33 100%); + background-size: 24px 12px, 34px 12px, auto; +} + +scale trough { border: 1px solid #a0a0a0; border-radius: 3px; background-image: linear-gradient(to bottom, #e7eaea, #fff); min-height: 4px; } +scale highlight { border-radius: 3px; background-image: linear-gradient(to bottom, #8fd0f7, #3b98dc); } +scale slider { border: 1px solid #3c7fb1; border-radius: 50%%; background-image: radial-gradient(circle at 50%% 30%%, #fff, #bfe6ff 55%%, #4ea6e6); min-width: 16px; min-height: 16px; } + +check, radio { border: 1px solid #8e8f8f; background-image: linear-gradient(to bottom, #f4f4f4, #dedede); } +check:checked, radio:checked { border-color: #3c7fb1; background-color: #3d8ee0; } + +notebook > header tab { border: 1px solid #898c95; border-bottom: none; border-radius: 3px 3px 0 0; margin: 0 1px; background-image: linear-gradient(to bottom, #f2f2f2, #ebebeb 50%, #dddddd 50%, #cfcfcf); } +notebook > header tab:checked { background-image: none; background-color: #fff; } + +selection, *:selected, row:selected, treeview.view:selected, iconview:selected, flowboxchild:selected { + color: #000; + background-color: #cce8ff; + background-image: linear-gradient(to bottom, #dcebfc, #c1dcfc); +} +row:hover:not(:selected) { background-image: linear-gradient(to bottom, #fafbfd, #ebf3fd); } +.sidebar, placessidebar list { background-color: #f1f5fb; } + +tooltip.background { border: 1px solid #767676; border-radius: 2px; background-image: linear-gradient(to bottom, #fff, #e4e5f0); color: #3a3a3a; } +tooltip * { color: #3a3a3a; } + +/* caption buttons hang from the top edge, joined, close in red */ +window headerbar button.titlebutton.titlebutton, window .titlebar button.titlebutton.titlebutton { + margin: -6px 0 0 0; padding: 0 6px; min-height: 18px; min-width: 16px; + border: 1px solid rgba(0, 0, 0, .6); border-top: none; border-radius: 0; + background-image: linear-gradient(to bottom, #f3f8fc 0%, #dfe9f2 50%, #b5cadd 50%, #96b9d7 100%); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); + color: #fff; -gtk-icon-shadow: 0 0 2px #141e2d, 0 0 1px #141e2d; +} +window headerbar button.titlebutton.titlebutton:hover, window .titlebar button.titlebutton.titlebutton:hover { background-image: linear-gradient(to bottom, #e1f5ff 0%, #b8e1fa 50%, #6fbaf0 50%, #5aaee8 100%); } +window headerbar button.titlebutton.titlebutton.minimize, window .titlebar button.titlebutton.titlebutton.minimize { border-radius: 0 0 0 5px; } +window headerbar button.titlebutton.titlebutton.close, window .titlebar button.titlebutton.titlebutton.close { + min-width: 30px; border-radius: 0 0 5px 0; + background-image: linear-gradient(to bottom, #f5c1b2 0%, #e8907a 50%, #d0442a 50%, #c8432b 100%); +} +window headerbar button.titlebutton.titlebutton.close:hover, window .titlebar button.titlebutton.titlebutton.close:hover { background-image: linear-gradient(to bottom, #ffd3c6 0%, #f8a088 50%, #e8481f 50%, #e05a3a 100%); } +window headerbar button.titlebutton.titlebutton + button.titlebutton, window .titlebar button.titlebutton.titlebutton + button.titlebutton { border-left: none; } + +/* panels: dark glass */ +.xfce4-panel.background, PanelToplevel, .mate-panel-menu-bar, #PanelApplet, panel-toplevel, .mate-panel { + background-color: rgba(25, 50, 75, .62); + background-image: linear-gradient(to bottom, rgba(255,255,255,.32) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 50%, rgba(255,255,255,.06) 100%); + border-top: 1px solid rgba(0, 0, 0, .55); + box-shadow: inset 0 1px rgba(255, 255, 255, .35); + color: #fff; +} +.xfce4-panel button, .mate-panel-menu-bar button, PanelToplevel button { background-image: none; border-color: transparent; box-shadow: none; color: #fff; } +.xfce4-panel button:hover, PanelToplevel button:hover { + border-color: rgba(255, 255, 255, .45); + background-image: linear-gradient(to bottom, rgba(255,255,255,.3), rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 50%, rgba(255,255,255,.12)); +} +.xfce4-panel button:checked, PanelToplevel button:checked { + border-color: rgba(255, 255, 255, .55); + background-image: radial-gradient(ellipse at 50% 120%, rgba(60,145,215,1) 0%, rgba(60,145,215,.35) 55%, rgba(255,255,255,.12) 100%); +} +.xfce4-panel label, PanelToplevel label, .mate-panel label { color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, .8); } +'''.replace('%%', '%') + +def gtk(out): + d = os.path.join(out, 'themes', NAME) + os.makedirs(os.path.join(d, 'gtk-3.0'), exist_ok=True) + open(os.path.join(d, 'gtk-3.0', 'gtk.css'), 'w').write(GTK) + open(os.path.join(d, 'index.theme'), 'w').write('''[Desktop Entry] +Type=X-GNOME-Metatheme +Name=%s +Comment=Glass frames and glossy buttons, like 2007 + +[X-GNOME-Metatheme] +GtkTheme=%s +MetacityTheme=%s +IconTheme=Chamesle-Glass +''' % (NAME, NAME, NAME)) + +CINNAMON = '''@import url("file:///usr/share/cinnamon/theme/cinnamon.css"); +/* chamesle glass for the cinnamon panel and menus */ +#panel, .panel-bottom, .panel-top, .panel-left, .panel-right { + background-gradient-direction: vertical; + background-gradient-start: rgba(90, 140, 185, .62); + background-gradient-end: rgba(15, 35, 55, .78); + border-top: 1px solid rgba(0, 0, 0, .6); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); + color: #fff; +} +.window-list-item-box, .grouped-window-list-item-box { border-radius: 3px; border: 1px solid transparent; } +.window-list-item-box:hover, .grouped-window-list-item-box:hover { border-color: rgba(255, 255, 255, .45); background-color: rgba(255, 255, 255, .15); } +.window-list-item-box:focus, .window-list-item-box:active, .grouped-window-list-item-box:focus, .grouped-window-list-item-box:active { + border-color: rgba(255, 255, 255, .55); + background-gradient-direction: vertical; + background-gradient-start: rgba(255, 255, 255, .25); + background-gradient-end: rgba(60, 145, 215, .85); +} +.menu, .popup-menu-boxpointer, .applet-box .popup-menu { + -arrow-background-color: rgba(25, 50, 75, .9); + -arrow-border-color: rgba(0, 0, 0, .6); + -arrow-border-width: 1px; + -arrow-border-radius: 6px; + color: #fff; +} +.popup-menu-item:active, .popup-menu-item:hover { background-color: rgba(255, 255, 255, .2); border-radius: 3px; } +.menu-applications-outer-box, .menu-favorites-box, .menu-places-box { color: #fff; } +''' + +def cinnamon(out): + d = os.path.join(out, 'themes', NAME, 'cinnamon') + os.makedirs(d, exist_ok=True) + open(os.path.join(d, 'cinnamon.css'), 'w').write(CINNAMON) + +# svg frames for plasma and aurorae: nine pieces, each a plain shape with an id +# (qt's svg renderer skips nested svgs and rgba(), so fills are hex plus an opacity) +def paint(c): + return 'fill="#%02x%02x%02x" fill-opacity="%.2f"' % (c[0], c[1], c[2], c[3]) + +def svgframe(prefix, w, h, t, sd, bt, r, rb, base, edge, hi, gloss=None): + p = prefix + '-' if prefix else '' + gid = 'g' + (prefix or 'f').replace('-', '') + defs = '' + if gloss == 'top': + defs = ('<linearGradient id="%s" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="0" y2="%d">' + '<stop offset="0" stop-color="#fff" stop-opacity=".46"/><stop offset=".46" stop-color="#fff" stop-opacity=".16"/>' + '<stop offset=".5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".1"/></linearGradient>' % (gid, t)) + elif gloss == 'center': + defs = ('<linearGradient id="%s" x1="0" y1="0" x2="0" y2="1">' + '<stop offset="0" stop-color="#fff" stop-opacity=".32"/><stop offset=".48" stop-color="#fff" stop-opacity=".08"/>' + '<stop offset=".5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".06"/></linearGradient>' % gid) + def corner(i, cw, ch, rr, mx, my): + X = lambda x: w - x if mx else x + Y = lambda y: h - y if my else y + if rr > i: + sw = 1 if mx == my else 0 + return 'M%g %gL%g %gA%g %g 0 0 %d %g %gL%g %gL%g %gZ' % (X(i), Y(ch), X(i), Y(rr), rr - i, rr - i, sw, X(rr), Y(i), X(cw), Y(i), X(cw), Y(ch)) + return 'M%g %gL%g %gL%g %gL%g %gZ' % (X(i), Y(ch), X(i), Y(i), X(cw), Y(i), X(cw), Y(ch)) + def band(path_of, fillc): + return '<path fill-rule="evenodd" d="%s %s" %s/>' % (path_of(0), path_of(1), paint(fillc)) + o = [] + for n, cw, ch, rr, mx, my in (('topleft', sd, t, r, 0, 0), ('topright', sd, t, r, 1, 0), ('bottomleft', sd, bt, rb, 0, 1), ('bottomright', sd, bt, rb, 1, 1)): + f = lambda i, cw=cw, ch=ch, rr=rr, mx=mx, my=my: corner(i, cw, ch, rr, mx, my) + g = '<path d="%s" %s/>' % (f(0), paint(base)) + if gloss == 'top' and n.startswith('top'): + g += '<path d="%s" fill="url(#%s)"/>' % (f(0), gid) + g += band(f, edge) + band(lambda i, f=f: f(i + 1), hi) + o.append('<g id="%s%s">%s</g>' % (p, n, g)) + def rect(x, y, rw, rh, c): + return '<rect x="%g" y="%g" width="%g" height="%g" %s/>' % (x, y, rw, rh, paint(c)) + mid = h - t - bt + gl = lambda x, y, rw, rh: '<rect x="%g" y="%g" width="%g" height="%g" fill="url(#%s)"/>' % (x, y, rw, rh, gid) + top = rect(sd, 0, w - 2 * sd, t, base) + (gl(sd, 0, w - 2 * sd, t) if gloss == 'top' else '') + rect(sd, 0, w - 2 * sd, 1, edge) + rect(sd, 1, w - 2 * sd, 1, hi) + bot = rect(sd, h - bt, w - 2 * sd, bt, base) + rect(sd, h - 1, w - 2 * sd, 1, edge) + rect(sd, h - 2, w - 2 * sd, 1, hi) + cg = gloss == 'center' + left = rect(0, t, sd, mid, base) + (gl(0, t, sd, mid) if cg else '') + rect(0, t, 1, mid, edge) + rect(1, t, 1, mid, hi) + right = rect(w - sd, t, sd, mid, base) + (gl(w - sd, t, sd, mid) if cg else '') + rect(w - 1, t, 1, mid, edge) + rect(w - 2, t, 1, mid, hi) + center = rect(sd, t, w - 2 * sd, mid, base) + (gl(sd, t, w - 2 * sd, mid) if cg else '') + for n, g in (('top', top), ('bottom', bot), ('left', left), ('right', right), ('center', center)): + o.append('<g id="%s%s">%s</g>' % (p, n, g)) + return defs, o + +def svgdoc(w, h, defs, els): + return '<?xml version="1.0"?>\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="%d" height="%d"><defs>%s</defs>%s</svg>\n' % (w, h, defs, ''.join(els)) + +def mask(prefix, w, h, t, sd, bt, r, rb): + k = (0, 0, 0, 1) + _, o = svgframe(prefix, w, h, t, sd, bt, r, rb, k, k, k) + return o + +PLASMA_COLORS = '''[Colors:Window] +BackgroundNormal=24,52,76 +ForegroundNormal=255,255,255 +ForegroundInactive=200,215,228 +DecorationFocus=110,190,255 +DecorationHover=150,210,255 + +[Colors:View] +BackgroundNormal=24,52,76 +ForegroundNormal=255,255,255 +ForegroundInactive=200,215,228 +DecorationFocus=110,190,255 +DecorationHover=150,210,255 + +[Colors:Button] +BackgroundNormal=60,145,215 +ForegroundNormal=255,255,255 +DecorationFocus=110,190,255 +DecorationHover=150,210,255 + +[Colors:Selection] +BackgroundNormal=60,145,215 +ForegroundNormal=255,255,255 + +[Colors:Tooltip] +BackgroundNormal=24,52,76 +ForegroundNormal=255,255,255 + +[Colors:Complementary] +BackgroundNormal=24,52,76 +ForegroundNormal=255,255,255 +''' + +def plasma(out): + d = os.path.join(out, 'plasma', 'desktoptheme', 'chamesle-glass') + dark, edge, hi = (15, 36, 54, .62), (0, 0, 0, .6), (255, 255, 255, .35) + for sub in ('', 'translucent/'): + # the panel: dark glass, shine to the middle + defs, els = '', [] + for side, r in (('', 3), ('south', 0), ('north', 0), ('east', 0), ('west', 0)): + df, o = svgframe(side, 96, 48, 3, 3, 3, r, r, dark, edge, hi, 'center') + defs += df; els += o + els += mask('mask-' + side if side else 'mask', 96, 48, 3, 3, 3, r, r) + save_text(svgdoc(96, 48, defs, els), d, sub + 'widgets/panel-background.svg') + # menus, popups, the start menu + defs, o = svgframe('', 96, 96, 8, 8, 8, 7, 7, (20, 48, 72, .74), edge, (255, 255, 255, .4), 'top') + els = o + mask('mask', 96, 96, 8, 8, 8, 7, 7) + els.append('<rect id="hint-top-margin" x="0" y="0" width="1" height="8" fill="none"/>') + save_text(svgdoc(96, 96, defs, els), d, sub + 'dialogs/background.svg') + defs, o = svgframe('', 64, 64, 5, 5, 5, 4, 4, (20, 48, 72, .85), edge, hi) + save_text(svgdoc(64, 64, defs, o + mask('mask', 64, 64, 5, 5, 5, 4, 4)), d, sub + 'widgets/tooltip.svg') + defs, o = svgframe('', 96, 96, 8, 8, 8, 7, 7, (60, 145, 215, .45), (0, 0, 0, .5), (255, 255, 255, .4), 'top') + save_text(svgdoc(96, 96, defs, o + mask('mask', 96, 96, 8, 8, 8, 7, 7)), d, sub + 'widgets/background.svg') + # open windows on the taskbar; the active one glows + defs, els = '', [] + for pre, fill, ed, h2, gl in (('focus', (60, 145, 215, .85), (0, 0, 0, .45), (255, 255, 255, .55), 'center'), + ('hover', (255, 255, 255, .16), (0, 0, 0, .4), (255, 255, 255, .45), 'center'), + ('normal', (255, 255, 255, .06), (0, 0, 0, .3), (255, 255, 255, .2), None), + ('attention', (255, 160, 40, .55), (0, 0, 0, .4), (255, 220, 160, .7), 'center'), + ('minimized', (255, 255, 255, 0), (0, 0, 0, 0), (255, 255, 255, 0), None)): + df, o = svgframe(pre, 48, 48, 4, 4, 4, 3, 3, fill, ed, h2, gl) + defs += df; els += o + save_text(svgdoc(48, 48, defs, els), d, 'widgets/tasks.svg') + save_text('''{ + "KPlugin": { + "Authors": [{"Name": "Chamesle"}], + "Description": "Glass panels and menus with the wallpaper showing through", + "Id": "chamesle-glass", + "License": "GPL-3.0-or-later", + "Name": "Chamesle Glass", + "Version": "0.7" + }, + "X-Plasma-API": "5.0" +} +''', d, 'metadata.json') + save_text(PLASMA_COLORS, d, 'colors') + +def save_text(text, *p): + f = os.path.join(*p) + os.makedirs(os.path.dirname(f), exist_ok=True) + open(f, 'w').write(text) + +def aurorae(out): + d = os.path.join(out, 'aurorae', 'themes', 'ChamesleGlass') + W, H = 120, 120 + def piece(prefix, a, shine): + return svgframe(prefix, W, H, TH, B, B, R, 0, (*TINT, a), (0, 0, 0, .6), (255, 255, 255, .45 if shine else .28), 'top') + defs1, a = piece('decoration', .45, True) + defs2, b = piece('decoration-inactive', .22, False) + defs3, c = piece('decoration-maximized', .45, True) + defs4, e = piece('decoration-maximized-inactive', .22, False) + m = mask('mask', W, H, TH, B, B, R, 0) + save_text(svgdoc(W, H, defs1 + defs2 + defs3 + defs4, a + b + c + e + m), d, 'decoration.svg') + # buttons: each svg has active, hover, pressed, inactive, deactivated + # buttons in vectors: kwin skips images inside svgs + def bsvg(kind, w): + base = 'maximize' if kind == 'restore' else kind + h, cx, cy = BH, w / 2, BH / 2 + r = 6 + if base == ORDER[0]: + shape = 'M0 0H%g V%g H%g A%g %g 0 0 1 0 %g Z' % (w, h, r, r, r, h - r) + edge = 'M0.5 0V%g A%g %g 0 0 0 %g %g H%g' % (h - r, r - .5, r - .5, r, h - .5, w) + elif base == ORDER[-1]: + shape = 'M0 0H%g V%g A%g %g 0 0 1 %g %g H0 Z' % (w, h - r, r, r, w - r, h) + edge = 'M0 %gH%g A%g %g 0 0 0 %g %g V0' % (h - .5, w - r, r - .5, r - .5, w - .5, h - r) + else: + shape = 'M0 0H%g V%g H0 Z' % (w, h) + edge = 'M0 %gH%g' % (h - .5, w) + dk, wh = '#141e2d', '#ffffff' + if kind == 'hide': + gl = '<rect x="%g" y="%g" width="11" height="4" fill="%s" stroke="%s" stroke-width="1"/>' % (cx - 5.5, cy + 1.5, wh, dk) + elif kind == 'maximize': + gl = ''.join('<rect x="%g" y="%g" width="12" height="10" fill="none" stroke="%s" stroke-width="%g"/>' % (cx - 6, cy - 5, c, sw) for c, sw in ((dk, 4), (wh, 2))) + elif kind == 'restore': + gl = ''.join('<rect x="%g" y="%g" width="8" height="6" fill="none" stroke="%s" stroke-width="%g"/>' % (cx - 4 + ox, cy - 3 + oy, c, sw) + for ox, oy in ((2, -3), (-2, 1)) for c, sw in ((dk, 3), (wh, 1.4))) + else: + ln = 'M%g %gL%g %gM%g %gL%g %g' % (cx - 5, cy - 4, cx + 5, cy + 4, cx - 5, cy + 4, cx + 5, cy - 4) + gl = ''.join('<path d="%s" fill="none" stroke="%s" stroke-width="%g" stroke-linecap="round"/>' % (ln, c, sw) for c, sw in ((dk, 5), (wh, 2.6))) + els, defs = [], [] + for st, pst, act in (('active', 'normal', True), ('hover', 'prelight', True), ('pressed', 'pressed', True), + ('inactive', 'normal', False), ('deactivated', 'normal', False)): + top, bot, al = fill(pst, base == 'close', act) + mid = [(top[i] + bot[i]) // 2 for i in range(3)] + lift = lambda c: '#%02x%02x%02x' % tuple(int(v + (255 - v) * .45) for v in c) + hexc = lambda c: '#%02x%02x%02x' % tuple(c) + gid = 'b' + st + defs.append('<linearGradient id="%s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%s"/><stop offset=".5" stop-color="%s"/>' + '<stop offset=".5" stop-color="%s"/><stop offset="1" stop-color="%s"/></linearGradient>' % (gid, lift(top), lift(mid), hexc(mid), hexc(bot))) + sep = '<rect x="0" y="0" width="1" height="%g" fill="#000" fill-opacity=".55"/>' % (h - 1) if base != ORDER[0] else '' + els.append('<g id="%s-center" opacity="%.2f"><path d="%s" fill="url(#%s)"/><path d="%s" fill="none" stroke="#000" stroke-opacity=".65"/>%s%s</g>' + % (st, al / 255, shape, gid, edge, sep, gl)) + return svgdoc(w, h, ''.join(defs), els) + save_text(bsvg('close', BW['close']), d, 'close.svg') + save_text(bsvg('maximize', BW['maximize']), d, 'maximize.svg') + save_text(bsvg('restore', BW['maximize']), d, 'restore.svg') + save_text(bsvg('hide', BW['hide']), d, 'minimize.svg') + save_text('''[General] +ActiveTextColor=15,32,48 +InactiveTextColor=58,75,92 +UseTextShadow=true +ActiveTextShadowColor=255,255,255,190 +InactiveTextShadowColor=255,255,255,90 +TextShadowOffsetX=0 +TextShadowOffsetY=0 +HaloActive=true +HaloInactive=false +TitleAlignment=Left +TitleVerticalAlignment=Center +Animation=150 +Shadow=true + +[Layout] +BorderLeft=%d +BorderRight=%d +BorderBottom=%d +BorderTop=0 +TitleEdgeTop=1 +TitleEdgeBottom=4 +TitleEdgeLeft=8 +TitleEdgeRight=8 +TitleEdgeTopMaximized=0 +TitleEdgeBottomMaximized=2 +TitleEdgeLeftMaximized=6 +TitleEdgeRightMaximized=0 +TitleBorderLeft=4 +TitleBorderRight=8 +TitleHeight=%d +ButtonWidth=%d +ButtonWidthMinimize=%d +ButtonWidthMaximizeRestore=%d +ButtonWidthClose=%d +ButtonHeight=%d +ButtonSpacing=0 +ButtonMarginTop=0 +ButtonMarginTopMaximized=0 +ExplicitButtonSpacer=10 +PaddingTop=0 +PaddingBottom=0 +PaddingLeft=0 +PaddingRight=0 +''' % (B, B, B, TH - 5, BW['hide'], BW['hide'], BW['maximize'], BW['close'], BH), d, 'ChamesleGlassrc') + save_text('''[Desktop Entry] +Name=Chamesle Glass +Comment=Glass window frames with buttons hanging from the top edge +X-KDE-PluginInfo-Author=Chamesle +X-KDE-PluginInfo-Name=ChamesleGlass +X-KDE-PluginInfo-Version=0.7 +X-KDE-PluginInfo-License=GPL-3.0-or-later +''', d, 'metadata.desktop') + +def colors(out): + save_text('''[General] +ColorScheme=ChamesleGlass +Name=Chamesle Glass + +[ColorEffects:Disabled] +Color=56,56,56 +ColorAmount=0 +ColorEffect=0 +ContrastAmount=0.65 +ContrastEffect=1 +IntensityAmount=0.1 +IntensityEffect=2 + +[ColorEffects:Inactive] +ChangeSelectionColor=true +Enable=false + +[Colors:Button] +BackgroundAlternate=221,227,233 +BackgroundNormal=238,241,244 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 +ForegroundActive=61,142,224 +ForegroundInactive=110,118,126 +ForegroundLink=0,102,204 +ForegroundNegative=200,50,30 +ForegroundNeutral=200,120,0 +ForegroundNormal=16,22,30 +ForegroundPositive=30,140,30 +ForegroundVisited=102,51,153 + +[Colors:Selection] +BackgroundAlternate=193,220,252 +BackgroundNormal=204,232,255 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 +ForegroundActive=0,0,0 +ForegroundInactive=58,75,92 +ForegroundLink=0,80,160 +ForegroundNegative=180,40,20 +ForegroundNeutral=160,100,0 +ForegroundNormal=0,0,0 +ForegroundPositive=20,110,20 +ForegroundVisited=90,40,140 + +[Colors:Tooltip] +BackgroundAlternate=228,229,240 +BackgroundNormal=250,250,252 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 +ForegroundNormal=58,58,58 +ForegroundInactive=110,118,126 + +[Colors:View] +BackgroundAlternate=245,248,252 +BackgroundNormal=255,255,255 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 +ForegroundActive=61,142,224 +ForegroundInactive=110,118,126 +ForegroundLink=0,102,204 +ForegroundNegative=200,50,30 +ForegroundNeutral=200,120,0 +ForegroundNormal=16,22,30 +ForegroundPositive=30,140,30 +ForegroundVisited=102,51,153 + +[Colors:Window] +BackgroundAlternate=233,238,244 +BackgroundNormal=240,243,247 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 +ForegroundActive=61,142,224 +ForegroundInactive=110,118,126 +ForegroundLink=0,102,204 +ForegroundNegative=200,50,30 +ForegroundNeutral=200,120,0 +ForegroundNormal=16,22,30 +ForegroundPositive=30,140,30 +ForegroundVisited=102,51,153 + +[Colors:Complementary] +BackgroundNormal=24,52,76 +ForegroundNormal=255,255,255 +DecorationFocus=110,190,255 +DecorationHover=150,210,255 + +[Colors:Header] +BackgroundNormal=226,236,246 +ForegroundNormal=16,22,30 +DecorationFocus=61,142,224 +DecorationHover=60,127,177 + +[WM] +activeBackground=90,163,220 +activeForeground=15,32,48 +inactiveBackground=169,198,220 +inactiveForeground=58,75,92 +''', out, 'color-schemes', 'ChamesleGlass.colors') + +if __name__ == '__main__': + out = sys.argv[1] if len(sys.argv) > 1 else 'share' + gtk(out); xfwm4(out); metacity(out); cinnamon(out); plasma(out); aurorae(out); colors(out) + print('chamesle glass written to', out) diff --git a/tools/pkg/chamesle-glass/recipe b/tools/pkg/chamesle-glass/recipe @@ -0,0 +1,14 @@ +name=chamesle-glass +version=0.7 +rel=0 +desc="Chamesle Glass: glass window frames, panels and glossy buttons for KDE, Xfce, Cinnamon and MATE" +url=https://chamesle.org +license=GPL-3.0-or-later +source= +makedeps="python3 python3-Pillow" +depends="" + +# make.py draws the frames and buttons and writes every desktop's theme +build() { + python3 make.py "$pkgdir/usr/share" +} diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/kdeglobals b/tools/pkg/chamesle-kde/files/etc/xdg/kdeglobals @@ -1,5 +1,5 @@ [General] -ColorScheme=BreezeLight +ColorScheme=ChamesleGlass font=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 menuFont=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 toolBarFont=Inter,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 @@ -7,7 +7,7 @@ smallestReadableFont=Inter,8,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 fixed=Noto Sans Mono,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 [Icons] -Theme=breeze +Theme=Chamesle-Glass [KDE] LookAndFeelPackage=org.chamesle.desktop diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/kwinrc b/tools/pkg/chamesle-kde/files/etc/xdg/kwinrc @@ -1,5 +1,5 @@ [org.kde.kdecoration2] -library=org.kde.breeze -theme=Breeze +library=org.kde.kwin.aurorae +theme=__aurorae__svg__ChamesleGlass ButtonsOnLeft= ButtonsOnRight=IAX diff --git a/tools/pkg/chamesle-kde/files/etc/xdg/plasmarc b/tools/pkg/chamesle-kde/files/etc/xdg/plasmarc @@ -1,2 +1,2 @@ [Theme] -name=breeze-dark +name=chamesle-glass diff --git a/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults b/tools/pkg/chamesle-kde/files/usr/share/plasma/look-and-feel/org.chamesle.desktop/contents/defaults @@ -1,14 +1,14 @@ [kdeglobals][General] -ColorScheme=BreezeLight +ColorScheme=ChamesleGlass [kdeglobals][Icons] -Theme=breeze +Theme=Chamesle-Glass [kdeglobals][KDE] widgetStyle=Breeze [plasmarc][Theme] -name=breeze-dark +name=chamesle-glass [Wallpaper] Image=Chamesle diff --git a/tools/pkg/chamesle-kde/recipe b/tools/pkg/chamesle-kde/recipe @@ -1,12 +1,12 @@ name=chamesle-kde -version=0.5.0 -rel=1 +version=0.7.0 +rel=0 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 source= makedeps="" -depends="chamesle-artwork plasma-desktop breeze-icons breeze-qt6 font-inter noto-fonts-ttf" +depends="chamesle-glass chamesle-glass-icons chamesle-artwork plasma-desktop breeze-icons breeze-qt6 font-inter noto-fonts-ttf" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-mate/files/usr/share/glib-2.0/schemas/50_chamesle-mate.gschema.override b/tools/pkg/chamesle-mate/files/usr/share/glib-2.0/schemas/50_chamesle-mate.gschema.override @@ -6,15 +6,15 @@ color-shading-type='solid' primary-color='#0b2552' [org.mate.interface] -gtk-theme='Fluent-Light' -icon-theme='Chamesle' +gtk-theme='Chamesle-Glass' +icon-theme='Chamesle-Glass' font-name='Inter 10' document-font-name='Inter 10' monospace-font-name='Noto Sans Mono 10' gtk-decoration-layout='menu:minimize,maximize,close' [org.mate.Marco.general] -theme='Fluent-Light' +theme='Chamesle-Glass' titlebar-font='Inter Semi-Bold 10' button-layout='menu:minimize,maximize,close' compositing-manager=true diff --git a/tools/pkg/chamesle-mate/recipe b/tools/pkg/chamesle-mate/recipe @@ -1,12 +1,12 @@ name=chamesle-mate -version=0.2.0 -rel=3 +version=0.7.0 +rel=0 desc="The Chamesle look for MATE: wallpaper, panel, theme settings, login screen" url=https://chamesle.org license=GPL-3.0-or-later source= makedeps="" -depends="chamesle-artwork mate-menu" +depends="chamesle-glass chamesle-glass-icons chamesle-artwork mate-menu" build() { cp -a . "$pkgdir/" diff --git a/tools/pkg/chamesle-play/files/usr/share/plasma/look-and-feel/org.chamesle.play.desktop/contents/defaults b/tools/pkg/chamesle-play/files/usr/share/plasma/look-and-feel/org.chamesle.play.desktop/contents/defaults @@ -1,14 +1,14 @@ [kdeglobals][General] -ColorScheme=BreezeLight +ColorScheme=ChamesleGlass [kdeglobals][Icons] -Theme=breeze +Theme=Chamesle-Glass [kdeglobals][KDE] widgetStyle=Breeze [plasmarc][Theme] -name=breeze-dark +name=chamesle-glass [Wallpaper] Image=Play diff --git a/tools/pkg/chamesle-play/recipe b/tools/pkg/chamesle-play/recipe @@ -1,5 +1,5 @@ name=chamesle-play -version=0.6.0 +version=0.7.0 rel=0 desc="Chamesle Play: KDE Plasma for games, with Steam on the taskbar, GameMode, controllers and the Lofoten aurora" url=https://chamesle.org diff --git a/tools/pkg/chamesle-ranni/files/etc/xdg/ranni/kwinrc b/tools/pkg/chamesle-ranni/files/etc/xdg/ranni/kwinrc @@ -1,3 +1,5 @@ [org.kde.kdecoration2] +library=org.kde.breeze +theme=Breeze ButtonsOnLeft=XIA ButtonsOnRight= diff --git a/tools/pkg/chamesle-ranni/files/usr/share/plasma/look-and-feel/org.chamesle.ranni.desktop/contents/defaults b/tools/pkg/chamesle-ranni/files/usr/share/plasma/look-and-feel/org.chamesle.ranni.desktop/contents/defaults @@ -1,8 +1,8 @@ [kdeglobals][General] -ColorScheme=BreezeLight +ColorScheme=ChamesleGlass [kdeglobals][Icons] -Theme=breeze +Theme=Chamesle-Glass [kdeglobals][KDE] widgetStyle=Breeze diff --git a/tools/pkg/chamesle-ranni/recipe b/tools/pkg/chamesle-ranni/recipe @@ -1,5 +1,5 @@ name=chamesle-ranni -version=0.6.0 +version=0.7.0 rel=0 desc="Chamesle Ranni: KDE Plasma like a Mac, with a menu bar, a dock, search on Super+Space and the Mongolian dunes" url=https://chamesle.org diff --git a/tools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml b/tools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml @@ -2,12 +2,13 @@ <!-- Windows-style title bars: icon on the left, minimise / maximise / close on the right --> <channel name="xfwm4" version="1.0"> <property name="general" type="empty"> - <property name="theme" type="string" value="Fluent-Light"/> + <property name="theme" type="string" value="Chamesle-Glass"/> <property name="button_layout" type="string" value="O|HMC"/> <property name="title_alignment" type="string" value="left"/> <property name="title_font" type="string" value="Noto Sans 10"/> <property name="workspace_count" type="int" value="1"/> <property name="use_compositing" type="bool" value="true"/> + <property name="frame_opacity" type="int" value="88"/> <property name="show_dock_shadow" type="bool" value="true"/> <property name="snap_to_border" type="bool" value="true"/> <property name="tile_on_move" type="bool" value="true"/> diff --git a/tools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/tools/pkg/chamesle-xfce/files/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -2,8 +2,8 @@ <!-- fluent windows, papirus icons, inter --> <channel name="xsettings" version="1.0"> <property name="Net" type="empty"> - <property name="ThemeName" type="string" value="Fluent-Light"/> - <property name="IconThemeName" type="string" value="Chamesle"/> + <property name="ThemeName" type="string" value="Chamesle-Glass"/> + <property name="IconThemeName" type="string" value="Chamesle-Glass"/> <property name="SoundThemeName" type="string" value="freedesktop"/> <property name="EnableEventSounds" type="bool" value="false"/> </property> diff --git a/tools/pkg/chamesle-xfce/recipe b/tools/pkg/chamesle-xfce/recipe @@ -1,12 +1,12 @@ name=chamesle-xfce -version=0.2.0 -rel=3 +version=0.7.0 +rel=0 desc="The Chamesle look for Xfce: wallpaper, panel, theme settings, login screen" url=https://chamesle.org license=GPL-3.0-or-later source= makedeps="" -depends="chamesle-artwork" +depends="chamesle-glass chamesle-glass-icons chamesle-artwork" # our settings win over the stock ones these ship replaces="xfce4-settings xfce4-panel xfwm4 xfdesktop xfce4-whiskermenu-plugin"