Skip to content

Releases

v0.4.3

Choose a tag to compare

@Zakkaus Zakkaus released this 06 Sep 16:04
v0.4.3
dd17266

修复发布。v0.4.2 的功能没有变化,只修一个缺陷。

未设强调色时进度条上的数字重复

未设强调色的设备上,每条进度条的数字显示两次:一次在填充里、一次在条的右侧。

脚本往每一条进度条里都补了第二份数字,而定位它的规则挂在 :root[data-accent] 下。
不设强调色时那些规则不生效,补出来的元素就成了填充里一段普通的内联文字。强调色由
服务端写在根元素上,不重新载入就不会变,因此在初始化时判断一次即可;另有一条 CSS
规则将其设为不显示,覆盖它仍然出现在 DOM 里的情形。

checks/contrast.py 补了这一条。它此前扫描的每一种组合都设了强调色,截图也是,所以
这个功能只在开着的状态下被渲染过。新检查加载一次未设强调色的页面,发现任何一份可见
的副本就失败,并已把两道防护都去掉驱红验证——复现出八份重复的数字。

升级

覆盖安装即可,配置不变。

文件

与架构无关,一份构建适用于所有设备。.apk 用于 OpenWrt 25.12 及以后,.ipk
用于 24.10 及以前。设置页 luci-app-graphite
不受影响,仍用 v0.2.0。

把文件与 install.sh 放进路由器上同一个目录,执行 sh install.sh。

v0.4.2

Choose a tag to compare

@Zakkaus Zakkaus released this 04 Sep 05:08
v0.4.2
cd8bcc3

进度条跟随强调色

设了强调色之后,进度条的填充也跟着它,轨道保持原来的取值。条上的数字在填充上与在
轨道上各取能读的那个颜色,边界处逐字符换。

原本这里用 mix-blend-mode: difference 让一份数字自动换色:白字在深填充上得到白、
在浅轨道上得到黑。那只在无彩填充上成立——填充有色相时白被反成它的补色,粉底上是绿字、
红底上是青字。

四种绕法逐一实测,都不成立:单一颜色在两半上过不了 4.5:1(Graphite 4.33 到 4.63、
Catppuccin Mocha 最低 2.26、Tokyo Night 最低 2.14);给轨道上色则 difference 在
半透明底上反不出深色;把填充的明度封顶到白字永远够,等于放弃强调色本身的取值。

所以数字画两份,这也是带双色标签的进度条通行的做法。第二份需要脚本:那串数字只在
外层元素的 title 上,而 CSS 的 attr() 只读元素自身的属性;用 @property 注册再写
attr(title type(<string>)) 也不行,Chrome 151 能解析它、CSS.supports 返回 true,
但它计算成空字符串。宽度不需要脚本,100cqw 从容器查询取。

实测六套配色 × 八个强调色 × 明暗:数字在填充上 4.51、在轨道上 7.00,下限 4.5。两对
都已纳入 checks/contrast.py。

升级

覆盖安装即可,配置不变。未设强调色时进度条与此前一致。

文件

与架构无关,一份构建适用于所有设备。.apk 用于 OpenWrt 25.12 及以后,.ipk
用于 24.10 及以前。设置页 luci-app-graphite
不受影响,仍用 v0.2.0。

把文件与 install.sh 放进路由器上同一个目录,执行 sh install.sh。

v0.4.1

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 11:06
v0.4.1
c541eb8

修复发布。v0.4.0 的功能没有变化,只修一个缺陷。

自定义强调色在深色模式下不生效

填进自定义强调色的色号,在浅色模式下正常,切到深色模式后完全没有反应;
选了 Graphite 以外的配色时,深色模式下同样没有反应。八个具名强调色不受影响。

模板把色号写成 :root{--primary:…}。每套配色都会在自己的深色块里重新声明
--primary——默认配色的特异度是 (0,2,0),具名配色是 (0,3,0)——裸 :root 两者
都输,因此那条声明在深色下被压掉。选择器现在带上强调色属性,有配色时再带上配色
属性,与那些声明同特异度并靠顺序取胜。六种配色与明暗的组合逐个实测。

