mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:44:16 +08:00
🎄 Sync 2026-08-21 09:02:18
This commit is contained in:
1 parent
08b3c36d51
commit
b6a99f1461
7 files changed
+113
-190
No files matched your search
@@ -179,7 +179,9 @@ function build() {
|
||||
hicontrast: 'Hi-Contrast',
|
||||
/* names the OTHER package, luci-theme-bootstrap, whose colours this palette is —
|
||||
* so it is a proper noun and stays untranslated, like the two above it */
|
||||
bootstrap: 'Bootstrap'
|
||||
bootstrap: 'Bootstrap',
|
||||
/* names the OTHER package again, luci-theme-openwrt-2020, whose colourway this is */
|
||||
'2020': 'OpenWrt 2020'
|
||||
}, bump(repaint(prefs.applyPalette)), label)),
|
||||
|
||||
/* Density: how much air the UI uses. Pure token axis — 02-tokens.css multiplies the type and
|
||||
|
||||
@@ -350,7 +350,7 @@ function propAxis(key, sdKey, prop, min, max, dfl, fmt) {
|
||||
*
|
||||
* Legacy 'rvht'/'roman'/'github' are migrated to explicit values by head.ut before paint, so they
|
||||
* never reach currentPalette() on a loaded page; the stray fallthrough covers them anyway. */
|
||||
const PALETTES = [ 'hicontrast', 'bootstrap' ]; /* the non-default values; 'footstrap' = bare :root */
|
||||
const PALETTES = [ 'hicontrast', 'bootstrap', '2020' ]; /* the non-default values; 'footstrap' = bare :root */
|
||||
function paletteDefault() {
|
||||
const d = sd('palette');
|
||||
return (PALETTES.indexOf(d) >= 0) ? d : 'footstrap';
|
||||
|
||||
Reference in new issue
Block a user