checks/contrast.py 补了这一条。它原本只扫来自 accents.css 的八个具名强调色,
而自定义色号来自模板,是唯一没有检查覆盖的一条路。新检查驱红验证过:把选择器退回
裸 :root,八行红在比对标记底色与填入值的那一行。

升级

覆盖安装即可,配置不变。

文件

与架构无关,一份构建适用于所有设备。.apk 用于 OpenWrt 25.12 及以后,.ipk
用于 24.10 及以前。设置页 luci-app-graphite
不受此缺陷影响,仍用 v0.2.0。

把文件与 install.sh 放进路由器上同一个目录,执行 sh install.sh。

v0.4.0

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 10:49
v0.4.0
de14689

侧栏按分组折叠

载入时只展开当前页所在的一组,点击分组标题可开合,多组可同时展开。

四组二十五项在一台 GL-BE9300 上量到导航内容高 1368px,可视区 900px;装了服务类
软件包的机器上是七组五十九项、3196px。全部展开时每一项的分量相同,扫的时候没有
落点。收成图标条时折叠不生效,那里没有分组标题可点。

material 与 openwrt-2020 在打开一组时会收起其余各组,导航因此永远只有一屏。这里
不这么做:收起别人打开的组,等于每点一次就拆掉一次使用者自己摆的布局。

强调色

八个名字:粉、木槿紫、红、桃橙、黄、绿、青、蓝。它画主按钮的底、焦点环、活动
徽标、侧栏与登录页的品牌方块,以及侧栏当前项的左轨与底色。其余部分仍是灰阶。
默认不启用。

每套配色用自己的取值回答同一个名字,因此强调色始终属于它所在的那一套:Catppuccin
取自各 flavour 自己的强调色表,Tokyo Night 取自 folke/tokyonight.nvim,Graphite
取自一组为纯灰界面调过的值。另有 accent_custom,接受六位十六进制色号,在任何
配色下都优先于名字选择。

强调色上的文字不写死颜色。Catppuccin 自己的规矩(强调色当底、Base 当字)过不了
本主题的下限:Latte 的绿配 Base 只有 3.74:1,而深色 flavour 的粉彩强调色配白字
只有 1.3:1。改由 contrast-color() 按实际亮度选,不支持它的浏览器退回按 OKLCH
明度取阈值的近似。

浅色强调色的前景色由 contrast-color() 按实际亮度选,白字与黑字都可能出现。
品牌方块里的标记同样跟随它:八个预设算出来是白色,粉彩强调色上转为深色——白色
标记打在粉彩上等于没有标记。

密页分档

进程页 935 个带文字的元素里 99% 落在同一档最高对比度上,启动项 458 个里 100%,
防火墙规则 164 个里 96%。新增 --content-foreground 给最暗的一端设下限——本来就
软的配色一个字节不动,只有近黑那一档被抬到 0.22;深色一侧从另一端封在 0.90,那是
catppuccin-frappe 仍能保住 10:1 的位置。表头与首列之外的单元格退到次级档。按钮
保持自己那一档,它们是控件。

改动后进程页最大一档从 99% 降到 51%,启动项从 100% 降到 70%。

图标

十八个代理类软件包不再共用 shuffle:那个字形说的是它内部怎么分流,不是它对
使用者的作用。改成 door-open,并加入 honk。

文件

与架构无关,一份构建适用于所有设备。.apk 用于 OpenWrt 25.12 及以后,.ipk
用于 24.10 及以前。只有主题是必需的;设置页有
自己的发布,
本次同步更新。

把文件与 install.sh 放进路由器上同一个目录,执行 sh install.sh。

验过什么

checks/ 四条全部通过。contrast.py 扩到六套配色 × 八个强调色 × 明暗共 96 种
组合,按钮文字对按钮底不低于 4.5:1,正文 10:1、次级 5.5:1 不变。

装在一台 25.12.5 虚拟机与一台 GL-BE9300 实机上,后者 31 个 ubus 请求全部 200、
无 JS 报错。截图全部重拍。

已知限制

不支持 contrast-color() 的浏览器上,Catppuccin 与 Tokyo Night 的个别强调色
落在近似规则判反的一侧,前景色因此是黑白中对比较低的那一个。压暗预设可以让近似也永远正确,代价是所有人看到一组
更闷的颜色。

luci.css 的基础复位里 button:not(.icon-btn):not([role="radio"]) 特异度为
(0,2,1),压过把 .cbi-button-save 等列为主按钮的那条 (0,1,0),所以 <button>
元素上的主按钮意图从未生效。这是本次之前就存在的问题,未在此修复。

Graphite v0.3.2

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 07:50
v0.3.2
fbc9769
  • The DHCP lease table's action cells are right-aligned, as row actions are,
    but the heading over them carries the same class and .th's own alignment
    was beating it: Static lease sat at the column's left edge with its buttons
    thirty-four pixels to the right. A column heading stands over its column.
  • The sidebar's group headings move up a rung. shell.css sets them at a size
    this theme's scale does not carry, and they read as too quiet beside the 14px
    items under them.

Screenshots are retaken.

Files

Architecture-independent, so one build runs on every device. .apk for
OpenWrt 25.12 and later, .ipk for 24.10 and earlier. Only the theme is
required; the settings page has
its own release
and is unchanged since v0.1.0.

Put the files and install.sh in one directory on the router and run
sh install.sh.

Verified

Installed on a 25.12.5 VM and a GL-BE9300 running 23.05; on both the
stylesheets the package writes are byte-identical to the tree. The heading and
the buttons were measured on the device that showed the problem — the VM's
LuCI does not put that class on the column, which is why two attempts to
reproduce it here came out clean. Six palettes clear the contrast floor.

Graphite v0.3.1

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 07:22
v0.3.1
44179d6

Three fixes, all found on a running router.

  • LuCI hangs data-tooltip on a bare marker in a table cell, and this theme
    turns that into a small round i. It hangs the same attribute on the DHCP
    lease table's reserve-address button, which the rule then squeezed to
    eighteen pixels with its label spilling out of it — the button's own
    font-size overrode the size:0 that hides the marker's character. A control
    explains itself and does not take the mark.
  • A card that scrolls sideways lays its scrollbar inside its own bottom
    padding, which on the firewall page put the bar against the Add button under
    the table. The band is the scrollbar's now.
  • The sidebar's group headings move up one rung, from a size the theme's scale
    does not carry.

Files

Architecture-independent, so one build runs on every device. .apk for
OpenWrt 25.12 and later, .ipk for 24.10 and earlier. Only the theme is
required; the settings page has
its own release
and is unchanged since v0.1.0.

Put the files and install.sh in one directory on the router and run
sh install.sh.

Verified

Installed on a 25.12.5 VM and a GL-BE9300 running 23.05; on both, the
stylesheets the package writes are byte-identical to the tree. The button and
the marker were measured together — the button back at its own width with
nothing overflowing it, the marker still an 18px circle. Six palettes clear
the contrast floor and 39 pages hold their alignment.

Graphite v0.3.0

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 02:31
v0.3.0
27566d4

The README said every flavour reaches 10:1 for body text and 5.5:1 for
secondary. Five of the six did not — the Catppuccin and Tokyo Night light
flavours sat at 9.26 and 5.11, and three dark ones missed the body figure. The
text lightness moves; the hues do not.

checks/contrast.py is why this surfaced, and it now gates the claim. It
paints each pair into a canvas and reads the pixels back rather than parsing
the stylesheet: oklch()'s three numbers look enough like RGB that a regex
reports 1.00 for every pair, which is how the figures went unchecked.

The rest came from reading five other LuCI themes against this one.

  • A disabled input, select or textarea is drawn as disabled. form.js
    renders fields the session may not write that way, and until now only the
    cursor told them apart.
  • A tab holding invalid fields shows how many. ui.js counts them and writes
    the number onto the tab; nothing read it, so a form refused to save for a
    reason sitting on a tab the reader was not looking at.
  • The README's apk commands carry --allow-untrusted. install.sh always
    passed it; anyone following the README by hand met a signature error.
  • The overview's connection table opens a full gutter under the interface
    boxes rather than ten pixels.

Files

Architecture-independent, so one build runs on every device. .apk for
OpenWrt 25.12 and later, .ipk for 24.10 and earlier. Only the theme is
required; the settings page has
its own release.

Put the files and install.sh in one directory on the router and run
sh install.sh.

Verified

Installed on a 25.12.5 VM and a GL-BE9300 running 23.05; on both, the
stylesheets the package writes are byte-identical to the tree. Six palettes in
both schemes clear the contrast floor, 39 pages hold two alignment lines and
one gutter between them, and two phone widths scroll without sideways travel
while the header stays put.

Graphite v0.2.0

Choose a tag to compare

@Zakkaus Zakkaus released this 02 Sep 00:29
v0.2.0
8ef5bb7

Three things a phone showed that a desktop does not.

  • Memory bars. 160px of bar for a label needing 170, centred, so the
    leading digit went with the percentage. The label column shrinks to what it
    holds and the bar takes the rest; the label aligns to the start, because a
    lost tail is recoverable and a lost first digit is not.
  • The wireless panel. One badge per SSID in a plain div, and a badge is an
    inline chip, so each shrank to its own text: four boxes, one left edge, four
    right edges, nothing between them. Stacked, they are rows of a list.
  • The header. It rode away with the content. On a phone the sidebar is a
    drawer and there is nothing for an inner scroller to hold still, so the
    document scrolls and the header is fixed. Fixed rather than sticky:
    components.css sets overflow-x on html and body, and an ancestor
    overflow other than visible turns sticky off without saying so.

Giving up the inner scroller also gave up what kept a wide page from pushing
the document sideways — 256px of it on the file manager at 360. Only the
horizontal axis comes back.

Files

Architecture-independent, so one build runs on every device. .apk for
OpenWrt 25.12 and later, .ipk for 24.10 and earlier. Only the theme is
required; the settings page has
its own release.

Put the files and install.sh in one directory on the router and run
sh install.sh.

Verified

Installed on a 25.12.5 VM and a GL-BE9300 running 23.05; on both, the
stylesheets the package writes are byte-identical to the tree. Two phone
widths across every page: no sideways scroll, the header stays at the top
after scrolling, and every progress label fits its bar — except one on the
package manager, whose sentence is longer than the row it sits in at 360px and
is clipped at the tail.

Graphite v0.1.2

Choose a tag to compare

@Zakkaus Zakkaus released this 01 Sep 17:32
v0.1.2
87b8ef6

Layout fixes, all found by running the theme on an OpenWrt 23.05 device.

  • The page title sits on the card's edge; everything inside a card sits one
    inset in. Holds on all 39 pages that render content.
  • The overview's interface panels no longer sit flush against the card edge,
    and read left-aligned instead of centred.
  • The DHCP and lxccm tables put their headers back in the column.
  • The tab row's rule starts where the tabs start.
  • Content sits 8px closer to the sidebar. Page title is 24px.
  • The Chinese READMEs are rewritten.

Files

Architecture-independent, so one build runs on every device. .apk for
OpenWrt 25.12 and later, .ipk for 24.10 and earlier. Only the theme is
required; the optional settings page has
its own release.

Put the files and install.sh in one directory on the router and run
sh install.sh.

Verified

Installed on a 25.12.5 VM and a GL-BE9300 running 23.05; on both, the
stylesheet the package writes is byte-identical to the tree. No 24.10 device
was available to test the .ipk on.