dsh-todo-float-ball 0.14.6 → 0.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README-en.md +260 -0
- package/README-es.md +15 -15
- package/README-hi.md +15 -15
- package/README-pt.md +15 -15
- package/README.md +263 -255
- package/docs/images/capsule-and-panel.png +0 -0
- package/docs/images/settings-ballnav.png +0 -0
- package/docs/images/skin-and-ball.png +0 -0
- package/lib/client.js +582 -250
- package/lib/index.js +32 -1
- package/lib/skins-extra.json +1 -0
- package/package.json +9 -5
- package/screenshots.json +5 -0
- package/README-zh.md +0 -101
- package/README.zh.md +0 -230
- package/docs/images/preview-capsule.jpg +0 -0
- package/docs/images/preview-pinned-sessions-2.jpg +0 -0
- package/docs/images/preview-pinned-sessions.jpg +0 -0
- package/docs/images/preview-skins.png +0 -0
package/lib/client.js
CHANGED
|
@@ -6,119 +6,98 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
// skin-catalog.js — shared 128-skin catalog for dsh-todo-float-ball /
|
|
7
7
|
// dsh-skill-browser / dsh-font-enhancer. Generated by make_skin_catalog.py.
|
|
8
8
|
// Proposal numbering matches the approved design sheets (01-128).
|
|
9
|
+
// ---- ball skin catalogue, lazily completed (2026-11-12) ----------------
|
|
10
|
+
// 首屏只带三套:跟随系统(AUTO_ID "auto")、官方深色(129)、官方浅色(130)。
|
|
11
|
+
// 其余 128 套在 lib/skins-extra.json 里,由宿主路由 "/dsh-todo-float-ball/skins-extra"
|
|
12
|
+
// 在第一次打开皮肤面板时取回,再合并进 window.__DSH_BALL_SKINS。
|
|
13
|
+
// 契约不变:对象结构、皮肤 id、ALL/BY_ID 顺序规则一律照旧。
|
|
9
14
|
(function () {
|
|
10
15
|
if (window.__DSH_BALL_SKINS) return;
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
neutral:[["银鼠","SILVER RAT",205],["玄青","INK CYAN",160],["玄墨","JET BLACK",275],["乌羽","RAVEN",8],["烟灰","SMOKE",32],["灰鹄","SWAN",140],["玄天","DARK SKY",222],["黛烟","INK SMOKE",288],["铁灰","IRON",210],["磨石","WHETSTONE",95]],
|
|
17
|
-
light:[["月白","MOON WHITE",210],["卵白","EGG WHITE",88],["牙色","IVORY",46],["茶白","TEA WHITE",28],["米浆","RICE MILK",52],["亚麻","LINEN",32],["藕丝","LOTUS THREAD",330],["绫粉","SILK PINK",350],["青白","PALE CELADON",160],["天际","SKYLINE",205],["紫丁","PALE LILAC",285],["雾粉","MIST PINK",345],["薄荷","MINT",150],["绢黄","PALE SILK",48],["灰绿","SAGE",110],["雪浪","SNOW WAVE",195],["燕羽","SWALLOW",225]],
|
|
18
|
-
};
|
|
19
|
-
function varsFor(kind,hh){
|
|
20
|
-
var v={};
|
|
21
|
-
if(kind==="deep"){v={bgA:hs(hh,42,17),bgB:hs(hh,48,7),edge:hs(hh,60,85,".2"),spec:"rgba(255,255,255,.16)",stI:hs(hh,14,54),stP:hs(hh,40,62),stA:hs(hh,88,68),stD:hs(hh,50,42),lbc:hs(hh,35,94),trk:hs(hh,50,80,".13"),pbgA:hs(hh,24,12),pbgB:hs(hh,28,7),pbd:hs(hh,45,80,".14"),ptx:hs(hh,28,92),itm:hs(hh,16,66),itD:hs(hh,18,52),cctx:hs(hh,16,66),chipBg:hs(hh,30,60,".07"),hintC:hs(hh,12,45),hair1:hs(hh,88,68),hair2:hs(hh,50,42)};}
|
|
22
|
-
else if(kind==="muted"){v={bgA:hs(hh,19,15),bgB:hs(hh,20,6),edge:hs(hh,30,78,".17"),spec:"rgba(255,255,255,.1)",stI:hs(hh,10,50),stP:hs(hh,22,56),stA:hs(hh,42,62),stD:hs(hh,28,40),lbc:hs(hh,18,90),trk:hs(hh,30,75,".12"),pbgA:hs(hh,14,11),pbgB:hs(hh,16,6),pbd:hs(hh,25,75,".12"),ptx:hs(hh,14,88),itm:hs(hh,10,62),itD:hs(hh,12,48),cctx:hs(hh,10,62),chipBg:hs(hh,18,55,".06"),hintC:hs(hh,8,42),hair1:hs(hh,42,62),hair2:hs(hh,28,40)};}
|
|
23
|
-
else if(kind==="soft"){v={bgA:hs(hh,28,21),bgB:hs(hh,30,10),edge:hs(hh,45,85,".22"),spec:"rgba(255,255,255,.2)",stI:hs(hh,16,58),stP:hs(hh,36,66),stA:hs(hh,80,70),stD:hs(hh,44,46),lbc:hs(hh,30,95),trk:hs(hh,45,85,".14"),pbgA:hs(hh,20,15),pbgB:hs(hh,24,9),pbd:hs(hh,40,85,".15"),ptx:hs(hh,24,93),itm:hs(hh,14,70),itD:hs(hh,16,56),cctx:hs(hh,14,70),chipBg:hs(hh,26,65,".08"),hintC:hs(hh,10,50),hair1:hs(hh,80,70),hair2:hs(hh,44,46)};}
|
|
24
|
-
else if(kind==="neutral"){v={bgA:hs(hh,7,18),bgB:hs(hh,8,7),edge:"rgba(255,255,255,.14)",spec:"rgba(255,255,255,.12)",stI:hs(hh,10,52),stP:hs(hh,28,60),stA:hs(hh,62,64),stD:hs(hh,38,42),lbc:hs(hh,10,93),trk:hs(hh,20,80,".12"),pbgA:hs(hh,6,12),pbgB:hs(hh,7,7),pbd:"rgba(255,255,255,.09)",ptx:hs(hh,8,90),itm:hs(hh,8,64),itD:hs(hh,10,50),cctx:hs(hh,8,64),chipBg:"rgba(255,255,255,.05)",hintC:hs(hh,6,42),hair1:hs(hh,62,64),hair2:hs(hh,38,42)};}
|
|
25
|
-
else{v={bgA:hs(hh,36,96),bgB:hs(hh,26,84),edge:hs(hh,30,22,".26"),spec:"rgba(255,255,255,.85)",hi:"rgba(255,255,255,.7)",stI:hs(hh,10,60),stP:hs(hh,26,44),stA:hs(hh,40,30),stD:hs(hh,28,40),lbc:hs(hh,25,20),trk:hs(hh,25,20,".14"),pbgA:hs(hh,45,97),pbgB:hs(hh,32,90),pbd:hs(hh,30,25,".15"),ptx:hs(hh,25,20),itm:hs(hh,12,40),itD:hs(hh,14,52),cctx:hs(hh,12,42),chipBg:hs(hh,25,25,".06"),hintC:hs(hh,10,55),hair1:hs(hh,40,30),hair2:hs(hh,28,40)};}
|
|
26
|
-
return v;
|
|
27
|
-
}
|
|
28
|
-
var EX={};
|
|
29
|
-
var EX_ORDER=[];
|
|
30
|
-
EX["01"]={no:"01",name:"曜石极光",en:"OBSIDIAN AURORA",group:"招牌特效",anim:"flashy",vars:{bgA:"#273049",bgB:"#090c15",edge:"rgba(255,255,255,.16)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f2f7ff",trk:"rgba(255,255,255,.1)",stI:"#8fa0b8",stP:"#6fb6ff",stA:"#ffb454",stD:"#34e39a",pbgA:"#171c2b",pbgB:"#0c0f18",pbd:"rgba(255,255,255,.09)",ptx:"#dfe7f3",itm:"#b6c6dd",itD:"#7d9c8d",cctx:"#b6c6dd",chipBg:"rgba(255,255,255,.06)",hintC:"#5f6b80",hair1:"#34e39a",hair2:"#7c6bff"},rim:"%RIM%{position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 0deg,transparent 0 68%,var(--stA) 86%,#fff 93%,transparent 100%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));filter:drop-shadow(0 0 6px var(--stA));opacity:.95;animation:dshSkinSpin 2.6s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
31
|
-
EX_ORDER.push("01");
|
|
32
|
-
EX["02"]={no:"02",name:"赛博机能",en:"CYBER CIRCUIT",group:"招牌特效",anim:"flashy",vars:{bgA:"#0d1b2e",bgB:"#04080f",edge:"rgba(0,229,255,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#c9e7f5",trk:"rgba(255,255,255,.1)",stI:"#4f7b95",stP:"#00e5ff",stA:"#ff2d95",stD:"#00ff9d",pbgA:"#0a1622",pbgB:"#050b12",pbd:"rgba(0,229,255,.24)",ptx:"#c9e7f5",itm:"#9fc3d8",itD:"#5f9a85",cctx:"#9fc3d8",chipBg:"rgba(0,229,255,.06)",hintC:"#4f7b95",hair1:"#00e5ff",hair2:"#ff2d95"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;border:1px dashed var(--stP);animation:dshSkinSpin 6s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,229,255,.07) 0 1px,transparent 1px 3px)}"};
|
|
33
|
-
EX_ORDER.push("02");
|
|
34
|
-
EX["03"]={no:"03",name:"等离子核心",en:"PLASMA CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2a1210",bgB:"#0d0403",edge:"rgba(255,140,60,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5e3d5",trk:"rgba(255,255,255,.1)",stI:"#8a5a4a",stP:"#ffa23d",stA:"#ff5c2b",stD:"#ffd23d",pbgA:"#1c0e0a",pbgB:"#0c0504",pbd:"rgba(255,140,60,.22)",ptx:"#f5e3d5",itm:"#c8a795",itD:"#96826e",cctx:"#c8a795",chipBg:"rgba(255,140,60,.07)",hintC:"#8a5a4a",hair1:"#ff9a3d",hair2:"#ff3d81"},rim:"%RIM%{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 40deg,rgba(255,154,61,0),#ff9a3d,#ff3d81,#3d9aff,rgba(61,154,255,0) 82%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 1px));filter:blur(2.5px);animation:dshSkinSpin 3s linear infinite}"};
|
|
35
|
-
EX_ORDER.push("03");
|
|
36
|
-
EX["04"]={no:"04",name:"全息幻彩",en:"HOLOGRAPHIC",group:"招牌特效",anim:"flashy",vars:{bgA:"#b8a6f5",bgB:"#6ec6ee",edge:"rgba(255,255,255,.65)",spec:"rgba(255,255,255,.5)",hi:"rgba(255,255,255,.6)",lbc:"#241d4f",trk:"rgba(36,29,79,.2)",stI:"#7c86a8",stP:"#6a5df0",stA:"#e0559f",stD:"#0fae84",pbgA:"#f2f0ff",pbgB:"#e2e8ff",pbd:"rgba(106,93,240,.28)",ptx:"#2a2547",itm:"#4a5470",itD:"#57806c",cctx:"#4a5470",chipBg:"rgba(106,93,240,.08)",hintC:"#7a7fa0",hair1:"#e0559f",hair2:"#6a5df0"},rim:"%RIM%{position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 0deg,#ff9ad5,#ffd1a1,#a1ffd1,#9ad5ff,#b89aff,#ff9ad5);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px));filter:blur(3px);opacity:.8;animation:dshSkinSpin 9s linear infinite}",band:"%BAND%{position:absolute;inset:3px 4px 55% 4px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.05));filter:blur(.5px)}"};
|
|
37
|
-
EX_ORDER.push("04");
|
|
38
|
-
EX["05"]={no:"05",name:"量子矩阵",en:"QUANTUM MATRIX",group:"招牌特效",anim:"flashy",vars:{bgA:"#0c1f12",bgB:"#020804",edge:"rgba(0,255,136,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#c9f5d9",trk:"rgba(255,255,255,.1)",stI:"#4f8a63",stP:"#27e584",stA:"#a3ff12",stD:"#00ff9d",pbgA:"#05130a",pbgB:"#020a05",pbd:"rgba(0,255,136,.25)",ptx:"#c9f5d9",itm:"#8fc7a5",itD:"#5f9a78",cctx:"#8fc7a5",chipBg:"rgba(0,255,136,.06)",hintC:"#4f8a63",hair1:"#27e584",hair2:"#a3ff12"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;border:1px dashed rgba(0,255,136,.5);animation:dshSkinSpinR 5s linear infinite}",band:"%BAND%{position:absolute;inset:4px;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(0,255,136,.55) 1px,transparent 1.4px);background-size:7px 7px;-webkit-mask:radial-gradient(circle,#000 0 62%,transparent 74%);mask:radial-gradient(circle,#000 0 62%,transparent 74%);opacity:.5}"};
|
|
39
|
-
EX_ORDER.push("05");
|
|
40
|
-
EX["06"]={no:"06",name:"星环",en:"STAR HALO",group:"招牌特效",anim:"flashy",vars:{bgA:"#131a33",bgB:"#05070f",edge:"rgba(186,160,255,.35)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e2dcff",trk:"rgba(255,255,255,.1)",stI:"#7d86a8",stP:"#8f9fff",stA:"#ffc46e",stD:"#b28bff",pbgA:"#101527",pbgB:"#070a14",pbd:"rgba(150,130,255,.22)",ptx:"#e2dcff",itm:"#a99cd0",itD:"#8678b0",cctx:"#a99cd0",chipBg:"rgba(150,130,255,.07)",hintC:"#7d86a8",hair1:"#8f9fff",hair2:"#b28bff"},rim:"%RIM%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.5px solid rgba(186,160,255,.65);transform:rotate(-16deg) scaleY(.42);box-shadow:0 0 10px rgba(150,120,255,.45),inset 0 0 6px rgba(150,120,255,.3)}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.8) 1px,transparent 1.3px),radial-gradient(rgba(186,160,255,.7) .8px,transparent 1.1px);background-size:21px 19px,13px 17px;background-position:4px 6px,9px 12px;opacity:.5;-webkit-mask:radial-gradient(circle,#000 0 55%,transparent 72%);mask:radial-gradient(circle,#000 0 55%,transparent 72%)}"};
|
|
41
|
-
EX_ORDER.push("06");
|
|
42
|
-
EX["07"]={no:"07",name:"熔岩核心",en:"MAGMA CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#1d0f0a",bgB:"#0a0403",edge:"rgba(255,110,40,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5ded0",trk:"rgba(255,255,255,.1)",stI:"#7d5648",stP:"#ff8a3d",stA:"#ff4d1f",stD:"#ffbe3d",pbgA:"#170d09",pbgB:"#0b0504",pbd:"rgba(255,110,40,.22)",ptx:"#f5ded0",itm:"#c8a48e",itD:"#96826e",cctx:"#c8a48e",chipBg:"rgba(255,110,40,.07)",hintC:"#7d5648",hair1:"#ff6b2b",hair2:"#ffbe3d"},band:"%BAND%{position:absolute;inset:2px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 12deg,transparent 0 26deg,rgba(255,110,40,.6) 26deg 29deg);-webkit-mask:radial-gradient(circle,transparent 0 46%,#000 60% 78%,transparent 88%);mask:radial-gradient(circle,transparent 0 46%,#000 60% 78%,transparent 88%);opacity:.75}"};
|
|
43
|
-
EX_ORDER.push("07");
|
|
44
|
-
EX["08"]={no:"08",name:"极地冰川",en:"GLACIER",group:"招牌特效",anim:"flashy",vars:{bgA:"#dff0fa",bgB:"#9fc8e8",edge:"rgba(255,255,255,.78)",spec:"rgba(255,255,255,.75)",hi:"rgba(255,255,255,.7)",lbc:"#123247",trk:"rgba(20,60,90,.18)",stI:"#6f8ba5",stP:"#2f9dd8",stA:"#f06a5d",stD:"#0fa878",pbgA:"#eef7fd",pbgB:"#d8ecf8",pbd:"rgba(60,120,170,.3)",ptx:"#14344a",itm:"#3f5f7a",itD:"#4a7a63",cctx:"#3f5f7a",chipBg:"rgba(30,80,120,.07)",hintC:"#5b7d96",hair1:"#2f9dd8",hair2:"#0fa878"},band:"%BAND%{position:absolute;inset:2px;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.95) 1px,transparent 1.5px);background-size:15px 13px;background-position:3px 4px;opacity:.8;-webkit-mask:radial-gradient(circle,#000 0 58%,transparent 75%);mask:radial-gradient(circle,#000 0 58%,transparent 75%)}"};
|
|
45
|
-
EX_ORDER.push("08");
|
|
46
|
-
EX["09"]={no:"09",name:"霓虹脉搏",en:"NEON PULSE",group:"招牌特效",anim:"flashy",vars:{bgA:"#10101f",bgB:"#05050c",edge:"rgba(255,45,149,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f0d9ec",trk:"rgba(255,255,255,.1)",stI:"#5a5a7d",stP:"#00c8ff",stA:"#ff2d95",stD:"#00ff9d",pbgA:"#0d0d1a",pbgB:"#060609",pbd:"rgba(255,45,149,.3)",ptx:"#f0d9ec",itm:"#b893c9",itD:"#7d9c8d",cctx:"#b893c9",chipBg:"rgba(255,45,149,.07)",hintC:"#8b8bb0",hair1:"#ff2d95",hair2:"#00c8ff"},rim:"%RIM%{position:absolute;inset:-7px;border-radius:inherit;pointer-events:none;border:1px solid rgba(0,200,255,.3)}",extra:"%B%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.5),0 0 12px var(--st),0 0 0 1px var(--st) inset!important}"};
|
|
47
|
-
EX_ORDER.push("09");
|
|
48
|
-
EX["10"]={no:"10",name:"机械核心",en:"MECH CORE",group:"招牌特效",anim:"flashy",vars:{bgA:"#262b33",bgB:"#0e1116",edge:"rgba(255,176,32,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dde3ec",trk:"rgba(255,255,255,.1)",stI:"#6f7a88",stP:"#58a6ff",stA:"#ffb020",stD:"#3fd68a",pbgA:"#171b22",pbgB:"#0c0f14",pbd:"rgba(255,176,32,.22)",ptx:"#dde3ec",itm:"#9aa5b3",itD:"#7d9c8d",cctx:"#9aa5b3",chipBg:"rgba(255,176,32,.06)",hintC:"#6f7a88",hair1:"#ffb020",hair2:"#58a6ff"},rim:"%RIM%{position:absolute;inset:-4px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(255,176,32,.55) 0 7deg,transparent 7deg 24deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 2px));animation:dshSkinSpinR 11s linear infinite}",band:"%BAND%{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 4%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 50% 96%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 4% 50%,rgba(255,255,255,.7) 1.2px,transparent 1.8px),radial-gradient(circle at 96% 50%,rgba(255,255,255,.7) 1.2px,transparent 1.8px);opacity:.6}"};
|
|
49
|
-
EX_ORDER.push("10");
|
|
50
|
-
EX["11"]={no:"11",name:"暗物质",en:"DARK MATTER",group:"招牌特效",anim:"flashy",vars:{bgA:"#100a1f",bgB:"#030109",edge:"rgba(160,110,255,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e4d9ff",trk:"rgba(255,255,255,.1)",stI:"#5f5480",stP:"#9d6bff",stA:"#d05cff",stD:"#7af0ff",pbgA:"#120c20",pbgB:"#070310",pbd:"rgba(160,110,255,.25)",ptx:"#e4d9ff",itm:"#a99cc9",itD:"#7d9c8d",cctx:"#a99cc9",chipBg:"rgba(160,110,255,.07)",hintC:"#9082b3",hair1:"#d05cff",hair2:"#7af0ff"},rim:"%RIM%{position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from 90deg,transparent 0 30%,rgba(208,92,255,.9) 52%,rgba(122,240,255,.7) 68%,transparent 88%);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 1px));filter:blur(1.5px);animation:dshSkinSpin 2.2s linear infinite}",band:"%BAND%{position:absolute;inset:9px;border-radius:inherit;pointer-events:none;background:radial-gradient(circle,#000 0 55%,rgba(122,240,255,.25) 78%,transparent)}"};
|
|
51
|
-
EX_ORDER.push("11");
|
|
52
|
-
EX["12"]={no:"12",name:"粒子星云",en:"PARTICLE NEBULA",group:"招牌特效",anim:"flashy",vars:{bgA:"#1b1440",bgB:"#070516",edge:"rgba(200,140,255,.35)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#e8def5",trk:"rgba(255,255,255,.1)",stI:"#7d72a8",stP:"#7fb0ff",stA:"#ff8ad0",stD:"#8affd0",pbgA:"#150f30",pbgB:"#090617",pbd:"rgba(170,130,255,.22)",ptx:"#e8def5",itm:"#b0a3cc",itD:"#7d9c8d",cctx:"#b0a3cc",chipBg:"rgba(170,130,255,.07)",hintC:"#7d72a8",hair1:"#ff8ad0",hair2:"#7fb0ff"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(255,138,208,.9) 1.1px,transparent 1.6px),radial-gradient(rgba(127,176,255,.85) .9px,transparent 1.4px),radial-gradient(rgba(255,255,255,.9) .8px,transparent 1.2px);background-size:19px 17px,14px 21px,23px 13px;background-position:5px 7px,11px 14px,2px 16px;opacity:.75;-webkit-mask:radial-gradient(circle,#000 0 56%,transparent 74%);mask:radial-gradient(circle,#000 0 56%,transparent 74%)}"};
|
|
53
|
-
EX_ORDER.push("12");
|
|
54
|
-
EX["13"]={no:"13",name:"流体渐变",en:"FLUID GRADIENT",group:"招牌特效",anim:"flashy",vars:{bgA:"#7c5cf0",bgB:"#2a1a5e",edge:"rgba(255,255,255,.32)",spec:"rgba(255,255,255,.4)",hi:"rgba(255,255,255,.12)",lbc:"#f2edff",trk:"rgba(255,255,255,.1)",stI:"#8f86b8",stP:"#4dd8ff",stA:"#ff7ab0",stD:"#4dffc0",pbgA:"#151033",pbgB:"#0a0720",pbd:"rgba(180,150,255,.25)",ptx:"#ece4ff",itm:"#b3a6d9",itD:"#7d9c8d",cctx:"#b3a6d9",chipBg:"rgba(180,150,255,.08)",hintC:"#8f86b8",hair1:"#4dd8ff",hair2:"#ff7ab0"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 28% 68%,rgba(255,122,176,.55),transparent 55%),radial-gradient(circle at 74% 26%,rgba(77,216,255,.5),transparent 52%)}"};
|
|
55
|
-
EX_ORDER.push("13");
|
|
56
|
-
EX["14"]={no:"14",name:"黄金时代",en:"GOLDEN AGE",group:"招牌特效",anim:"flashy",vars:{bgA:"#241d0d",bgB:"#0c0904",edge:"rgba(255,215,0,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ffefc4",trk:"rgba(255,255,255,.1)",stI:"#8a7a4f",stP:"#e6c34d",stA:"#ffb020",stD:"#58d68d",pbgA:"#16120a",pbgB:"#0a0805",pbd:"rgba(255,215,0,.28)",ptx:"#f2e6c8",itm:"#c2b48c",itD:"#7d9c8d",cctx:"#c2b48c",chipBg:"rgba(255,215,0,.06)",hintC:"#8a7a4f",hair1:"#ffd700",hair2:"#e6c34d"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,236,170,.75) 47%,rgba(255,255,255,.9) 50%,rgba(255,236,170,.75) 53%,transparent 70%);background-size:260% 100%;background-position:118% 0;-webkit-mask:radial-gradient(circle,#000 0 62%,transparent 78%);mask:radial-gradient(circle,#000 0 62%,transparent 78%)}"};
|
|
57
|
-
EX_ORDER.push("14");
|
|
58
|
-
EX["15"]={no:"15",name:"蒸汽波",en:"VAPORWAVE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2b1140",bgB:"#0d0518",edge:"rgba(255,94,200,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f5dcf0",trk:"rgba(255,255,255,.1)",stI:"#7d5a95",stP:"#22d3ee",stA:"#ff5ec8",stD:"#3dffc8",pbgA:"#170b26",pbgB:"#0b0513",pbd:"rgba(255,94,200,.3)",ptx:"#f5dcf0",itm:"#c39cc9",itD:"#7d9c8d",cctx:"#c39cc9",chipBg:"rgba(255,94,200,.07)",hintC:"#7d5a95",hair1:"#ff5ec8",hair2:"#22d3ee"},band:"%BAND%{position:absolute;inset:2px 3px 52% 3px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(255,150,220,.4),rgba(120,240,255,.08));filter:blur(.5px)}",extra:"%B%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.5),-4px -4px 16px rgba(255,94,200,.45),4px 4px 16px rgba(34,211,238,.45)!important}"};
|
|
59
|
-
EX_ORDER.push("15");
|
|
60
|
-
EX["16"]={no:"16",name:"战术HUD",en:"TACTICAL HUD",group:"招牌特效",anim:"flashy",vars:{bgA:"#0f1a12",bgB:"#050b07",edge:"rgba(74,222,128,.45)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d2f5dc",trk:"rgba(255,255,255,.1)",stI:"#5a7d66",stP:"#4ade80",stA:"#a3e635",stD:"#34e39a",pbgA:"#0c1710",pbgB:"#060d08",pbd:"rgba(74,222,128,.28)",ptx:"#d2f5dc",itm:"#8fb89c",itD:"#5f9a78",cctx:"#8fb89c",chipBg:"rgba(74,222,128,.06)",hintC:"#5a7d66",hair1:"#4ade80",hair2:"#a3e635"},rim:"%RIM%{position:absolute;inset:-5px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(74,222,128,.5) 0 2deg,transparent 2deg 15deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 1px));animation:dshSkinSpin 14s linear infinite}",band:"%BAND%{position:absolute;inset:7px;border-radius:inherit;pointer-events:none;background:linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 50% 0/1px 7px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 50% 100%/1px 7px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 0 50%/7px 1px no-repeat,linear-gradient(rgba(74,222,128,.55),rgba(74,222,128,.55)) 100% 50%/7px 1px no-repeat;opacity:.7}"};
|
|
61
|
-
EX_ORDER.push("16");
|
|
62
|
-
EX["17"]={no:"17",name:"方块像素",en:"PIXEL QUEST",group:"招牌特效",anim:"flashy",vars:{bgA:"#3b4268",bgB:"#24283d",edge:"#0f1120",spec:"rgba(255,255,255,.22)",hi:"rgba(255,255,255,.1)",lbc:"#dfe4ff",trk:"rgba(16,18,31,.8)",stI:"#8a90b8",stP:"#41a6f6",stA:"#ffcd75",stD:"#38b764",pbgA:"#2a2f4a",pbgB:"#1a1d33",pbd:"rgba(15,17,32,.9)",ptx:"#dfe4ff",itm:"#9aa3cc",itD:"#7d9c8d",cctx:"#9aa3cc",chipBg:"rgba(255,255,255,.06)",hintC:"#9aa3c2",hair1:"#ffcd75",hair2:"#41a6f6"},extra:"%B%{border-radius:10px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),5px 5px 0 rgba(0,0,0,.55),0 0 0 1px var(--edge)!important;font-family:Consolas,monospace!important}"};
|
|
63
|
-
EX_ORDER.push("17");
|
|
64
|
-
EX["18"]={no:"18",name:"磁悬浮轨道",en:"MAGLEV ORBIT",group:"招牌特效",anim:"flashy",vars:{bgA:"#141a24",bgB:"#070a10",edge:"rgba(90,209,230,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d8ecf2",trk:"rgba(255,255,255,.1)",stI:"#5f7a88",stP:"#5ad1e6",stA:"#ffb454",stD:"#34e39a",pbgA:"#121822",pbgB:"#080c12",pbd:"rgba(90,209,230,.25)",ptx:"#d8ecf2",itm:"#96b5c2",itD:"#7d9c8d",cctx:"#96b5c2",chipBg:"rgba(90,209,230,.06)",hintC:"#5f7a88",hair1:"#5ad1e6",hair2:"#34e39a"},rim:"%RIM%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.3px solid rgba(90,209,230,.7);transform:rotateX(66deg) rotate(-18deg);box-shadow:0 0 9px rgba(90,209,230,.4)}",band:"%BAND%{position:absolute;inset:-7px -15px;border-radius:50%;pointer-events:none;border:1.3px solid rgba(52,227,154,.55);transform:rotateX(66deg) rotate(52deg);box-shadow:0 0 9px rgba(52,227,154,.35)}"};
|
|
65
|
-
EX_ORDER.push("18");
|
|
66
|
-
EX["19"]={no:"19",name:"太阳风暴",en:"SOLAR FLARE",group:"招牌特效",anim:"flashy",vars:{bgA:"#2a1a08",bgB:"#0f0803",edge:"rgba(255,220,120,.5)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f8ecd2",trk:"rgba(255,255,255,.1)",stI:"#9a835a",stP:"#ffd23d",stA:"#ff9a1f",stD:"#ffe98a",pbgA:"#1c1206",pbgB:"#0d0803",pbd:"rgba(255,210,110,.28)",ptx:"#f8ecd2",itm:"#c9b491",itD:"#9a8a68",cctx:"#c9b491",chipBg:"rgba(255,210,110,.07)",hintC:"#9a835a",hair1:"#ffd23d",hair2:"#ff9a1f"},rim:"%RIM%{position:absolute;inset:-8px;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg,rgba(255,220,120,.4) 0 4deg,transparent 4deg 16deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 3px),#000 calc(100% - 1px),transparent 100%);mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 calc(100% - 3px),#000 calc(100% - 1px),transparent 100%);filter:blur(.6px);animation:dshSkinSpin 16s linear infinite}",band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 62%,rgba(255,240,180,.5) 0%,transparent 52%)}"};
|
|
67
|
-
EX_ORDER.push("19");
|
|
68
|
-
EX["20"]={no:"20",name:"深海荧光",en:"ABYSS BIOLUM",group:"招牌特效",anim:"flashy",vars:{bgA:"#06222a",bgB:"#02090c",edge:"rgba(45,212,191,.4)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#d2f2ee",trk:"rgba(255,255,255,.1)",stI:"#4f7d7a",stP:"#2dd4bf",stA:"#b26bff",stD:"#5dffb0",pbgA:"#062026",pbgB:"#030c10",pbd:"rgba(45,212,191,.25)",ptx:"#d2f2ee",itm:"#8fc0ba",itD:"#5f9a85",cctx:"#8fc0ba",chipBg:"rgba(45,212,191,.06)",hintC:"#4f7d7a",hair1:"#2dd4bf",hair2:"#5dffb0"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background-image:radial-gradient(rgba(93,255,214,.95) 1.2px,transparent 1.7px),radial-gradient(rgba(178,107,255,.85) 1px,transparent 1.5px),radial-gradient(rgba(93,220,255,.8) .9px,transparent 1.4px);background-size:17px 19px,13px 15px,21px 12px;background-position:4px 8px,10px 3px,15px 14px;opacity:.8;-webkit-mask:radial-gradient(circle,#000 0 54%,transparent 74%);mask:radial-gradient(circle,#000 0 54%,transparent 74%)}"};
|
|
69
|
-
EX_ORDER.push("20");
|
|
70
|
-
EX["21"]={no:"21",name:"墨玉",en:"INK JADE",group:"克制精选",anim:"calm",vars:{bgA:"#22302e",bgB:"#0b1211",edge:"rgba(190,225,215,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dcf2ec",trk:"rgba(190,225,215,.14)",stI:"#5f7a74",stP:"#79a49a",stA:"#4fe0c0",stD:"#2a9d84",pbgA:"#141f1d",pbgB:"#0a100f",pbd:"rgba(190,225,215,.14)",ptx:"#d9ece7",itm:"#9db3ad",itD:"#6f938a",cctx:"#9db3ad",chipBg:"rgba(190,225,215,.07)",hintC:"#5f7a74",hair1:"#4fe0c0",hair2:"#2a9d84"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
71
|
-
EX_ORDER.push("21");
|
|
72
|
-
EX["22"]={no:"22",name:"石墨极简",en:"GRAPHITE MONO",group:"克制精选",anim:"calm",vars:{bgA:"#262b33",bgB:"#101319",edge:"rgba(255,255,255,.14)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#eef1f6",trk:"rgba(255,255,255,.1)",stI:"#6b7480",stP:"#9aa2ad",stA:"#e8edf2",stD:"#ffffff",pbgA:"#181c23",pbgB:"#0d1015",pbd:"rgba(255,255,255,.09)",ptx:"#e2e7ee",itm:"#9aa4b0",itD:"#7d8792",cctx:"#9aa4b0",chipBg:"rgba(255,255,255,.05)",hintC:"#67707f",hair1:"#e8edf2",hair2:"#6b7480"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
73
|
-
EX_ORDER.push("22");
|
|
74
|
-
EX["23"]={no:"23",name:"暮蓝",en:"DUSK BLUE",group:"克制精选",anim:"calm",vars:{bgA:"#1e2836",bgB:"#0b0f18",edge:"rgba(170,195,230,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#dce6f4",trk:"rgba(170,195,230,.13)",stI:"#5d6b80",stP:"#8299b8",stA:"#9fc6f2",stD:"#5f86be",pbgA:"#141b26",pbgB:"#0a0e16",pbd:"rgba(170,195,230,.13)",ptx:"#d8e2f0",itm:"#9cafcc",itD:"#7288a6",cctx:"#9cafcc",chipBg:"rgba(170,195,230,.06)",hintC:"#5d6b80",hair1:"#9fc6f2",hair2:"#5f86be"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
75
|
-
EX_ORDER.push("23");
|
|
76
|
-
EX["24"]={no:"24",name:"可可",en:"COCOA",group:"克制精选",anim:"calm",vars:{bgA:"#2b2019",bgB:"#120c08",edge:"rgba(224,190,150,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#f2e6d8",trk:"rgba(224,190,150,.13)",stI:"#7d6a5c",stP:"#ab8d70",stA:"#e0aa6e",stD:"#a87848",pbgA:"#1c1410",pbgB:"#0f0a07",pbd:"rgba(224,190,150,.13)",ptx:"#efe2d2",itm:"#bda892",itD:"#96826e",cctx:"#bda892",chipBg:"rgba(224,190,150,.06)",hintC:"#7d6a5c",hair1:"#e0aa6e",hair2:"#a87848"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
77
|
-
EX_ORDER.push("24");
|
|
78
|
-
EX["25"]={no:"25",name:"雾灰哑光",en:"MATTE MIST",group:"克制精选",anim:"calm",vars:{bgA:"#2a2f36",bgB:"#161a20",edge:"rgba(200,210,222,.18)",spec:"rgba(255,255,255,.07)",hi:"rgba(255,255,255,.06)",lbc:"#e5eaf0",trk:"rgba(200,210,222,.12)",stI:"#67707c",stP:"#8b98a8",stA:"#bcc8d6",stD:"#8b9db2",pbgA:"#181c22",pbgB:"#0e1116",pbd:"rgba(200,210,222,.12)",ptx:"#dfe4ea",itm:"#9aa5b1",itD:"#7c8894",cctx:"#9aa5b1",chipBg:"rgba(200,210,222,.06)",hintC:"#67707c",hair1:"#bcc8d6",hair2:"#67707c"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.09}"};
|
|
79
|
-
EX_ORDER.push("25");
|
|
80
|
-
EX["26"]={no:"26",name:"苔原",en:"MOSS TUNDRA",group:"克制精选",anim:"calm",vars:{bgA:"#1c2a20",bgB:"#0a120c",edge:"rgba(180,215,185,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ddeddd",trk:"rgba(180,215,185,.13)",stI:"#5d7a64",stP:"#86ad8c",stA:"#a4dca0",stD:"#4f9d68",pbgA:"#131f16",pbgB:"#0a110c",pbd:"rgba(180,215,185,.13)",ptx:"#dae9da",itm:"#9db8a0",itD:"#75967c",cctx:"#9db8a0",chipBg:"rgba(180,215,185,.06)",hintC:"#5d7a64",hair1:"#a4dca0",hair2:"#4f9d68"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
81
|
-
EX_ORDER.push("26");
|
|
82
|
-
EX["27"]={no:"27",name:"烟紫",en:"DUSTY PLUM",group:"克制精选",anim:"calm",vars:{bgA:"#26202b",bgB:"#100b14",edge:"rgba(210,190,230,.2)",spec:"rgba(255,255,255,.16)",hi:"rgba(255,255,255,.12)",lbc:"#ebe2f4",trk:"rgba(210,190,230,.13)",stI:"#776b82",stP:"#9d8bb0",stA:"#c9aee6",stD:"#8a6cae",pbgA:"#171221",pbgB:"#0c0812",pbd:"rgba(210,190,230,.13)",ptx:"#e6ddf0",itm:"#a99bb8",itD:"#877799",cctx:"#a99bb8",chipBg:"rgba(210,190,230,.06)",hintC:"#776b82",hair1:"#c9aee6",hair2:"#8a6cae"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
83
|
-
EX_ORDER.push("27");
|
|
84
|
-
EX["28"]={no:"28",name:"月白纸墨",en:"PAPER & INK",group:"克制精选",anim:"calm",vars:{bgA:"#f7f5ef",bgB:"#dcd8cd",edge:"rgba(60,55,45,.28)",spec:"rgba(255,255,255,.85)",hi:"rgba(255,255,255,.7)",lbc:"#2c2a24",trk:"rgba(60,55,45,.14)",stI:"#a09c92",stP:"#6e6a60",stA:"#33302a",stD:"#55524a",pbgA:"#faf9f5",pbgB:"#edeae1",pbd:"rgba(60,55,45,.16)",ptx:"#33302a",itm:"#6e6a60",itD:"#8b877d",cctx:"#6e6a60",chipBg:"rgba(60,55,45,.05)",hintC:"#8b877d",hair1:"#33302a",hair2:"#a09c92"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:.13}"};
|
|
85
|
-
EX_ORDER.push("28");
|
|
16
|
+
var EXTRAS_URL = "/dsh-todo-float-ball/skins-extra";
|
|
17
|
+
var EXTRAS_FLAG = "dsh-ball-skins-extra-v1";
|
|
18
|
+
var EX = {};
|
|
19
|
+
EX["129"]={no:"129",name:"官方深色",en:"OFFICIAL DARK",group:"官方主题",anim:"calm",vars:{bgA:"#2c2c2e",bgB:"#151517",edge:"rgba(255,255,255,.13)",spec:"rgba(255,255,255,.14)",hi:"rgba(255,255,255,.10)",lbc:"#f9fafb",trk:"rgba(255,255,255,.10)",stI:"#979da6",stP:"#4176e6",stA:"#5686fe",stD:"#22c55e",pbgA:"#1b1b1c",pbgB:"#0f1115",pbd:"rgba(255,255,255,.09)",ptx:"#e1e5ee",itm:"#adb2b8",itD:"#81858c",cctx:"#adb2b8",chipBg:"rgba(255,255,255,.05)",hintC:"#81858c",hair1:"#5686fe",hair2:"#4176e6"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:0.10}"};
|
|
20
|
+
EX["130"]={no:"130",name:"官方浅色",en:"OFFICIAL LIGHT",group:"官方主题",anim:"calm",vars:{bgA:"#ffffff",bgB:"#e9ecf2",edge:"rgba(20,24,34,.14)",spec:"rgba(255,255,255,.92)",hi:"rgba(255,255,255,.80)",lbc:"#151517",trk:"rgba(20,24,34,.12)",stI:"#81858c",stP:"#4176e6",stA:"#4176e6",stD:"#22c55e",pbgA:"#ffffff",pbgB:"#f1f3f5",pbd:"rgba(20,24,34,.10)",ptx:"#151517",itm:"#43454a",itD:"#61666b",cctx:"#43454a",chipBg:"rgba(20,24,34,.05)",hintC:"#81858c",hair1:"#4176e6",hair2:"#7aaaff"},band:"%BAND%{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 50% 122%,var(--st) 0%,transparent 54%);opacity:0.08}"};
|
|
86
21
|
var KIND_LABEL={deep:"浓郁深底",muted:"尘埃灰调",soft:"柔光深底",neutral:"中性点缀",light:"浅色纸面"};
|
|
87
|
-
var
|
|
22
|
+
var KEY="dsh-ball-skin",AUTO_ID="auto",OFFICIAL_DARK="129",OFFICIAL_LIGHT="130",DEFAULT_ID="auto";
|
|
88
23
|
var ALL=[],BY_ID={};
|
|
89
24
|
(function build(){
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
FORMULA[kind].forEach(function(row){
|
|
94
|
-
no++;var id=(no<100?"0":"")+String(no);
|
|
95
|
-
var s={id:id,no:id,name:row[0],en:row[1],kind:kind,group:KIND_LABEL[kind],anim:"calm",vars:varsFor(kind,row[2])};
|
|
96
|
-
if(!s.band)s.band=TINT;
|
|
97
|
-
ALL.push(s);BY_ID[id]=s;
|
|
98
|
-
});
|
|
99
|
-
});
|
|
25
|
+
// 官方两套固定在前(序号 1/2);其余套合并时带自己的 no,编号不会错位。
|
|
26
|
+
["129","130"].forEach(function(id){var s=EX[id];if(!s)return;if(!s.id)s.id=id;if(!s.kind)s.kind="special";ALL.push(s);BY_ID[id]=s;});
|
|
27
|
+
ALL.forEach(function(s,idx){s.no=String(idx+1);});
|
|
100
28
|
})();
|
|
101
|
-
|
|
102
|
-
function
|
|
29
|
+
function isDark(){try{return !!(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);}catch(e){return true;}}
|
|
30
|
+
function pref(){try{var v=localStorage.getItem(KEY);if(v==="legacy")return "legacy";if(v&&(v===AUTO_ID||BY_ID[v]))return v;}catch(e){}return DEFAULT_ID;}
|
|
31
|
+
function resolve(id){
|
|
32
|
+
if(!id||id===AUTO_ID)return isDark()?OFFICIAL_DARK:OFFICIAL_LIGHT;
|
|
33
|
+
if(BY_ID[id])return id;
|
|
34
|
+
return isDark()?OFFICIAL_DARK:OFFICIAL_LIGHT;
|
|
35
|
+
}
|
|
36
|
+
function getId(){return resolve(pref());}
|
|
103
37
|
function setSkin(id){
|
|
104
|
-
if(
|
|
38
|
+
if(id!==AUTO_ID&&id!=="legacy"&&!BY_ID[id])return false;
|
|
105
39
|
try{localStorage.setItem(KEY,id);}catch(e){}
|
|
106
40
|
var hooks=window.__dshBallSkinHooks||[];
|
|
107
41
|
for(var i=0;i<hooks.length;i++){try{hooks[i](id,BY_ID[id]);}catch(e){}}
|
|
108
42
|
try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:id}}));}catch(e){}
|
|
109
43
|
return true;
|
|
110
44
|
}
|
|
111
|
-
function varsCss(sel,id){var s=BY_ID[id]||
|
|
45
|
+
function varsCss(sel,id){var s=BY_ID[resolve(id)]||ALL[0];var out=sel+"{";
|
|
112
46
|
for(var k in s.vars){out+="--"+k+":"+s.vars[k]+";";}
|
|
113
47
|
return out+"}";}
|
|
114
48
|
function varsAll(sel){return varsCss(sel,getId());}
|
|
115
|
-
function fx(id,sel){var s=BY_ID[id]||
|
|
49
|
+
function fx(id,sel){var s=BY_ID[resolve(id)]||ALL[0];var out=[];
|
|
116
50
|
if(s.rim)out.push(s.rim.split("%RIM%").join(sel.RIM));
|
|
117
51
|
if(s.band)out.push(s.band.split("%BAND%").join(sel.BAND));
|
|
118
52
|
if(s.extra)out.push(s.extra.split("%B%").join(sel.B));
|
|
119
53
|
return out.join("\n");}
|
|
120
54
|
function groups(){var g=[],seen={};ALL.forEach(function(s){if(!seen[s.group]){seen[s.group]=true;g.push(s.group);}});return g;}
|
|
121
|
-
|
|
55
|
+
// ---- 懒加载:整批 extras 只请求一次,内存 + localStorage 双缓存 ----
|
|
56
|
+
var extrasLoaded=false,extrasPromise=null;
|
|
57
|
+
function mergeExtras(list){
|
|
58
|
+
var added=0,i=0,s;
|
|
59
|
+
for(;i<(list?list.length:0);i++){s=list[i];
|
|
60
|
+
if(!s||!s.id||BY_ID[s.id]||s.id===OFFICIAL_DARK||s.id===OFFICIAL_LIGHT)continue;
|
|
61
|
+
BY_ID[s.id]=s;ALL.push(s);added++;}
|
|
62
|
+
if(added)ALL.forEach(function(x,idx){x.no=String(idx+1);});
|
|
63
|
+
return added;
|
|
64
|
+
}
|
|
65
|
+
function loadExtras(){
|
|
66
|
+
if(extrasLoaded)return Promise.resolve(true);
|
|
67
|
+
if(extrasPromise)return extrasPromise;
|
|
68
|
+
if(typeof fetch!=="function"){extrasLoaded=true;return Promise.resolve(false);}
|
|
69
|
+
extrasPromise=new Promise(function(done){
|
|
70
|
+
fetch(EXTRAS_URL,{credentials:"same-origin"}).then(function(r){
|
|
71
|
+
if(!r.ok)throw new Error("HTTP "+r.status);
|
|
72
|
+
return r.json();
|
|
73
|
+
}).then(function(list){
|
|
74
|
+
if(!list||list.length!==list.length+0)throw new Error("bad payload");
|
|
75
|
+
mergeExtras(list);
|
|
76
|
+
extrasLoaded=true;
|
|
77
|
+
if(window.__DSH_BALL_SKINS)window.__DSH_BALL_SKINS.__extrasLoaded=true;
|
|
78
|
+
try{localStorage.setItem(EXTRAS_FLAG,"1");}catch(e){}
|
|
79
|
+
done(true);
|
|
80
|
+
}).catch(function(){extrasPromise=null;done(false);});
|
|
81
|
+
});
|
|
82
|
+
return extrasPromise;
|
|
83
|
+
}
|
|
84
|
+
window.__DSH_BALL_SKINS={ALL:ALL,BY_ID:BY_ID,getId:getId,getPref:pref,pref:pref,resolve:resolve,isDark:isDark,setSkin:setSkin,varsCss:varsCss,varsAll:varsAll,fx:fx,groups:groups,KIND_LABEL:KIND_LABEL,KEY:KEY,AUTO_ID:AUTO_ID,OFFICIAL_DARK:OFFICIAL_DARK,OFFICIAL_LIGHT:OFFICIAL_LIGHT,DEFAULT_ID:DEFAULT_ID,loadExtras:loadExtras,extrasUrl:EXTRAS_URL,__extrasLoaded:false};
|
|
85
|
+
// 上次选的正好是被移出的那套时静默补拉一次,避免重启后被悄悄换回 auto。
|
|
86
|
+
(function hydrate(){
|
|
87
|
+
var want=null;
|
|
88
|
+
try{want=localStorage.getItem(KEY);}catch(e){}
|
|
89
|
+
if(!want||want===AUTO_ID||want==="legacy"||BY_ID[want])return;
|
|
90
|
+
loadExtras().then(function(ok){
|
|
91
|
+
if(!ok)return;
|
|
92
|
+
try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:want,lazy:true}}));}catch(e){}
|
|
93
|
+
});
|
|
94
|
+
})();
|
|
95
|
+
function _onScheme(){try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:getId(),auto:true}}));}catch(e){}}
|
|
96
|
+
try{
|
|
97
|
+
var mq=window.matchMedia("(prefers-color-scheme: dark)");
|
|
98
|
+
if(mq&&mq.addEventListener)mq.addEventListener("change",_onScheme);
|
|
99
|
+
else if(mq&&mq.addListener)mq.addListener(_onScheme);
|
|
100
|
+
}catch(e){}
|
|
122
101
|
})();
|
|
123
102
|
|
|
124
103
|
// ============================================================
|
|
@@ -158,7 +137,84 @@ window.__ModuleLoader__.load({
|
|
|
158
137
|
var POS_KEY = "dsh-todo-float-ball-pos";
|
|
159
138
|
var PIN_KEY = "dsh-todo-float-ball-pinned";
|
|
160
139
|
var CAPSULE_KEY = "dsh-todo-float-ball-capsule";
|
|
161
|
-
|
|
140
|
+
function dshUpdMsg(btn, text, color) {
|
|
141
|
+
try {
|
|
142
|
+
if (!btn || !btn.parentNode) return;
|
|
143
|
+
var m = btn.__updMsgEl;
|
|
144
|
+
if (!m) {
|
|
145
|
+
m = document.createElement("span");
|
|
146
|
+
m.style.cssText = "margin-left:6px;font-size:11px;line-height:1.2;max-width:220px;display:inline-block;vertical-align:middle;opacity:0;transition:opacity .18s";
|
|
147
|
+
btn.parentNode.insertBefore(m, btn.nextSibling);
|
|
148
|
+
btn.__updMsgEl = m;
|
|
149
|
+
}
|
|
150
|
+
m.textContent = text;
|
|
151
|
+
m.style.color = color || "currentColor";
|
|
152
|
+
m.style.opacity = "1";
|
|
153
|
+
if (btn.__updMsgT) clearTimeout(btn.__updMsgT);
|
|
154
|
+
btn.__updMsgT = setTimeout(function () { try { m.style.opacity = "0"; } catch (e) {} }, 3500);
|
|
155
|
+
} catch (e) {}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function dshUpdClick(btn, pkg) {
|
|
159
|
+
if (!btn) return;
|
|
160
|
+
var st = btn.__updWired || 0;
|
|
161
|
+
var base = "/dsh-skill-browser";
|
|
162
|
+
if (st === 2) {
|
|
163
|
+
btn.disabled = true; btn.textContent = "…";
|
|
164
|
+
dshUpdMsg(btn, "正在更新…");
|
|
165
|
+
fetch(base + "/plugin-update-apply?pkg=" + encodeURIComponent(pkg), { method: "POST" })
|
|
166
|
+
.then(function (r) { return r.json(); })
|
|
167
|
+
.then(function (j) {
|
|
168
|
+
btn.disabled = false; btn.__updWired = 0; btn.textContent = "↑";
|
|
169
|
+
if (j && j.ok) { btn.title = "已更新到 v" + (j.to || ""); btn.style.color = "#4ade80"; dshUpdMsg(btn, "已更新到 v" + (j.to || "") + ",请彻底退出 DSH 重启", "#4ade80"); }
|
|
170
|
+
else { var m1 = (j && (j.error || j.refused)) || "无法更新"; btn.style.color = "#ff8a8a"; btn.title = m1; dshUpdMsg(btn, m1, "#ff8a8a"); }
|
|
171
|
+
})
|
|
172
|
+
.catch(function () { btn.disabled = false; btn.__updWired = 0; btn.textContent = "↑"; dshUpdMsg(btn, "更新请求失败(宿主未重启?)", "#ff8a8a"); });
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
btn.__updWired = 1; btn.textContent = "⏳"; btn.title = "检查中…";
|
|
176
|
+
dshUpdMsg(btn, "检查中…");
|
|
177
|
+
fetch(base + "/plugin-update?pkg=" + encodeURIComponent(pkg))
|
|
178
|
+
.then(function (r) {
|
|
179
|
+
if (!r.ok) throw new Error("HTTP " + r.status);
|
|
180
|
+
return r.json();
|
|
181
|
+
})
|
|
182
|
+
.then(function (j) {
|
|
183
|
+
if (!j || !j.current) throw new Error((j && (j.error || j.detail)) || "接口返回异常");
|
|
184
|
+
if (j.hasUpdate) {
|
|
185
|
+
btn.__updWired = 2; btn.textContent = "↑"; btn.style.color = "#ff4d4f";
|
|
186
|
+
btn.title = "有新版本 v" + j.latest + "(当前 v" + j.current + "),点一下更新";
|
|
187
|
+
dshUpdMsg(btn, "有新版本 v" + j.latest + ",再点一下更新", "#ff4d4f");
|
|
188
|
+
} else {
|
|
189
|
+
btn.__updWired = 0; btn.textContent = "↑"; btn.style.color = "";
|
|
190
|
+
btn.title = "已是最新 v" + j.current;
|
|
191
|
+
dshUpdMsg(btn, "已是最新 v" + j.current, "#4ade80");
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
.catch(function (err) {
|
|
195
|
+
btn.__updWired = 0; btn.textContent = "↑"; btn.style.color = "";
|
|
196
|
+
var msg = String((err && err.message) || err || "");
|
|
197
|
+
dshUpdMsg(btn, msg.indexOf("HTTP 404") >= 0 ? "接口不可用(宿主未重启)" : "检查失败:" + msg, "#ff8a8a");
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
var TFB_ICONS = {
|
|
202
|
+
layout: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2.5 5.5h8M8 2.8 10.7 5.5 8 8.2"/><path d="M13.5 10.5h-8M8 13.2 5.3 10.5 8 7.8"/></svg>',
|
|
203
|
+
pin: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.5 2.5l4 4-2.2.6-2.6 2.6-.5 3-3-3 .1-1.4L7.9 5.7z"/><path d="M3.5 12.5l3-3"/></svg>',
|
|
204
|
+
target: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="8" cy="8" r="5.2"/><circle cx="8" cy="8" r="1.6"/><path d="M8 1.2v2.2M8 12.6v2.2M1.2 8h2.2M12.6 8h2.2"/></svg>',
|
|
205
|
+
palette: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 1.8a6.2 6.2 0 1 0 0 12.4c1.2 0 1.8-.8 1.8-1.7 0-.9-.6-1.5-.6-2.3 0-.8.6-1.4 1.5-1.4h1.7c1.1 0 1.8-.9 1.8-2A6.2 6.2 0 0 0 8 1.8z"/><circle cx="5.4" cy="6" r=".9"/><circle cx="8" cy="4.6" r=".9"/><circle cx="10.6" cy="6" r=".9"/></svg>',
|
|
206
|
+
inkAuto: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><circle cx="8" cy="8" r="5.4"/><path d="M8 2.6a5.4 5.4 0 0 1 0 10.8z" fill="currentColor" stroke="none"/></svg>',
|
|
207
|
+
inkBlack: '<svg viewBox="0 0 16 16" width="13" height="13" aria-hidden="true"><circle cx="8" cy="8" r="5.4" fill="currentColor"/></svg>',
|
|
208
|
+
inkWhite: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="8" cy="8" r="5.2"/></svg>',
|
|
209
|
+
close: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><path d="M3.5 3.5l9 9M12.5 3.5l-9 9"/></svg>',
|
|
210
|
+
broom: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.8 6.2 3.2 12.8M9.8 6.2 12 4a1.4 1.4 0 0 1 2 2l-2.2 2.2"/><path d="M6.5 7.5c-1.8.4-3 2-3.3 5.3 3.3-.3 4.9-1.5 5.3-3.3z"/></svg>',
|
|
211
|
+
pencil: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11.3 2.5l2.2 2.2L5 13.2l-3 .8.8-3z"/><path d="M10 3.8l2.2 2.2"/></svg>',
|
|
212
|
+
star: '<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 1.8l1.9 4 4.3.5-3.2 3 .9 4.3L8 11.4l-3.9 2.2.9-4.3-3.2-3 4.3-.5z"/></svg>'
|
|
213
|
+
};
|
|
214
|
+
var INK_KEY = "dsh-todo-float-ball-ink"; // text colour force: auto|black|white
|
|
215
|
+
var OFFICIAL_INK_IDS = { "129": 1, "130": 1, "auto": 1 }; // official skins force ink (m02830)
|
|
216
|
+
function isOfficialSkin(sid) { return !!(sid && OFFICIAL_INK_IDS[sid]); }
|
|
217
|
+
var MAX_CONTENT = 600;
|
|
162
218
|
var MAX_ITEMS = 100; // Plan-A history merge soft cap (see setSessionTodos)
|
|
163
219
|
|
|
164
220
|
// ============================================================
|
|
@@ -178,8 +234,13 @@ window.__ModuleLoader__.load({
|
|
|
178
234
|
var DEFAULTS = {
|
|
179
235
|
ballVisible: true, // dsh-tfb-ball-visible: ball always shown
|
|
180
236
|
theme: "graphite", // dsh-tfb-theme: graphite skin
|
|
181
|
-
capsule: false
|
|
237
|
+
capsule: false, // dsh-todo-float-ball-capsule: round ball, not pill
|
|
238
|
+
ink: "auto" // dsh-todo-float-ball-ink: auto|black|white (all text)
|
|
182
239
|
};
|
|
240
|
+
// Forced ball-text colour (user request m01506/m01527/m01534): the float
|
|
241
|
+
// BALL only (label + sub + capsule text), never the panel. "auto" keeps
|
|
242
|
+
// each skin's own --lbc; "black"/"white" override it for readability.
|
|
243
|
+
var inkMode = "auto";
|
|
183
244
|
// Position default = bottom-right. The CSS already renders
|
|
184
245
|
// right:18px;bottom:18px, but we also SEED the key on first run (user
|
|
185
246
|
// requirement: the value must exist and stay editable). The seeded point
|
|
@@ -187,7 +248,7 @@ window.__ModuleLoader__.load({
|
|
|
187
248
|
// viewport; the restore path re-clamps and silently falls back to the CSS
|
|
188
249
|
// default when the stored point no longer fits (smaller window, or the
|
|
189
250
|
// wider capsule pill), so a stale seed can never park the ball off-screen.
|
|
190
|
-
var POS_BALL_SIZE =
|
|
251
|
+
var POS_BALL_SIZE = 34;
|
|
191
252
|
var POS_MARGIN = 18;
|
|
192
253
|
|
|
193
254
|
function seedValue(def) {
|
|
@@ -218,6 +279,7 @@ window.__ModuleLoader__.load({
|
|
|
218
279
|
getCfg(BALL_VIS_KEY, DEFAULTS.ballVisible);
|
|
219
280
|
getCfg(THEME_KEY, DEFAULTS.theme);
|
|
220
281
|
getCfg(CAPSULE_KEY, DEFAULTS.capsule);
|
|
282
|
+
getCfg(INK_KEY, DEFAULTS.ink);
|
|
221
283
|
seedDefaultPos();
|
|
222
284
|
}
|
|
223
285
|
// Bottom-right corner for the CURRENT viewport, clamped so the ball is
|
|
@@ -919,6 +981,23 @@ window.__ModuleLoader__.load({
|
|
|
919
981
|
var currentTheme = DEFAULTS.theme;
|
|
920
982
|
var currentSkinId = null; // active unified skin (see skin system below)
|
|
921
983
|
var legacyPicked = false; // user explicitly chose a classic skin
|
|
984
|
+
// 每个球各有自己的「经典(旧版)皮肤」开关,绝不写共享键。
|
|
985
|
+
// 旧实现把 localStorage["dsh-ball-skin"] 写成 "legacy",那是全局键:
|
|
986
|
+
// todo 一选经典,另外两个球就被迫解析成官方皮肤(关联性破绽)。
|
|
987
|
+
var SKIN_CLASSIC_KEY = "dsh-ball-skin-classic-todo";
|
|
988
|
+
function isSkinClassic() { try { return localStorage.getItem(SKIN_CLASSIC_KEY) === "1"; } catch (e) { return false; } }
|
|
989
|
+
function setSkinClassic(on) {
|
|
990
|
+
try { if (on) localStorage.setItem(SKIN_CLASSIC_KEY, "1"); else localStorage.removeItem(SKIN_CLASSIC_KEY); } catch (e) {}
|
|
991
|
+
}
|
|
992
|
+
// 旧数据迁移:曾经写进共享键的 "legacy" 收回成自己的开关,共享键还给 auto
|
|
993
|
+
function migrateLegacySharedKey() {
|
|
994
|
+
try {
|
|
995
|
+
if (readSharedKey() === "legacy") {
|
|
996
|
+
setSkinClassic(true);
|
|
997
|
+
localStorage.setItem(SHARED_KEY, "auto");
|
|
998
|
+
}
|
|
999
|
+
} catch (e) {}
|
|
1000
|
+
}
|
|
922
1001
|
// single source of truth for "is this a known skin?"
|
|
923
1002
|
function isTheme(t) {
|
|
924
1003
|
return t === "nebula" || t === "graphite" || t === "blue" || t === "glass" || t === "nebB" || t === "nebC";
|
|
@@ -928,10 +1007,14 @@ window.__ModuleLoader__.load({
|
|
|
928
1007
|
var v = getCfg(THEME_KEY, DEFAULTS.theme);
|
|
929
1008
|
currentTheme = isTheme(v) ? v : DEFAULTS.theme;
|
|
930
1009
|
try {
|
|
931
|
-
|
|
932
|
-
if (
|
|
933
|
-
|
|
934
|
-
|
|
1010
|
+
migrateLegacySharedKey();
|
|
1011
|
+
if (isSkinClassic()) {
|
|
1012
|
+
// classic skins were removed from the menu (2026-10-29); migrate to unified skin
|
|
1013
|
+
try { localStorage.removeItem(SKIN_CLASSIC_KEY); } catch (e9) {}
|
|
1014
|
+
legacyPicked = false;
|
|
1015
|
+
}
|
|
1016
|
+
legacyPicked = false;
|
|
1017
|
+
currentSkinId = SK ? mySkinId() : null;
|
|
935
1018
|
} catch (e) {}
|
|
936
1019
|
}
|
|
937
1020
|
function setTheme(t) {
|
|
@@ -947,6 +1030,45 @@ window.__ModuleLoader__.load({
|
|
|
947
1030
|
var SK = window.__DSH_BALL_SKINS || null;
|
|
948
1031
|
var SHARED_KEY = SK ? SK.KEY : "dsh-ball-skin";
|
|
949
1032
|
function readSharedKey() { try { return localStorage.getItem(SHARED_KEY); } catch (e) { return null; } }
|
|
1033
|
+
|
|
1034
|
+
// ---------- 三球皮肤同步开关 (m04045) ----------
|
|
1035
|
+
// 勾选 = 跟随全局 dsh-ball-skin(三球同款);不勾 = 本球独立皮肤,不随全局变化。
|
|
1036
|
+
var SYNC_ON_KEY = "dsh-ball-skin-sync-todo";
|
|
1037
|
+
var SOLO_ID_KEY = "dsh-ball-skin-solo-todo";
|
|
1038
|
+
function isSyncOn() {
|
|
1039
|
+
try { var v = localStorage.getItem(SYNC_ON_KEY); return v === null ? true : v !== "0"; } catch (e) { return true; }
|
|
1040
|
+
}
|
|
1041
|
+
function setSyncOn(on) {
|
|
1042
|
+
try {
|
|
1043
|
+
localStorage.setItem(SYNC_ON_KEY, on ? "1" : "0");
|
|
1044
|
+
if (on) { var g = readSharedKey(); if (g) localStorage.setItem(SOLO_ID_KEY, g); }
|
|
1045
|
+
else if (!localStorage.getItem(SOLO_ID_KEY)) { var g2 = readSharedKey(); if (g2) localStorage.setItem(SOLO_ID_KEY, g2); }
|
|
1046
|
+
} catch (e) {}
|
|
1047
|
+
}
|
|
1048
|
+
function soloResolve(id) {
|
|
1049
|
+
if (!SK) return null;
|
|
1050
|
+
if (!id || id === "auto") return SK.resolve("auto");
|
|
1051
|
+
return SK.BY_ID[id] ? id : SK.resolve("auto");
|
|
1052
|
+
}
|
|
1053
|
+
function mySkinId() {
|
|
1054
|
+
if (!SK) return null;
|
|
1055
|
+
if (isSyncOn()) return SK.getId();
|
|
1056
|
+
try { return soloResolve(localStorage.getItem(SOLO_ID_KEY)) || SK.getId(); } catch (e) { return SK.getId(); }
|
|
1057
|
+
}
|
|
1058
|
+
function mySkinPref() {
|
|
1059
|
+
if (!SK) return "";
|
|
1060
|
+
if (isSyncOn()) return SK.getPref ? SK.getPref() : "";
|
|
1061
|
+
try { return localStorage.getItem(SOLO_ID_KEY) || (SK.getPref ? SK.getPref() : ""); } catch (e) { return ""; }
|
|
1062
|
+
}
|
|
1063
|
+
function pickSkin(id) {
|
|
1064
|
+
if (!SK) return;
|
|
1065
|
+
if (isSyncOn()) { SK.setSkin(id); return; }
|
|
1066
|
+
try { localStorage.setItem(SOLO_ID_KEY, id); } catch (e) {}
|
|
1067
|
+
currentSkinId = soloResolve(id);
|
|
1068
|
+
try { refreshStyleSheet(); } catch (e) {}
|
|
1069
|
+
try { render(true); } catch (e) {}
|
|
1070
|
+
try { renderThemeMenu(); } catch (e) {}
|
|
1071
|
+
}
|
|
950
1072
|
function skinCssText() {
|
|
951
1073
|
var s = (SK && currentSkinId && SK.BY_ID[currentSkinId]) ? SK.BY_ID[currentSkinId] : null;
|
|
952
1074
|
if (!s) return legacyCssText();
|
|
@@ -958,19 +1080,30 @@ window.__ModuleLoader__.load({
|
|
|
958
1080
|
".tfb-root{position:static;pointer-events:none;font-family:'Segoe UI','Microsoft YaHei',system-ui,sans-serif;" + V.join(";") + "}",
|
|
959
1081
|
".tfb-ball:hover{transform:scale(1.08)}",
|
|
960
1082
|
".tfb-ball:active{cursor:grabbing;transform:scale(.95)}",
|
|
961
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid var(--edge,rgba(255,255,255,.14));cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--lbc,#eef1f6);font-size:
|
|
1083
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid var(--edge,rgba(255,255,255,.14));cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--lbc,#eef1f6);font-size:11px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums;width:34px;height:34px;background:radial-gradient(circle at 32% 24%,var(--spec,rgba(255,255,255,.16)) 0%,rgba(255,255,255,.03) 28%,rgba(255,255,255,0) 46%),linear-gradient(158deg,var(--bgA,#262b33),var(--bgB,#101319));box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42);transition:transform .15s ease;-webkit-appearance:none;appearance:none;outline:none;padding:0;background-clip:padding-box}",
|
|
962
1084
|
".tfb-ball.tfb-idle{--st:var(--stI,#8fa0b8)}",
|
|
963
1085
|
".tfb-ball.tfb-pending{--st:var(--stP,#6fb6ff)}",
|
|
964
|
-
".tfb-ball.tfb-active{--st:var(--stA,#
|
|
1086
|
+
".tfb-ball.tfb-active{--st:var(--stA,#ff4d4f)}",
|
|
965
1087
|
".tfb-ball.tfb-done{--st:var(--stD,#34e39a)}",
|
|
966
|
-
".tfb-ball .tfb-label{position:relative;z-index:2;text-shadow:
|
|
967
|
-
".tfb-ball .tfb-ring{
|
|
1088
|
+
".tfb-ball .tfb-label{position:relative;z-index:2;text-shadow:none}",
|
|
1089
|
+
".tfb-ball .tfb-ring{display:none}",
|
|
968
1090
|
".tfb-ball.tfb-idle .tfb-ring{opacity:.55}",
|
|
969
1091
|
".tfb-ball .tfb-orb-band{position:absolute;inset:0;border-radius:inherit;pointer-events:none}",
|
|
970
|
-
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s}"
|
|
1092
|
+
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s}",
|
|
1093
|
+
// m03329: clone skill-ball visuals verbatim (rim ring conic+mask, band flow, glow, breathe)
|
|
1094
|
+
// m03625 FINAL: verbatim skill-ball skin pipeline (selectors renamed only)
|
|
1095
|
+
".tfb-ball::before{content:none!important}",
|
|
1096
|
+
".tfb-ball::after{content:none!important}",
|
|
1097
|
+
// m03329: clone skill-ball visuals verbatim (rim ring conic+mask, band flow, glow, breathe)
|
|
1098
|
+
// m03625 FINAL: verbatim skill-ball skin pipeline (selectors renamed only)
|
|
1099
|
+
".tfb-ball{background:var(--pbgA,#171c2b)!important;text-shadow:none!important;filter:none!important;box-shadow:0 4px 14px rgba(0,0,0,.42)!important}",
|
|
1100
|
+
".tfb-ball .tfb-orb-band{content:none!important;display:none!important}",
|
|
1101
|
+
".tfb-ball .tfb-orb-rim{content:\"\";display:block!important;position:absolute!important;inset:-1px!important;border-radius:50%!important;background:conic-gradient(from 200deg,var(--stA,#8fd3c0),transparent 30%,var(--stA,#8fd3c0) 55%,transparent 80%,var(--stA,#8fd3c0))!important;-webkit-mask:radial-gradient(circle,transparent 62%,#000 66%,#000 73%,transparent 77%)!important;mask:radial-gradient(circle,transparent 62%,#000 66%,#000 73%,transparent 77%)!important;animation:rimSpin 7s linear infinite!important;pointer-events:none!important}",
|
|
1102
|
+
"@keyframes rimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1103
|
+
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s!important}",
|
|
971
1104
|
];
|
|
972
1105
|
if (s.anim === "flashy") {
|
|
973
|
-
ball.push(".tfb-ball.tfb-active{animation:tfb-pulse 1.8s ease-in-out infinite}");
|
|
1106
|
+
ball.push(".tfb-ball.tfb-active:not(.tfb-capsule){animation:tfb-pulse 1.8s ease-in-out infinite}");
|
|
974
1107
|
}
|
|
975
1108
|
// BREATHE-FOR-UNIFIED-SKINS (2026-09-28): the classic skins (nebula /
|
|
976
1109
|
// nebB / nebC) each carried `animation:tfbBreathe 3.2s ease-in-out
|
|
@@ -1006,16 +1139,16 @@ window.__ModuleLoader__.load({
|
|
|
1006
1139
|
);
|
|
1007
1140
|
var fxc = SK.fx(currentSkinId, { B: ".tfb-ball", BAND: ".tfb-ball .tfb-orb-band", RIM: ".tfb-ball .tfb-orb-rim" });
|
|
1008
1141
|
if (fxc) ball.push(fxc);
|
|
1009
|
-
|
|
1142
|
+
// m03465: rim always painted (skill-ball look); capsule still hides it via explicit rule below
|
|
1010
1143
|
if (!s.band) ball.push(".tfb-ball .tfb-orb-band{display:none}");
|
|
1011
|
-
ball.push(".tfb-ball.tfb-capsule .tfb-orb-band{border-radius:
|
|
1144
|
+
ball.push(".tfb-ball.tfb-capsule .tfb-orb-band{border-radius:15px}");
|
|
1012
1145
|
ball.push(
|
|
1013
1146
|
// ---- panel (var-driven, fallbacks = classic look) ----
|
|
1014
1147
|
'@keyframes dshSkinSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',
|
|
1015
1148
|
'@keyframes dshSkinSpinR{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}',
|
|
1016
1149
|
'@keyframes tfb-pulse{0%,100%{box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42),0 0 14px var(--st,rgba(255,170,51,.45)),0 0 0 0 var(--st,rgba(255,170,51,.5))}50%{box-shadow:inset 0 1px 0 var(--hi,rgba(255,255,255,.12)),0 5px 14px rgba(0,0,0,.42),0 0 22px var(--st,rgba(255,170,51,.55)),0 0 0 9px rgba(255,170,51,0)}}',
|
|
1017
|
-
".tfb-panel{position:fixed;z-index:2147483600;width:
|
|
1018
|
-
".tfb-panel::before{content:
|
|
1150
|
+
".tfb-panel{position:fixed;z-index:2147483600;width:400px;max-width:calc(100vw - 24px);max-height:74vh;overflow-y:auto;overflow-x:hidden;pointer-events:auto;display:none;color:var(--ptx,#e6e6e6);font-size:13px;line-height:1.5;border-radius:14px;padding:12px 14px 10px;background:linear-gradient(180deg,var(--pbgA,rgba(16,18,22,.94)),var(--pbgB,rgba(12,15,24,.96)));border:1px solid rgba(255,255,255,.09);box-shadow:none;backdrop-filter:blur(24px)}",
|
|
1151
|
+
".tfb-panel::before{content:none!important;display:none!important}",
|
|
1019
1152
|
".tfb-panel.tfb-open{display:block}",
|
|
1020
1153
|
".tfb-panel.tfb-open.tfb-hz{display:flex;flex-wrap:wrap;align-items:flex-start;width:auto;min-width:540px;max-width:min(92vw,800px)}",
|
|
1021
1154
|
".tfb-panel.tfb-hz .tfb-head{flex:0 0 100%;width:100%}",
|
|
@@ -1023,30 +1156,32 @@ window.__ModuleLoader__.load({
|
|
|
1023
1156
|
".tfb-panel.tfb-hz .tfb-colcap{display:block}",
|
|
1024
1157
|
".tfb-panel.tfb-hz .tfb-col-cur{flex:1 1 45%;min-width:250px;max-width:none;box-sizing:border-box;padding-right:10px;border-right:1px solid var(--pbd,rgba(255,255,255,.1))}",
|
|
1025
1158
|
".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
|
|
1026
|
-
".tfb-head{display:flex;
|
|
1027
|
-
".tfb-title{font-weight:700;font-size:
|
|
1028
|
-
".tfb-ctitle{flex:1;min-width:0;font-size:
|
|
1029
|
-
".tfb-summary{font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
|
|
1030
|
-
".tfb-btn{border:
|
|
1159
|
+
".tfb-head{display:flex;flex-direction:column;gap:4px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.10)}",
|
|
1160
|
+
".tfb-head-row1{display:flex;align-items:flex-start;gap:6px;width:100%}.tfb-head-row2{display:flex;align-items:center;gap:3px;width:100%}.tfb-title{font-weight:700;font-size:12px;white-space:nowrap}",
|
|
1161
|
+
".tfb-ctitle{flex:1;min-width:0;font-size:11.5px;font-weight:600;line-height:1.4;color:var(--itm,#9aa3b2);overflow:hidden;text-overflow:ellipsis;cursor:text}",
|
|
1162
|
+
".tfb-summary{margin-right:auto;font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
|
|
1163
|
+
".tfb-btn{border:1px solid var(--fe-line-1,rgba(128,138,160,.28));background:transparent;color:var(--cctx,#9aa3b2);font-size:13px;cursor:pointer;padding:3px 6px;border-radius:8px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}",
|
|
1164
|
+
"a.tfb-btn.tfb-star-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}",
|
|
1165
|
+
"a.tfb-btn.tfb-star-link:hover{color:var(--stA,#8fd3c0)}",
|
|
1031
1166
|
".tfb-btn:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1032
1167
|
".tfb-btn.tfb-on{color:var(--stA,#ffd27a)}",
|
|
1033
1168
|
".tfb-list{list-style:none;margin:0;padding:0}",
|
|
1034
|
-
".tfb-item{display:flex;align-items:flex-start;gap:
|
|
1169
|
+
".tfb-item{display:flex;align-items:flex-start;gap:6px;padding:4px 4px;border-radius:7px}",
|
|
1035
1170
|
".tfb-item:nth-child(odd){background:var(--chipBg,rgba(255,255,255,.03))}",
|
|
1036
|
-
".tfb-ico{flex-shrink:0;width:
|
|
1171
|
+
".tfb-ico{flex-shrink:0;margin-top:2px;width:15px;height:15px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px}",
|
|
1037
1172
|
".tfb-item[data-status='completed'] .tfb-ico{background:var(--chipBg,rgba(74,222,128,.18));color:var(--stD,#5dffa8);border:1px solid var(--stD,#5dffa8)}",
|
|
1038
|
-
".tfb-item[data-status='in_progress'] .tfb-ico{background:
|
|
1173
|
+
".tfb-item[data-status='in_progress'] .tfb-ico{background:transparent;border:2px solid rgba(255,170,51,.26);border-top-color:var(--stA,#ffaa33);animation:tfbIcoSpin .85s linear infinite}",
|
|
1039
1174
|
".tfb-item[data-status='pending'] .tfb-ico{background:transparent;color:var(--stP,#7fc4ff);border:1px dashed var(--stP,#7fc4ff)}",
|
|
1040
1175
|
".tfb-item[data-status='in_progress']{background:var(--chipBg,rgba(255,170,51,.06));box-shadow:inset 2px 0 0 var(--stA,#ffaa33)}",
|
|
1041
1176
|
".tfb-item[data-status='in_progress'] .tfb-txt{color:var(--stA,#ffcf8a);font-weight:600}",
|
|
1042
|
-
".tfb-item[data-status='completed'] .tfb-txt{color:var(--itD,#7fae94);
|
|
1177
|
+
".tfb-item[data-status='completed'] .tfb-txt{color:var(--itD,#7fae94);opacity:.85}",
|
|
1043
1178
|
".tfb-item[data-status='pending'] .tfb-txt{color:var(--itm,#aebfd4)}",
|
|
1044
|
-
".tfb-txt{flex:1}",
|
|
1045
|
-
".tfb-x{flex-shrink:0;border:0;background:transparent;color:var(--hintC,#6b7280);font-size:11px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}",
|
|
1179
|
+
".tfb-txt{flex:1;min-width:0;white-space:normal;overflow:hidden;word-break:break-word;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}",
|
|
1180
|
+
".tfb-x{flex-shrink:0;margin-top:-1px;border:0;background:transparent;color:var(--hintC,#6b7280);font-size:11px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}",
|
|
1046
1181
|
".tfb-item:hover .tfb-x,.tfb-x:focus{opacity:1}",
|
|
1047
1182
|
".tfb-x:hover{color:#ff8a8a;background:rgba(255,120,120,.12)}",
|
|
1048
1183
|
".tfb-empty{color:var(--itm,#8b93a1);font-size:12px;text-align:center;padding:12px 0}",
|
|
1049
|
-
".tfb-histoggle{list-style:none;display:flex;align-items:center;
|
|
1184
|
+
".tfb-histoggle{list-style:none;display:flex;align-items:center;gap:5px;margin:3px 0 2px;padding:3px 8px;border-radius:7px;color:var(--hintC,#7f8896);font-size:10.5px;cursor:pointer;background:transparent;letter-spacing:.02em}",
|
|
1050
1185
|
".tfb-histoggle:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1051
1186
|
// v0.14.7: divider between the archive (above) and the live plan
|
|
1052
1187
|
// (below). Two hairlines fade toward the edges via a gradient mask so
|
|
@@ -1066,39 +1201,98 @@ window.__ModuleLoader__.load({
|
|
|
1066
1201
|
".tfb-dot-done{background:var(--stD,#4ade80)}",
|
|
1067
1202
|
".tfb-dot-none{background:var(--hintC,#6b7280)}",
|
|
1068
1203
|
"@keyframes tfb-dotpulse{0%,100%{opacity:1}50%{opacity:.4}}",
|
|
1204
|
+
"@keyframes tfbIcoSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1069
1205
|
".tfb-pinlist{list-style:none;margin:2px 0 4px;padding:0 0 0 10px;border-left:2px solid var(--pbd,rgba(255,255,255,.08))}",
|
|
1070
1206
|
".tfb-hint{font-size:10px;color:var(--hintC,#6b7280);padding:6px 0 0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}",
|
|
1071
|
-
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:
|
|
1072
|
-
".tfb-theme-menu.tfb-open{display:
|
|
1207
|
+
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:0;border-radius:10px;background:var(--pbgB,rgba(12,16,20,.96));max-height:46vh;overflow-y:auto}",
|
|
1208
|
+
".tfb-theme-menu.tfb-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-content:start}",
|
|
1073
1209
|
".tfb-theme-cap{font-size:10px;color:var(--hintC,#6b7280);padding:6px 8px 2px;font-weight:700;letter-spacing:1px}",
|
|
1074
|
-
".tfb-theme-
|
|
1210
|
+
".tfb-theme-cap{grid-column:1/-1}",
|
|
1211
|
+
".tfb-theme-row-wide{grid-column:1/-1}",
|
|
1212
|
+
".tfb-theme-row.tfb-sync-row{background:rgba(255,255,255,.06);margin-bottom:2px}",
|
|
1213
|
+
".tfb-theme-row.tfb-sync-row .tfb-sync-label{flex:1;min-width:0;white-space:nowrap;overflow:visible;font-weight:600;color:#ffd27a}",
|
|
1214
|
+
".tfb-theme-row.tfb-sync-row{background:var(--chipBg,rgba(255,255,255,.06));margin-bottom:2px}",
|
|
1215
|
+
".tfb-theme-row.tfb-sync-row .tfb-sync-label{flex:1;min-width:0;white-space:nowrap;overflow:visible;font-weight:600;color:var(--stA,#ffd27a)}",
|
|
1216
|
+
".tfb-theme-row.tfb-sync-row.tfb-sync-on .tfb-sync-label{color:var(--stA,#ffd27a)}",
|
|
1217
|
+
".tfb-theme-row{padding:4px 6px;font-size:10.5px;gap:5px}",
|
|
1218
|
+
".tfb-theme-row .tfb-theme-check{width:11px}",
|
|
1219
|
+
".tfb-theme-row .tfb-swdot{width:8px;height:8px}",
|
|
1220
|
+
".tfb-theme-row{display:flex;align-items:center;gap:4px;padding:3px 5px;border-radius:8px;cursor:pointer;font-size:10.5px;color:var(--ptx,#cdd6e2)}",
|
|
1075
1221
|
".tfb-theme-row:hover{background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1076
1222
|
".tfb-theme-row.tfb-cur{color:var(--stA,#ffd27a);font-weight:600}",
|
|
1077
1223
|
".tfb-theme-row .tfb-theme-check{flex-shrink:0;width:14px;text-align:center}",
|
|
1078
1224
|
".tfb-theme-row .tfb-swdot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0;border:1px solid var(--pbd,rgba(255,255,255,.2))}",
|
|
1079
|
-
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0;white-space:nowrap;overflow:
|
|
1225
|
+
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0;white-space:nowrap;overflow:visible}",
|
|
1080
1226
|
".tfb-rename{flex:1;min-width:0;padding:3px 8px;border-radius:6px;border:1px solid var(--stA,rgba(255,210,122,.5));background:rgba(0,0,0,.4);color:var(--stA,#ffd27a);font:inherit;font-size:12px;outline:none}",
|
|
1081
1227
|
".tfb-rename:focus{border-color:var(--stA,#ffd27a)}",
|
|
1082
|
-
".tfb-ctitle[contenteditable=
|
|
1228
|
+
".tfb-ctitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tfb-ctitle[contenteditable=true]{display:block;outline:none;border-bottom:1px dashed var(--stA,#ffd27a);color:var(--stA,#ffd27a);cursor:text}",
|
|
1083
1229
|
// capsule mode (right-click toggle)
|
|
1084
|
-
".tfb-ball.tfb-capsule{width:auto;min-width:
|
|
1230
|
+
".tfb-ball.tfb-capsule{width:auto;min-width:180px;max-width:min(520px,60vw);height:30px;border-radius:15px;flex-direction:row;gap:8px;padding:0 16px;font-size:12px;justify-content:flex-start}",
|
|
1085
1231
|
".tfb-ball.tfb-capsule .tfb-orb-band{inset:0}",
|
|
1232
|
+
// m02693: capsule = calm pill. Strip every flashy layer & motion.
|
|
1233
|
+
".tfb-ball.tfb-capsule .tfb-orb-rim,.tfb-ball.tfb-capsule .tfb-orb-band{display:none!important}",
|
|
1234
|
+
".tfb-ball.tfb-capsule{text-shadow:none!important;animation:none!important}",
|
|
1235
|
+
// m02939: capsule uses a FLAT panel-toned background. The ball 158deg
|
|
1236
|
+
// two-tone gradient (bgA -> bgB) plus the corner highlight reads as
|
|
1237
|
+
// "grey on one end, black on the other" once stretched into a
|
|
1238
|
+
// 180-520px pill, so the capsule paints the panel base colour.
|
|
1239
|
+
".tfb-ball.tfb-capsule{background:var(--pbgA,#171c2b)!important}",
|
|
1240
|
+
// m03026: text-shadow off for ALL capsule text, but animation:none must NOT
|
|
1241
|
+
// cover .tfb-capsule-text — an !important animation:none beats the marquee
|
|
1242
|
+
// rule below and silently killed the overflow scroll playback.
|
|
1243
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub,.tfb-ball.tfb-capsule .tfb-capsule-text{text-shadow:none!important}",
|
|
1244
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub{animation:none!important}",
|
|
1245
|
+
".tfb-ball.tfb-capsule::before{display:none!important}",
|
|
1086
1246
|
".tfb-ball.tfb-capsule .tfb-orb-rim{display:none}",
|
|
1087
1247
|
".tfb-ball.tfb-capsule .tfb-ring{display:none}",
|
|
1088
1248
|
".tfb-ball.tfb-capsule .tfb-label{flex-shrink:0}",
|
|
1089
1249
|
".tfb-ball.tfb-capsule .tfb-sub{flex:1;min-width:0;max-width:none;font-size:12px;text-align:left;overflow:hidden;white-space:nowrap}",
|
|
1090
1250
|
".tfb-ball.tfb-capsule .tfb-capsule-text{display:inline-block;white-space:nowrap}",
|
|
1091
|
-
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate}",
|
|
1251
|
+
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate!important}",
|
|
1092
1252
|
"@keyframes tfbMarquee{from{transform:translateX(0)}to{transform:translateX(var(--shift,-40px))}}",
|
|
1093
1253
|
// ---- unified typography (three-ball spec) ----
|
|
1094
1254
|
".tfb-root,.tfb-panel{font-family:'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif}",
|
|
1095
|
-
".tfb-panel{font-size:
|
|
1096
|
-
".tfb-title{font-size:
|
|
1097
|
-
".tfb-ctitle,.tfb-summary,.tfb-sep-label,.tfb-pincount,.tfb-colcap{font-size:
|
|
1098
|
-
".tfb-btn{font-size:
|
|
1099
|
-
".tfb-txt{font-size:
|
|
1100
|
-
".tfb-theme-row,.tfb-pinname,.tfb-empty,.tfb-histoggle{font-size:
|
|
1101
|
-
".tfb-theme-cap,.tfb-hint{font-size:
|
|
1255
|
+
".tfb-panel{font-size:11.5px;line-height:1.5;font-variant-numeric:tabular-nums}",
|
|
1256
|
+
".tfb-title{font-size:12px}",
|
|
1257
|
+
".tfb-ctitle,.tfb-summary,.tfb-sep-label,.tfb-pincount,.tfb-colcap{font-size:10.5px}",
|
|
1258
|
+
".tfb-btn{font-size:11.5px}",
|
|
1259
|
+
".tfb-txt{font-size:11.5px}",
|
|
1260
|
+
".tfb-theme-row,.tfb-pinname,.tfb-empty,.tfb-histoggle{font-size:11px}",
|
|
1261
|
+
".tfb-theme-cap,.tfb-hint{font-size:10px}",
|
|
1262
|
+
// ---- forced ball text colour (auto / black / white) ----
|
|
1263
|
+
".tfb-btn.tfb-ink-btn{font-weight:700;font-size:13px;line-height:1;padding:3px 6px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}",
|
|
1264
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-auto{opacity:.8}",
|
|
1265
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-lock{opacity:.5;cursor:not-allowed}",
|
|
1266
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-black{color:#0b0b0b;background:rgba(255,255,255,.9)}",
|
|
1267
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-white{color:#ffffff;background:rgba(0,0,0,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}",
|
|
1268
|
+
// SCOPE (user m01766): EVERY piece of text -- ball face AND the whole
|
|
1269
|
+
// panel. `*` catches every descendant so per-skin accents (title,
|
|
1270
|
+
// item text, captions, counts, chips, buttons) all collapse to one ink.
|
|
1271
|
+
".tfb-root.tfb-ink-black,.tfb-root.tfb-ink-black *{color:#000 !important;text-shadow:none !important}",
|
|
1272
|
+
".tfb-root.tfb-ink-white,.tfb-root.tfb-ink-white *{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.65) !important}",
|
|
1273
|
+
// the ink switch itself must stay legible in both modes
|
|
1274
|
+
".tfb-root.tfb-ink-black .tfb-ink-btn{color:#0b0b0b !important;background:rgba(255,255,255,.92) !important}",
|
|
1275
|
+
".tfb-root.tfb-ink-white .tfb-ink-btn{color:#ffffff !important;background:rgba(0,0,0,.62) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}",
|
|
1276
|
+
// colored accents (dots / spinner ring / status glow) also collapse to
|
|
1277
|
+
// the forced ink so nothing screams colour inside a monochrome page
|
|
1278
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='in_progress'] .tfb-ico{border-color:rgba(0,0,0,.25) !important;border-top-color:#000 !important}",
|
|
1279
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='in_progress'] .tfb-ico{border-color:rgba(255,255,255,.35) !important;border-top-color:#fff !important}",
|
|
1280
|
+
".tfb-root.tfb-ink-black .tfb-dot{background:#000 !important;border-color:#000 !important}",
|
|
1281
|
+
".tfb-root.tfb-ink-white .tfb-dot{background:#fff !important;border-color:rgba(255,255,255,.6) !important}",
|
|
1282
|
+
// in_progress row tint: neutralize the amber glow under forced ink
|
|
1283
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='in_progress']{background:rgba(0,0,0,.07) !important;box-shadow:inset 2px 0 0 #000 !important}",
|
|
1284
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='in_progress']{background:rgba(255,255,255,.1) !important;box-shadow:inset 2px 0 0 #fff !important}",
|
|
1285
|
+
// completed tick + dividers go monochrome too
|
|
1286
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='completed'] .tfb-ico{color:#000 !important}",
|
|
1287
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='completed'] .tfb-ico{color:#fff !important}",
|
|
1288
|
+
"@property --tfb-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1289
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']{position:relative;overflow:hidden}",
|
|
1290
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']::after{content:\"\";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;background:conic-gradient(from var(--tfb-spin,0deg),var(--stA,#4d8df6),transparent 22%,var(--stA,#4d8df6) 50%,transparent 78%,var(--stA,#4d8df6));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;animation:tfbBorderSpin 2.6s linear infinite}",
|
|
1291
|
+
"@keyframes tfbBorderSpin{to{--tfb-spin:360deg}}",
|
|
1292
|
+
/* 顶部 40px 是 DSH 窗口拖拽带,必须挖掉 */
|
|
1293
|
+
// ---- m03250: orb-rim restored (user: the encircling light band must stay) ----
|
|
1294
|
+
".tfb-ball.tfb-capsule::after{content:none!important;display:none!important}",
|
|
1295
|
+
".tfb-ball,.tfb-panel,.tfb-theme-menu{-webkit-app-region:no-drag;app-region:no-drag}",
|
|
1102
1296
|
);
|
|
1103
1297
|
return ball.join("\n");
|
|
1104
1298
|
}
|
|
@@ -1109,16 +1303,16 @@ window.__ModuleLoader__.load({
|
|
|
1109
1303
|
function legacyCssText() {
|
|
1110
1304
|
var th = currentTheme;
|
|
1111
1305
|
// Skeleton fields that all four skins share; shape differs per skin.
|
|
1112
|
-
var SIZE = "width:
|
|
1306
|
+
var SIZE = "width:34px;height:34px;";
|
|
1113
1307
|
// Per-skin ball rules (status variants + ring + band/rim).
|
|
1114
1308
|
var ball = [];
|
|
1115
1309
|
if (th === "nebula") {
|
|
1116
1310
|
ball = [
|
|
1117
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#eafff7;font-size:
|
|
1311
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#eafff7;font-size:9px;font-weight:800;line-height:1.1;background:radial-gradient(circle at 50% 60%, #2dd4a8 0%, #17a284 20%, #12876f 45%, #0a3a32 68%, #041715 100%);box-shadow:0 0 22px rgba(45,212,168,.5),0 0 4px rgba(120,255,214,.35),0 4px 18px rgba(0,0,0,.55),inset 0 1px 3px rgba(255,255,255,.4),inset 0 -8px 16px rgba(45,212,168,.16),inset 0 0 14px rgba(20,180,150,.25);text-shadow:0 0 6px rgba(120,255,214,.75),0 2px 4px rgba(0,40,30,.8);filter:drop-shadow(0 0 6px rgba(160,255,225,.85));animation:tfbBreathe 3.2s ease-in-out infinite;transition:transform .15s ease}" + SIZE.replace(";", ";"),
|
|
1118
1312
|
".tfb-orb-band{display:none}",
|
|
1119
1313
|
".tfb-orb-rim{position:absolute;inset:-1px;border-radius:50%;z-index:1;pointer-events:none;background:conic-gradient(from 200deg, rgba(255,255,255,.55), rgba(120,240,205,.35), rgba(10,200,170,.4), rgba(255,255,255,.15), rgba(45,212,168,.4), rgba(255,255,255,.55));-webkit-mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);animation:tfbRimSpin 7s linear infinite;filter:blur(.5px)}",
|
|
1120
1314
|
".tfb-ball .tfb-ring{display:none}",
|
|
1121
|
-
"
|
|
1315
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1122
1316
|
".tfb-ball.tfb-active{color:#fff3dc;background:radial-gradient(circle at 50% 60%, #ffaa33 0%, #e08410 20%, #b56708 45%, #4a2a06 70%, #170c02 100%);box-shadow:0 0 22px rgba(255,170,51,.55),0 0 4px rgba(255,210,120,.4),0 4px 18px rgba(0,0,0,.55),inset 0 1px 3px rgba(255,255,255,.4),inset 0 -8px 16px rgba(255,170,51,.16),inset 0 0 14px rgba(230,140,20,.25);text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px rgba(255,215,140,.95),0 0 20px rgba(255,160,40,.8),0 2px 4px rgba(60,30,0,.8);filter:drop-shadow(0 0 6px rgba(255,200,110,.9))}",
|
|
1123
1317
|
".tfb-ball.tfb-active .tfb-orb-rim{background:conic-gradient(from 200deg, rgba(255,255,255,.6), rgba(255,200,110,.4), rgba(255,150,30,.45), rgba(255,255,255,.15), rgba(255,190,80,.4), rgba(255,255,255,.6));animation-duration:2.6s}",
|
|
1124
1318
|
".tfb-ball.tfb-done{color:#eafff4;background:radial-gradient(circle at 50% 60%, #5dffa8 0%, #22c070 20%, #12875c 45%, #073c26 70%, #02150c 100%);box-shadow:0 0 26px rgba(93,255,168,.6),0 0 5px rgba(180,255,215,.45),0 4px 18px rgba(0,0,0,.55),inset 0 1px 3px rgba(255,255,255,.45),inset 0 -8px 16px rgba(93,255,168,.18),inset 0 0 14px rgba(40,200,120,.3);text-shadow:0 0 4px rgba(255,255,255,1),0 0 12px rgba(190,255,220,1),0 0 24px rgba(60,255,150,.85),0 2px 4px rgba(0,40,20,.8);filter:drop-shadow(0 0 8px rgba(140,255,195,.95))}",
|
|
@@ -1126,12 +1320,12 @@ window.__ModuleLoader__.load({
|
|
|
1126
1320
|
];
|
|
1127
1321
|
} else if (th === "blue") {
|
|
1128
1322
|
ball = [
|
|
1129
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#a8c8ff;font-size:
|
|
1323
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#a8c8ff;font-size:9px;font-weight:800;line-height:1.1;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.18),rgba(26,40,66,.96) 70%);box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18),0 0 18px rgba(100,160,255,.5);transition:transform .15s ease}" + SIZE.replace(";", ";"),
|
|
1130
1324
|
".tfb-orb-band{display:none}",
|
|
1131
1325
|
".tfb-orb-rim{display:none}",
|
|
1132
1326
|
".tfb-ball .tfb-ring{position:absolute;inset:-1px;border-radius:50%;pointer-events:none;background:conic-gradient(var(--rc,#6aa8ff) calc(var(--pct,0)*1%),rgba(255,255,255,.08) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));transition:background .4s ease;filter:drop-shadow(0 0 6px rgba(100,160,255,.5))}",
|
|
1133
1327
|
".tfb-ball .tfb-label{text-shadow:0 0 10px currentColor,0 0 3px currentColor}",
|
|
1134
|
-
".tfb-ball.tfb-active{color:#ffcf8a;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18),0 0 16px rgba(255,170,51,.5);animation:tfb-pulse 1.6s ease-in-out infinite}",
|
|
1328
|
+
".tfb-ball.tfb-active:not(.tfb-capsule){color:#ffcf8a;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18),0 0 16px rgba(255,170,51,.5);animation:tfb-pulse 1.6s ease-in-out infinite}",
|
|
1135
1329
|
".tfb-ball.tfb-active .tfb-ring{--rc:#ffaa33;filter:drop-shadow(0 0 8px rgba(255,170,51,.6))}",
|
|
1136
1330
|
".tfb-ball.tfb-done{color:#a5ffd4;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18),0 0 18px rgba(93,255,168,.5)}",
|
|
1137
1331
|
".tfb-ball.tfb-done .tfb-ring{--rc:#5dffa8;filter:drop-shadow(0 0 10px rgba(93,255,168,.7))}",
|
|
@@ -1140,11 +1334,11 @@ window.__ModuleLoader__.load({
|
|
|
1140
1334
|
];
|
|
1141
1335
|
} else if (th === "nebB") {
|
|
1142
1336
|
ball = [
|
|
1143
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#d9fff0;font-size:
|
|
1337
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#d9fff0;font-size:9px;font-weight:800;line-height:1.1;background:radial-gradient(circle at 50% 62%, rgba(210,255,244,.5) 0%, rgba(45,212,168,.75) 14%, rgba(18,160,130,.85) 30%, rgba(12,110,92,.95) 50%, rgba(6,40,34,1) 72%, rgba(2,16,14,1) 100%);box-shadow:0 0 20px rgba(45,212,168,.45),inset 0 2px 5px rgba(255,255,255,.45),inset 0 -10px 18px rgba(45,212,168,.25),inset 0 0 18px rgba(10,60,50,.5);text-shadow:0 0 6px rgba(120,255,214,.75),0 2px 4px rgba(0,40,30,.8);animation:tfbBreathe 3.2s ease-in-out infinite;transition:transform .15s ease}" + SIZE,
|
|
1144
1338
|
".tfb-orb-band{display:none}",
|
|
1145
1339
|
".tfb-orb-rim{position:absolute;inset:-1px;border-radius:50%;z-index:1;pointer-events:none;background:conic-gradient(from 200deg, rgba(255,255,255,.45), rgba(120,240,205,.3), rgba(10,200,170,.35), rgba(255,255,255,.12), rgba(45,212,168,.35), rgba(255,255,255,.45));-webkit-mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);animation:tfbRimSpin 7s linear infinite;filter:blur(.5px)}",
|
|
1146
1340
|
".tfb-ball .tfb-ring{display:none}",
|
|
1147
|
-
"
|
|
1341
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1148
1342
|
".tfb-ball.tfb-active{color:#ffd9a8;background:radial-gradient(circle at 50% 62%, rgba(255,240,210,.55) 0%, rgba(255,180,70,.8) 14%, rgba(220,130,25,.9) 30%, rgba(150,85,15,.95) 50%, rgba(60,32,6,1) 72%, rgba(24,12,2,1) 100%);box-shadow:0 0 20px rgba(255,170,51,.5),inset 0 2px 5px rgba(255,255,255,.5),inset 0 -10px 18px rgba(255,170,51,.28),inset 0 0 18px rgba(90,50,10,.5)}",
|
|
1149
1343
|
".tfb-ball.tfb-active .tfb-orb-rim{background:conic-gradient(from 200deg, rgba(255,255,255,.5), rgba(255,200,110,.35), rgba(255,150,30,.4), rgba(255,255,255,.12), rgba(255,190,80,.35), rgba(255,255,255,.5));animation-duration:2.6s}",
|
|
1150
1344
|
".tfb-ball.tfb-done{color:#d9fff0;background:radial-gradient(circle at 50% 62%, rgba(220,255,236,.5) 0%, rgba(93,255,168,.75) 14%, rgba(30,190,105,.85) 30%, rgba(15,130,75,.95) 50%, rgba(5,45,28,1) 72%, rgba(2,16,10,1) 100%);box-shadow:0 0 20px rgba(93,255,168,.5),inset 0 2px 5px rgba(255,255,255,.5),inset 0 -10px 18px rgba(93,255,168,.25),inset 0 0 18px rgba(8,60,38,.5)}",
|
|
@@ -1152,12 +1346,12 @@ window.__ModuleLoader__.load({
|
|
|
1152
1346
|
];
|
|
1153
1347
|
} else if (th === "nebC") {
|
|
1154
1348
|
ball = [
|
|
1155
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#d9fff0;font-size:
|
|
1349
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#d9fff0;font-size:9px;font-weight:800;line-height:1.1;background:radial-gradient(circle at 50% 55%, #1a8a70 0%, #0f6b58 30%, #083f35 60%, #031511 100%);box-shadow:0 0 18px rgba(45,212,168,.35),inset 0 2px 6px rgba(255,255,255,.28),inset 0 -8px 14px rgba(0,0,0,.5);text-shadow:0 0 6px rgba(120,255,214,.75),0 2px 4px rgba(0,40,30,.8);animation:tfbBreathe 3.2s ease-in-out infinite;transition:transform .15s ease}" + SIZE,
|
|
1156
1350
|
".tfb-ball::before{content:\"\";position:absolute;inset:4px 6px 58% 6px;border-radius:50%;background:radial-gradient(ellipse at 50% 30%, rgba(140,255,225,.55) 0%, rgba(140,255,225,.12) 60%, transparent 80%);filter:blur(1px);z-index:1;pointer-events:none}",
|
|
1157
1351
|
".tfb-orb-band{display:none}",
|
|
1158
1352
|
".tfb-orb-rim{position:absolute;inset:-1px;border-radius:50%;z-index:1;pointer-events:none;background:conic-gradient(from 200deg, rgba(255,255,255,.45), rgba(120,240,205,.3), rgba(10,200,170,.35), rgba(255,255,255,.12), rgba(45,212,168,.35), rgba(255,255,255,.45));-webkit-mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);mask:radial-gradient(circle, transparent 63%, #000 66%, #000 72%, transparent 76%);animation:tfbRimSpin 7s linear infinite;filter:blur(.5px)}",
|
|
1159
1353
|
".tfb-ball .tfb-ring{display:none}",
|
|
1160
|
-
"
|
|
1354
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1161
1355
|
".tfb-ball.tfb-active{color:#ffd9a8;background:radial-gradient(circle at 50% 55%, #d98a1a 0%, #a86410 30%, #5c3608 60%, #201003 100%);box-shadow:0 0 18px rgba(255,170,51,.4),inset 0 2px 6px rgba(255,255,255,.3),inset 0 -8px 14px rgba(0,0,0,.5)}",
|
|
1162
1356
|
".tfb-ball.tfb-active::before{background:radial-gradient(ellipse at 50% 30%, rgba(255,220,160,.55) 0%, rgba(255,220,160,.12) 60%, transparent 80%)}",
|
|
1163
1357
|
".tfb-ball.tfb-active .tfb-orb-rim{background:conic-gradient(from 200deg, rgba(255,255,255,.5), rgba(255,200,110,.35), rgba(255,150,30,.4), rgba(255,255,255,.12), rgba(255,190,80,.35), rgba(255,255,255,.5));animation-duration:2.6s}",
|
|
@@ -1168,7 +1362,7 @@ window.__ModuleLoader__.load({
|
|
|
1168
1362
|
];
|
|
1169
1363
|
} else if (th === "glass") {
|
|
1170
1364
|
ball = [
|
|
1171
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.4);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#16324a;font-size:
|
|
1365
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.4);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#16324a;font-size:9px;font-weight:800;line-height:1.1;background:linear-gradient(145deg,rgba(190,225,245,.4) 0%,rgba(130,170,205,.28) 50%,rgba(85,115,150,.42) 100%);backdrop-filter:blur(4px);box-shadow:inset 0 1px 5px rgba(255,255,255,.55),inset 0 -8px 14px rgba(255,255,255,.1),0 4px 16px rgba(0,0,0,.35);transition:transform .15s ease}" + SIZE,
|
|
1172
1366
|
".tfb-orb-band{display:none}",
|
|
1173
1367
|
".tfb-orb-rim{display:none}",
|
|
1174
1368
|
".tfb-ball::before{content:\"\";position:absolute;inset:3px 3px 55% 3px;border-radius:50% 50% 40% 40%;background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.06));filter:blur(.5px);pointer-events:none}",
|
|
@@ -1183,12 +1377,12 @@ window.__ModuleLoader__.load({
|
|
|
1183
1377
|
];
|
|
1184
1378
|
} else { // graphite
|
|
1185
1379
|
ball = [
|
|
1186
|
-
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#7defc4;font-size:
|
|
1380
|
+
".tfb-ball{position:fixed;right:18px;bottom:18px;z-index:2147483600;border-radius:50%;border:1px solid rgba(255,255,255,.28);cursor:grab;user-select:none;touch-action:none;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#7defc4;font-size:9px;font-weight:800;line-height:1.1;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.15),rgba(40,44,54,.95) 70%);box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 14px rgba(45,212,168,.28);transition:transform .15s ease}" + SIZE.replace(";", ";"),
|
|
1187
1381
|
".tfb-orb-band{display:none}",
|
|
1188
1382
|
".tfb-orb-rim{display:none}",
|
|
1189
1383
|
".tfb-ball .tfb-ring{position:absolute;inset:-1px;border-radius:50%;pointer-events:none;background:conic-gradient(var(--rc,#2dd4a8) calc(var(--pct,0)*1%),rgba(255,255,255,.07) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));transition:background .4s ease}",
|
|
1190
1384
|
".tfb-ball .tfb-label{text-shadow:0 0 8px currentColor,0 0 2px currentColor}",
|
|
1191
|
-
".tfb-ball.tfb-active{color:#ffcf8a;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 16px rgba(255,170,51,.45);animation:tfb-pulse 1.6s ease-in-out infinite}",
|
|
1385
|
+
".tfb-ball.tfb-active:not(.tfb-capsule){color:#ffcf8a;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 16px rgba(255,170,51,.45);animation:tfb-pulse 1.6s ease-in-out infinite}",
|
|
1192
1386
|
".tfb-ball.tfb-active .tfb-ring{--rc:#ffaa33}",
|
|
1193
1387
|
".tfb-ball.tfb-done{color:#8dffc8;box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 16px rgba(93,255,168,.4)}",
|
|
1194
1388
|
".tfb-ball.tfb-done .tfb-ring{--rc:#5dffa8}",
|
|
@@ -1204,22 +1398,37 @@ window.__ModuleLoader__.load({
|
|
|
1204
1398
|
].concat(ball, [
|
|
1205
1399
|
"@keyframes tfbBandFlow{0%,100%{transform:translateY(-3px) scaleY(.94);opacity:.8}50%{transform:translateY(3px) scaleY(1.12);opacity:1}}",
|
|
1206
1400
|
"@keyframes tfbRimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1401
|
+
"@property --cap-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1402
|
+
"@keyframes tfbCapSpin{to{--cap-spin:360deg}}",
|
|
1403
|
+
"@keyframes tfbIcoSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1207
1404
|
"@keyframes tfbBreathe{0%,100%{transform:scale(.96);filter:brightness(.92)}50%{transform:scale(1.05);filter:brightness(1.12)}}",
|
|
1208
1405
|
"@keyframes tfbGlow{0%,100%{text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px rgba(150,255,220,.9),0 0 20px rgba(30,220,180,.75)}50%{text-shadow:0 0 6px rgba(255,255,255,1),0 0 16px rgba(200,255,235,1),0 0 32px rgba(60,240,195,.95)}}",
|
|
1209
1406
|
"@keyframes tfb-pulse{0%,100%{box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 16px rgba(255,170,51,.45),0 0 0 0 rgba(255,170,51,.5)}50%{box-shadow:0 4px 24px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.15),0 0 16px rgba(255,170,51,.55),0 0 0 10px rgba(255,170,51,0)}}",
|
|
1210
|
-
".tfb-ball.tfb-active .tfb-label{animation:none;text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px rgba(255,215,140,.95),0 0 20px rgba(255,160,40,.8)}",
|
|
1211
|
-
".tfb-ball.tfb-done .tfb-label{animation:none;text-shadow:0 0 6px rgba(255,255,255,1),0 0 14px rgba(190,255,220,1),0 0 28px rgba(60,255,150,.9)}",
|
|
1407
|
+
".tfb-ball.tfb-active:not(.tfb-capsule) .tfb-label{animation:none;text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px rgba(255,215,140,.95),0 0 20px rgba(255,160,40,.8)}",
|
|
1408
|
+
".tfb-ball.tfb-done:not(.tfb-capsule) .tfb-label{animation:none;text-shadow:0 0 6px rgba(255,255,255,1),0 0 14px rgba(190,255,220,1),0 0 28px rgba(60,255,150,.9)}",
|
|
1212
1409
|
// capsule mode (right-click toggle): long pill, wider, text-first
|
|
1213
|
-
".tfb-ball.tfb-capsule{width:auto;min-width:
|
|
1410
|
+
".tfb-ball.tfb-capsule{width:auto;min-width:180px;max-width:min(520px,60vw);height:30px;border-radius:15px;flex-direction:row;gap:8px;padding:0 16px;font-size:12px;justify-content:flex-start}",
|
|
1214
1411
|
".tfb-ball.tfb-capsule .tfb-orb-band{inset:1px}",
|
|
1412
|
+
// m02693: capsule = calm pill (legacy layer). Strip glow & motion.
|
|
1413
|
+
".tfb-ball.tfb-capsule .tfb-orb-rim,.tfb-ball.tfb-capsule .tfb-orb-band{display:none!important}",
|
|
1414
|
+
".tfb-ball.tfb-capsule{text-shadow:none!important;animation:none!important}",
|
|
1415
|
+
// m02939: same flat-capsule rule for the classic skins (they carry
|
|
1416
|
+
// no --pbgA token, so a fixed neutral dark stands in).
|
|
1417
|
+
".tfb-ball.tfb-capsule{background:#14171d!important}",
|
|
1418
|
+
// m03026: text-shadow off for ALL capsule text, but animation:none must NOT
|
|
1419
|
+
// cover .tfb-capsule-text — an !important animation:none beats the marquee
|
|
1420
|
+
// rule below and silently killed the overflow scroll playback.
|
|
1421
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub,.tfb-ball.tfb-capsule .tfb-capsule-text{text-shadow:none!important}",
|
|
1422
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub{animation:none!important}",
|
|
1423
|
+
".tfb-ball.tfb-capsule::before{display:none!important}",
|
|
1215
1424
|
".tfb-ball.tfb-capsule .tfb-orb-rim{display:none}",
|
|
1216
1425
|
".tfb-ball.tfb-capsule .tfb-ring{display:none}",
|
|
1217
1426
|
".tfb-ball.tfb-capsule .tfb-label{flex-shrink:0}",
|
|
1218
1427
|
".tfb-ball.tfb-capsule .tfb-sub{flex:1;min-width:0;max-width:none;font-size:12px;text-align:left;overflow:hidden;white-space:nowrap}",
|
|
1219
1428
|
".tfb-ball.tfb-capsule .tfb-capsule-text{display:inline-block;white-space:nowrap}",
|
|
1220
|
-
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate}",
|
|
1429
|
+
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate!important}",
|
|
1221
1430
|
"@keyframes tfbMarquee{from{transform:translateX(0)}to{transform:translateX(var(--shift,-40px))}}",
|
|
1222
|
-
".tfb-panel{position:fixed;z-index:2147483600;width:
|
|
1431
|
+
".tfb-panel{position:fixed;z-index:2147483600;width:400px;max-width:calc(100vw - 24px);max-height:74vh;overflow-y:auto;overflow-x:hidden;pointer-events:auto;display:none;color:#e6e6e6;font-size:11.5px;line-height:1.5;border-radius:14px;padding:12px 14px 10px;background:rgba(16,18,22,.92);border:1px solid rgba(255,255,255,.09);box-shadow:none;backdrop-filter:blur(24px)}",
|
|
1223
1432
|
".tfb-panel.tfb-open{display:block}",
|
|
1224
1433
|
".tfb-panel.tfb-open.tfb-hz{display:flex;flex-wrap:wrap;align-items:flex-start;width:auto;min-width:540px;max-width:min(92vw,800px)}",
|
|
1225
1434
|
".tfb-panel.tfb-hz .tfb-head{flex:0 0 100%;width:100%}",
|
|
@@ -1227,33 +1436,35 @@ window.__ModuleLoader__.load({
|
|
|
1227
1436
|
".tfb-panel.tfb-hz .tfb-colcap{display:block}",
|
|
1228
1437
|
".tfb-panel.tfb-hz .tfb-col-cur{flex:1 1 45%;min-width:250px;max-width:none;box-sizing:border-box;padding-right:10px;border-right:1px solid rgba(255,255,255,.10)}",
|
|
1229
1438
|
".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
|
|
1230
|
-
".tfb-head{display:flex;
|
|
1231
|
-
".tfb-title{font-weight:700;font-size:
|
|
1232
|
-
".tfb-ctitle{flex:1;min-width:0;font-size:
|
|
1233
|
-
".tfb-summary{font-size:11px;color:#9aa3b2;white-space:nowrap}",
|
|
1234
|
-
".tfb-btn{border:
|
|
1439
|
+
".tfb-head{display:flex;flex-direction:column;gap:4px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.10)}",
|
|
1440
|
+
".tfb-head-row1{display:flex;align-items:flex-start;gap:6px;width:100%}.tfb-head-row2{display:flex;align-items:center;gap:3px;width:100%}.tfb-title{font-weight:700;font-size:12px;white-space:nowrap}",
|
|
1441
|
+
".tfb-ctitle{flex:1;min-width:0;font-size:11.5px;font-weight:600;line-height:1.4;color:#9aa3b2;overflow:hidden;text-overflow:ellipsis;cursor:text}",
|
|
1442
|
+
".tfb-summary{margin-right:auto;font-size:11px;color:#9aa3b2;white-space:nowrap}",
|
|
1443
|
+
".tfb-btn{border:1px solid rgba(128,138,160,.28);background:transparent;color:#9aa3b2;font-size:13px;cursor:pointer;padding:3px 6px;border-radius:8px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}",
|
|
1444
|
+
"a.tfb-btn.tfb-star-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}",
|
|
1445
|
+
"a.tfb-btn.tfb-star-link:hover{color:var(--stA,#8fd3c0)}",
|
|
1235
1446
|
".tfb-btn:hover{color:#e6e6e6;background:rgba(255,255,255,.06)}",
|
|
1236
1447
|
".tfb-btn.tfb-on{color:#ffd27a}",
|
|
1237
1448
|
".tfb-list{list-style:none;margin:0;padding:0}",
|
|
1238
|
-
".tfb-item{display:flex;align-items:flex-start;gap:
|
|
1449
|
+
".tfb-item{display:flex;align-items:flex-start;gap:6px;padding:4px 4px;border-radius:7px}",
|
|
1239
1450
|
".tfb-item:nth-child(odd){background:rgba(255,255,255,.03)}",
|
|
1240
|
-
".tfb-ico{flex-shrink:0;width:
|
|
1451
|
+
".tfb-ico{flex-shrink:0;margin-top:2px;width:15px;height:15px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px}",
|
|
1241
1452
|
".tfb-item[data-status='completed'] .tfb-ico{background:rgba(74,222,128,.18);color:#5dffa8;border:1px solid rgba(93,255,168,.4)}",
|
|
1242
|
-
".tfb-item[data-status='in_progress'] .tfb-ico{background:rgba(255,170,51,.
|
|
1453
|
+
".tfb-item[data-status='in_progress'] .tfb-ico{background:transparent;border:2px solid rgba(255,170,51,.26);border-top-color:#ffaa33;animation:tfbIcoSpin .85s linear infinite}",
|
|
1243
1454
|
".tfb-item[data-status='pending'] .tfb-ico{background:rgba(127,196,255,.14);color:#7fc4ff;border:1px dashed rgba(127,196,255,.5)}",
|
|
1244
1455
|
".tfb-item[data-status='in_progress']{background:rgba(255,170,51,.06)}",
|
|
1245
1456
|
".tfb-item[data-status='in_progress'] .tfb-txt{color:#ffcf8a;font-weight:600}",
|
|
1246
|
-
".tfb-item[data-status='completed'] .tfb-txt{color:#7fae94;
|
|
1457
|
+
".tfb-item[data-status='completed'] .tfb-txt{color:#7fae94;opacity:.85}",
|
|
1247
1458
|
".tfb-item[data-status='pending'] .tfb-txt{color:#aebfd4}",
|
|
1248
|
-
".tfb-txt{flex:1}",
|
|
1459
|
+
".tfb-txt{flex:1;min-width:0;white-space:normal;overflow:hidden;word-break:break-word;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}",
|
|
1249
1460
|
// Plan-A2: per-row hide button — invisible until hover/focus, never
|
|
1250
1461
|
// printed, keeps the row layout unchanged
|
|
1251
|
-
".tfb-x{flex-shrink:0;border:0;background:transparent;color:#6b7280;font-size:11px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}",
|
|
1462
|
+
".tfb-x{flex-shrink:0;margin-top:-1px;border:0;background:transparent;color:#6b7280;font-size:11px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}",
|
|
1252
1463
|
".tfb-item:hover .tfb-x,.tfb-x:focus{opacity:1}",
|
|
1253
1464
|
".tfb-x:hover{color:#ff8a8a;background:rgba(255,120,120,.12)}",
|
|
1254
1465
|
".tfb-empty{color:#8b93a1;font-size:12px;text-align:center;padding:12px 0}",
|
|
1255
1466
|
// Plan-A3: history fold toggle row
|
|
1256
|
-
".tfb-histoggle{list-style:none;display:flex;align-items:center;
|
|
1467
|
+
".tfb-histoggle{list-style:none;display:flex;align-items:center;gap:5px;margin:3px 0 2px;padding:3px 8px;border-radius:7px;color:#7f8896;font-size:10.5px;cursor:pointer;background:transparent;letter-spacing:.02em}",
|
|
1257
1468
|
".tfb-histoggle:hover{color:#e6e6e6;background:rgba(255,255,255,.06)}",
|
|
1258
1469
|
// v0.14.7: archive / live-plan divider (theme-2 palette, no CSS vars)
|
|
1259
1470
|
".tfb-divider{list-style:none;display:flex;align-items:center;gap:8px;margin:12px 0 8px;padding:0 2px;pointer-events:none}",
|
|
@@ -1272,16 +1483,66 @@ window.__ModuleLoader__.load({
|
|
|
1272
1483
|
"@keyframes tfb-dotpulse{0%,100%{opacity:1}50%{opacity:.4}}",
|
|
1273
1484
|
".tfb-pinlist{list-style:none;margin:2px 0 4px;padding:0 0 0 10px;border-left:2px solid rgba(255,255,255,.08)}",
|
|
1274
1485
|
".tfb-hint{font-size:10px;color:#6b7280;padding:6px 0 0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}",
|
|
1275
|
-
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:
|
|
1276
|
-
".tfb-theme-menu.tfb-open{display:
|
|
1277
|
-
".tfb-theme-row{display:flex;align-items:center;gap:
|
|
1486
|
+
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:0;border-radius:10px;background:rgba(12,16,20,.96)}",
|
|
1487
|
+
".tfb-theme-menu.tfb-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-content:start}",
|
|
1488
|
+
".tfb-theme-row{display:flex;align-items:center;gap:4px;padding:3px 5px;border-radius:8px;cursor:pointer;font-size:10.5px;color:#cdd6e2}",
|
|
1489
|
+
".tfb-theme-cap{grid-column:1/-1}",
|
|
1490
|
+
".tfb-theme-row-wide{grid-column:1/-1}",
|
|
1491
|
+
".tfb-theme-row{padding:4px 6px;font-size:10.5px;gap:5px}",
|
|
1492
|
+
".tfb-theme-row .tfb-theme-check{width:11px}",
|
|
1493
|
+
".tfb-theme-row .tfb-swdot{width:8px;height:8px}",
|
|
1278
1494
|
".tfb-theme-row:hover{background:rgba(255,255,255,.06)}",
|
|
1279
1495
|
".tfb-theme-row.tfb-cur{color:#ffd27a;font-weight:600}",
|
|
1280
1496
|
".tfb-theme-row .tfb-theme-check{flex-shrink:0;width:14px;text-align:center}",
|
|
1281
1497
|
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0}",
|
|
1282
1498
|
".tfb-rename{flex:1;min-width:0;padding:3px 8px;border-radius:6px;border:1px solid rgba(255,210,122,.5);background:rgba(0,0,0,.4);color:#ffd27a;font:inherit;font-size:12px;outline:none}",
|
|
1283
1499
|
".tfb-rename:focus{border-color:#ffd27a}",
|
|
1284
|
-
".tfb-ctitle[contenteditable=
|
|
1500
|
+
".tfb-ctitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tfb-ctitle[contenteditable=true]{display:block;outline:none;border-bottom:1px dashed #ffd27a;color:#ffd27a;cursor:text}",
|
|
1501
|
+
// ---- forced ball text colour (auto / black / white) ----
|
|
1502
|
+
".tfb-btn.tfb-ink-btn{font-weight:700;font-size:13px;line-height:1;padding:3px 6px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}",
|
|
1503
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-auto{opacity:.8}",
|
|
1504
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-lock{opacity:.5;cursor:not-allowed}",
|
|
1505
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-black{color:#0b0b0b;background:rgba(255,255,255,.9)}",
|
|
1506
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-white{color:#ffffff;background:rgba(0,0,0,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}",
|
|
1507
|
+
// SCOPE (user m01766): EVERY piece of text -- ball face AND the whole
|
|
1508
|
+
// panel. `*` catches every descendant so per-skin accents (title,
|
|
1509
|
+
// item text, captions, counts, chips, buttons) all collapse to one ink.
|
|
1510
|
+
".tfb-root.tfb-ink-black,.tfb-root.tfb-ink-black *{color:#000 !important;text-shadow:none !important}",
|
|
1511
|
+
".tfb-root.tfb-ink-white,.tfb-root.tfb-ink-white *{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.65) !important}",
|
|
1512
|
+
// the ink switch itself must stay legible in both modes
|
|
1513
|
+
".tfb-root.tfb-ink-black .tfb-ink-btn{color:#0b0b0b !important;background:rgba(255,255,255,.92) !important}",
|
|
1514
|
+
".tfb-root.tfb-ink-white .tfb-ink-btn{color:#ffffff !important;background:rgba(0,0,0,.62) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}",
|
|
1515
|
+
// colored accents (dots / spinner ring / status glow) also collapse to
|
|
1516
|
+
// the forced ink so nothing screams colour inside a monochrome page
|
|
1517
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='in_progress'] .tfb-ico{border-color:rgba(0,0,0,.25) !important;border-top-color:#000 !important}",
|
|
1518
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='in_progress'] .tfb-ico{border-color:rgba(255,255,255,.35) !important;border-top-color:#fff !important}",
|
|
1519
|
+
".tfb-root.tfb-ink-black .tfb-dot{background:#000 !important;border-color:#000 !important}",
|
|
1520
|
+
".tfb-root.tfb-ink-white .tfb-dot{background:#fff !important;border-color:rgba(255,255,255,.6) !important}",
|
|
1521
|
+
// in_progress row tint: neutralize the amber glow under forced ink
|
|
1522
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='in_progress']{background:rgba(0,0,0,.07) !important;box-shadow:inset 2px 0 0 #000 !important}",
|
|
1523
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='in_progress']{background:rgba(255,255,255,.1) !important;box-shadow:inset 2px 0 0 #fff !important}",
|
|
1524
|
+
// completed tick + dividers go monochrome too
|
|
1525
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='completed'] .tfb-ico{color:#000 !important}",
|
|
1526
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='completed'] .tfb-ico{color:#fff !important}",
|
|
1527
|
+
"@property --tfb-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1528
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']{position:relative;overflow:hidden}",
|
|
1529
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']::after{content:\"\";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;background:conic-gradient(from var(--tfb-spin,0deg),var(--stA,#4d8df6),transparent 22%,var(--stA,#4d8df6) 50%,transparent 78%,var(--stA,#4d8df6));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;animation:tfbBorderSpin 2.6s linear infinite}",
|
|
1530
|
+
"@keyframes tfbBorderSpin{to{--tfb-spin:360deg}}",
|
|
1531
|
+
// ---- m03250: orb-rim restored (user: the encircling light band must stay) ----
|
|
1532
|
+
".tfb-ball.tfb-capsule::after{content:none!important;display:none!important}",
|
|
1533
|
+
"@keyframes tfbRimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1534
|
+
"@property --cap-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1535
|
+
"@keyframes tfbCapSpin{to{--cap-spin:360deg}}",
|
|
1536
|
+
".tfb-ball,.tfb-panel,.tfb-theme-menu{-webkit-app-region:no-drag;app-region:no-drag}",
|
|
1537
|
+
".tfb-ball .tfb-orb-rim{position:absolute;inset:-1px;border-radius:50%;z-index:1;pointer-events:none;background:conic-gradient(from 200deg,var(--rimA,rgba(255,255,255,.55)),var(--rimB,rgba(140,180,255,.35)),var(--rimC,rgba(206,44,203,.4)),var(--rimD,rgba(255,255,255,.15)),var(--rimE,rgba(111,158,232,.4)),var(--rimA,rgba(255,255,255,.55)));-webkit-mask:radial-gradient(circle,transparent 63%,#000 66%,#000 72%,transparent 76%);mask:radial-gradient(circle,transparent 63%,#000 66%,#000 72%,transparent 76%);animation:rimSpin 7s linear infinite;filter:blur(.5px)}",
|
|
1538
|
+
".tfb-ball .tfb-orb-band{position:absolute;inset:1px;border-radius:50%;z-index:1;pointer-events:none;background:radial-gradient(ellipse 85% 26% at 50% 60%,var(--bandA,rgba(255,255,255,1)) 0%,var(--bandB,rgba(235,245,255,.85)) 18%,var(--bandC,rgba(160,200,255,.5)) 38%,var(--bandD,rgba(190,120,255,.35)) 55%,transparent 75%),radial-gradient(ellipse 70% 18% at 45% 42%,var(--bandE,rgba(111,158,232,.55)) 0%,transparent 70%),radial-gradient(ellipse 70% 18% at 55% 74%,var(--bandF,rgba(206,44,203,.4)) 0%,transparent 70%);filter:blur(1px);animation:bandFlow 4.5s ease-in-out infinite}",
|
|
1539
|
+
".tfb-ball{box-shadow:0 0 22px var(--glowA,rgba(111,158,232,.45)),0 0 4px var(--glowB,rgba(206,44,203,.3)),0 4px 18px rgba(0,0,0,.55),inset 0 1px 3px rgba(255,255,255,.4),inset 0 -8px 16px var(--glowC,rgba(206,44,203,.14)),inset 0 0 14px var(--glowD,rgba(80,120,255,.2))}",
|
|
1540
|
+
".tfb-ball .tfb-label{text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px var(--ltA,rgba(160,200,255,.9)),0 0 20px var(--ltB,rgba(120,90,255,.7)),0 2px 4px rgba(10,20,60,.8)}",
|
|
1541
|
+
".tfb-ball{animation:orbBreathe 3.2s ease-in-out infinite}",
|
|
1542
|
+
".tfb-ball.tfb-idle{animation:orbBreathe 4.2s ease-in-out infinite}",
|
|
1543
|
+
"@keyframes orbBreathe{0%,100%{transform:scale(.96);filter:brightness(.92)}50%{transform:scale(1.05);filter:brightness(1.12)}}",
|
|
1544
|
+
"@keyframes rimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1545
|
+
"@keyframes bandFlow{0%,100%{transform:translateY(-3px) scaleY(.94);opacity:.8}50%{transform:translateY(3px) scaleY(1.12);opacity:1}}",
|
|
1285
1546
|
]).join("\n");
|
|
1286
1547
|
}
|
|
1287
1548
|
|
|
@@ -1289,7 +1550,7 @@ window.__ModuleLoader__.load({
|
|
|
1289
1550
|
var html = "";
|
|
1290
1551
|
for (var i = 0; i < list.length; i++) {
|
|
1291
1552
|
var t = list[i];
|
|
1292
|
-
var ico = t.status === "completed" ? "✓" : t.status === "in_progress" ? "
|
|
1553
|
+
var ico = t.status === "completed" ? "✓" : t.status === "in_progress" ? "" : "○";
|
|
1293
1554
|
var txt = t.content.length > MAX_CONTENT ? t.content.slice(0, MAX_CONTENT) + "…" : t.content;
|
|
1294
1555
|
// Plan-A2: every row carries a small ✕ so the user can hide history
|
|
1295
1556
|
// rows they no longer want to see (only deletes from the DISPLAY —
|
|
@@ -1299,7 +1560,7 @@ window.__ModuleLoader__.load({
|
|
|
1299
1560
|
// to the clipboard (handy for quoting a broken/odd task back).
|
|
1300
1561
|
html += '<li class="tfb-item" data-status="' + t.status + '">' +
|
|
1301
1562
|
'<span class="tfb-ico">' + ico + '</span>' +
|
|
1302
|
-
'<span class="tfb-txt">' + esc(txt) + '</span>' +
|
|
1563
|
+
'<span class="tfb-txt" title="' + esc(t.content) + '">' + esc(txt) + '</span>' +
|
|
1303
1564
|
'<button class="tfb-x" type="button" data-act="copyItem" data-copy="' + esc(t.content) + '" title="复制此条完整内容">📋</button>' +
|
|
1304
1565
|
'<button class="tfb-x" type="button" data-act="hideItem" data-idx="' + i + '" title="从悬浮球隐藏此条(不动数据源)">✕</button>' +
|
|
1305
1566
|
"</li>";
|
|
@@ -1344,35 +1605,27 @@ window.__ModuleLoader__.load({
|
|
|
1344
1605
|
// (both folds), same ✕ semantics as single-row hides, snapshot rows
|
|
1345
1606
|
// and data layer untouched.
|
|
1346
1607
|
var anyHist = histDone.length + histOpen_.length;
|
|
1608
|
+
// ── divider: archive vs live plan ─────────────────────────────────
|
|
1609
|
+
// Shown only when there IS an archive above, so a first-round list
|
|
1610
|
+
// stays clean. The right-hand count restates what the BALL shows, so
|
|
1611
|
+
// the number cannot be misread as panel-wide.
|
|
1612
|
+
html += listHtml(snapRows);
|
|
1613
|
+
// ORDER (user requirement, m00455): history folds come AFTER the
|
|
1614
|
+
// live progress block — completed first, abandoned second.
|
|
1347
1615
|
if (histDone.length) {
|
|
1348
|
-
html += '<li class="tfb-histoggle" data-act="toggleHistory"' + ownAttr + ' title="展开/收起历史任务"
|
|
1349
|
-
'<button class="tfb-btn" data-act="clearHistory"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)"
|
|
1616
|
+
html += '<li class="tfb-histoggle" data-act="toggleHistory"' + ownAttr + ' title="展开/收起历史任务">' + (historyOpen[osid] ? "▾" : "▸") + ' 已完成 · ' + histDone.length +
|
|
1617
|
+
'<button class="tfb-btn" data-act="clearHistory"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)">' + TFB_ICONS.broom + '</button></li>';
|
|
1350
1618
|
if (historyOpen[osid]) html += listHtml(histDone);
|
|
1351
1619
|
}
|
|
1352
1620
|
// Plan-A3.1: non-completed history in a SECOND fold (default closed)
|
|
1353
1621
|
if (histOpen_.length) {
|
|
1354
|
-
html += '<li class="tfb-histoggle" data-act="toggleHistoryOpen"' + ownAttr + ' title="展开/收起被抛弃的历史任务"
|
|
1355
|
-
'<button class="tfb-btn" data-act="clearHistoryOpen"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)"
|
|
1622
|
+
html += '<li class="tfb-histoggle" data-act="toggleHistoryOpen"' + ownAttr + ' title="展开/收起被抛弃的历史任务">' + (historyOpenOpen[osid] ? "▾" : "▸") + ' 已抛弃 · ' + histOpen_.length +
|
|
1623
|
+
'<button class="tfb-btn" data-act="clearHistoryOpen"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)">' + TFB_ICONS.broom + '</button></li>';
|
|
1356
1624
|
if (historyOpenOpen[osid]) html += listHtml(histOpen_);
|
|
1357
1625
|
}
|
|
1358
|
-
//
|
|
1359
|
-
//
|
|
1360
|
-
//
|
|
1361
|
-
// the number cannot be misread as panel-wide.
|
|
1362
|
-
if (snapRows.length || anyHist) {
|
|
1363
|
-
var liveC = countsOf(snapRows);
|
|
1364
|
-
var liveTxt = snapRows.length
|
|
1365
|
-
? (liveC.done + "/" + liveC.total + " 完成")
|
|
1366
|
-
: "无进行中任务";
|
|
1367
|
-
html += '<li class="tfb-divider" data-ownsid="' + esc(sid) + '">' +
|
|
1368
|
-
'<span class="tfb-divider-line"></span>' +
|
|
1369
|
-
'<span class="tfb-divider-txt">当前进度 · ' + liveTxt + '</span>' +
|
|
1370
|
-
'<span class="tfb-divider-line"></span></li>';
|
|
1371
|
-
}
|
|
1372
|
-
html += listHtml(snapRows);
|
|
1373
|
-
if (anyHist) {
|
|
1374
|
-
html += '<li class="tfb-histoggle" data-act="clearAll"' + ownAttr + ' title="一键隐藏两个历史区全部条目">🧹 一键清理全部历史(' + anyHist + ' 条)</li>';
|
|
1375
|
-
}
|
|
1626
|
+
// m00673 redesign: the standalone batch-clear row is removed — each
|
|
1627
|
+
// fold already carries its own 🧹 button; one more full-width row was
|
|
1628
|
+
// redundant visual noise at the bottom of the panel.
|
|
1376
1629
|
// Plan-A7: restore affordance — one click un-hides EVERYTHING hidden
|
|
1377
1630
|
// in this session (single ✕ hides and batch clears alike). Only
|
|
1378
1631
|
// shown when at least one row is hidden, so it never adds noise.
|
|
@@ -1380,7 +1633,7 @@ window.__ModuleLoader__.load({
|
|
|
1380
1633
|
var hidMap = hiddenFor(osid);
|
|
1381
1634
|
for (var hk in hidMap) { if (hidMap[hk]) hidCount++; }
|
|
1382
1635
|
if (hidCount > 0) {
|
|
1383
|
-
html += '<li class="tfb-histoggle" data-act="restoreAll"' + ownAttr + ' title="
|
|
1636
|
+
html += '<li class="tfb-histoggle" data-act="restoreAll"' + ownAttr + ' title="取消本会话全部隐藏(✕/扫把 的反向操作)">↩︎ 恢复已隐藏的 ' + hidCount + ' 条</li>';
|
|
1384
1637
|
}
|
|
1385
1638
|
return html;
|
|
1386
1639
|
}
|
|
@@ -1451,7 +1704,7 @@ window.__ModuleLoader__.load({
|
|
|
1451
1704
|
var on = currentSid && isPinned(currentSid);
|
|
1452
1705
|
ui.pinBtn.classList.toggle("tfb-on", !!on);
|
|
1453
1706
|
ui.pinBtn.title = on ? "取消固定当前会话" : "固定当前会话(切换对话后仍监控)";
|
|
1454
|
-
ui.pinBtn.
|
|
1707
|
+
ui.pinBtn.innerHTML = TFB_ICONS.pin; ui.pinBtn.style.opacity = on ? "1" : ".55";
|
|
1455
1708
|
}
|
|
1456
1709
|
var list = currentList();
|
|
1457
1710
|
if (!list.length) {
|
|
@@ -1465,11 +1718,9 @@ window.__ModuleLoader__.load({
|
|
|
1465
1718
|
// Plan-A4: counts from the CURRENT SNAPSHOT only. (User request
|
|
1466
1719
|
// 2026-09-13: the dsh-client-auto-continue recommendation line is
|
|
1467
1720
|
// removed — no third-party plugin advertising in this UI.)
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
ui.list.innerHTML += '<li class="tfb-empty" style="padding:6px 0 2px;font-size:10px">⚠️ 还有 ' + left + ' 项未完成</li>';
|
|
1472
|
-
}
|
|
1721
|
+
// 2026-10-28 (m01008): the "还有 N 项未完成" footer row is removed —
|
|
1722
|
+
// the panel-header summary already carries done/total counts; a second
|
|
1723
|
+
// counter at the bottom was redundant noise.
|
|
1473
1724
|
}
|
|
1474
1725
|
renderPinned();
|
|
1475
1726
|
}
|
|
@@ -1478,7 +1729,7 @@ window.__ModuleLoader__.load({
|
|
|
1478
1729
|
if (!ui.pinSec) return;
|
|
1479
1730
|
if (pinned.length === 0) { ui.pinSec.innerHTML = ""; return; }
|
|
1480
1731
|
if (editing.sid) return; // a rename editor is live — don't rebuild under it
|
|
1481
|
-
var html = '<div class="tfb-sep"><span class="tfb-sep-label"
|
|
1732
|
+
var html = '<div class="tfb-sep"><span class="tfb-sep-label">已固定 (' + pinned.length + ')</span></div>';
|
|
1482
1733
|
for (var i = 0; i < pinned.length; i++) {
|
|
1483
1734
|
var sid = pinned[i];
|
|
1484
1735
|
var list = sessionTodosVisible(sid);
|
|
@@ -1492,7 +1743,7 @@ window.__ModuleLoader__.load({
|
|
|
1492
1743
|
html += '<span class="tfb-dot ' + pinDotClass(sid) + '"></span>';
|
|
1493
1744
|
html += '<span class="tfb-pinname" title="' + esc(tname) + '">' + esc(tname) + "</span>";
|
|
1494
1745
|
html += '<span class="tfb-pincount">' + (c ? c.done + "/" + c.total : "…") + "</span>";
|
|
1495
|
-
html += '<button class="tfb-btn" data-act="renamePin" data-sid="' + esc(sid) + '" title="重命名"
|
|
1746
|
+
html += '<button class="tfb-btn" data-act="renamePin" data-sid="' + esc(sid) + '" title="重命名">' + TFB_ICONS.pencil + '</button>';
|
|
1496
1747
|
html += '<button class="tfb-btn" data-act="unpin" data-sid="' + esc(sid) + '" title="取消固定">✖</button>';
|
|
1497
1748
|
html += "</div>";
|
|
1498
1749
|
if (open) {
|
|
@@ -1510,47 +1761,59 @@ window.__ModuleLoader__.load({
|
|
|
1510
1761
|
ui.pinSec.innerHTML = html;
|
|
1511
1762
|
}
|
|
1512
1763
|
|
|
1513
|
-
var THEME_NAMES = { nebula: "🌌 星云·流光", nebB: "🌟 星云·宝石", nebC: "🌙 星云·顶弧", graphite: "💎 石墨版", blue: "🔵 蓝宝石版", glass: "🧊 玻璃版" };
|
|
1514
1764
|
|
|
1765
|
+
// ---- lazy extra skins ----------------------------------------------------
|
|
1766
|
+
// Only the three core looks live in this bundle; the other 128 designs are
|
|
1767
|
+
// served by the host at SK.extrasUrl and registered on first panel open.
|
|
1768
|
+
var EXTRAS_STATE = "idle", EXTRAS_PENDING = null;
|
|
1769
|
+
function ensureSkinExtras() {
|
|
1770
|
+
if (!SK || typeof SK.loadExtras !== "function") { EXTRAS_STATE = "ok"; return Promise.resolve(false); }
|
|
1771
|
+
if (EXTRAS_PENDING) return EXTRAS_PENDING;
|
|
1772
|
+
if (SK.__extrasLoaded) { EXTRAS_STATE = "ok"; return Promise.resolve(true); }
|
|
1773
|
+
EXTRAS_STATE = "loading";
|
|
1774
|
+
EXTRAS_PENDING = SK.loadExtras().then(function (ok) {
|
|
1775
|
+
EXTRAS_STATE = ok ? "ok" : "error";
|
|
1776
|
+
EXTRAS_PENDING = null;
|
|
1777
|
+
return ok;
|
|
1778
|
+
}, function () { EXTRAS_STATE = "error"; EXTRAS_PENDING = null; return false; });
|
|
1779
|
+
return EXTRAS_PENDING;
|
|
1780
|
+
}
|
|
1515
1781
|
function renderThemeMenu() {
|
|
1516
1782
|
if (!ui.themeMenu) return;
|
|
1517
1783
|
var html = "";
|
|
1784
|
+
if (EXTRAS_STATE === "loading") {
|
|
1785
|
+
html += '<div class="tfb-theme-row tfb-theme-row-wide tfb-extras-note" style="opacity:.85">皮肤加载中…</div>';
|
|
1786
|
+
} else if (EXTRAS_STATE === "error") {
|
|
1787
|
+
html += '<div class="tfb-theme-row tfb-theme-row-wide tfb-extras-note" style="opacity:.85">皮肤清单加载失败,仅显示 3 套基础皮肤</div>';
|
|
1788
|
+
}
|
|
1518
1789
|
function swdot(s) {
|
|
1519
1790
|
var a = s.vars && s.vars.stA ? s.vars.stA : "#888";
|
|
1520
1791
|
var b = s.vars && s.vars.bgB ? s.vars.bgB : "#222";
|
|
1521
1792
|
return '<span class="tfb-swdot" style="background:linear-gradient(135deg,' + a + ',' + b + ')"></span>';
|
|
1522
1793
|
}
|
|
1523
1794
|
if (SK) {
|
|
1795
|
+
var isAuto = mySkinPref() === "auto";
|
|
1796
|
+
var _sync = isSyncOn();
|
|
1797
|
+
html += '<div class="tfb-theme-row tfb-theme-row-wide tfb-sync-row' + (_sync ? " tfb-sync-on" : "") + '" data-act="toggleSync" title="\u52fe\u9009 = \u8ddf\u968f\u5168\u5c40\u76ae\u80a4\uff1b\u4e0d\u52fe = \u672c\u7403\u72ec\u7acb\u76ae\u80a4">' +
|
|
1798
|
+
'<span class="tfb-theme-check">' + (_sync ? "\u2713" : " ") + "</span>" +
|
|
1799
|
+
'<span class="tfb-sync-label">\u4e09\u7403\u76ae\u80a4\u540c\u6b65</span></div>' +
|
|
1800
|
+
html;
|
|
1801
|
+
html += '<div class="tfb-theme-row tfb-theme-row-wide' + (isAuto ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="auto" title="跟随客户端深/浅色自动切换">' +
|
|
1802
|
+
'<span class="tfb-theme-check">' + (isAuto ? "\u2713" : " ") + "</span>" +
|
|
1803
|
+
'<span class="tfb-swdot" style="background:linear-gradient(135deg,#f9fafb,#151517)"></span>' +
|
|
1804
|
+
'<span class="tfb-theme-label">0 \u00b7 \u968f\u7cfb\u7edf \u00b7 \u6df1/\u6d45\u81ea\u52a8</span></div>';
|
|
1524
1805
|
var groups = SK.groups();
|
|
1525
1806
|
for (var g = 0; g < groups.length; g++) {
|
|
1526
1807
|
html += '<div class="tfb-theme-cap">' + groups[g] + '</div>';
|
|
1527
1808
|
for (var i = 0; i < SK.ALL.length; i++) {
|
|
1528
1809
|
var sp = SK.ALL[i];
|
|
1529
1810
|
if (sp.group !== groups[g]) continue;
|
|
1530
|
-
var cur = sp.id ===
|
|
1811
|
+
var cur = !isAuto && sp.id === mySkinId();
|
|
1531
1812
|
html += '<div class="tfb-theme-row' + (cur ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + sp.id + '" title="' + sp.en + ' (方案 ' + sp.no + ')">' +
|
|
1532
1813
|
'<span class="tfb-theme-check">' + (cur ? "✓" : " ") + "</span>" + swdot(sp) +
|
|
1533
1814
|
'<span class="tfb-theme-label">' + sp.no + " · " + sp.name + "</span></div>";
|
|
1534
1815
|
}
|
|
1535
1816
|
}
|
|
1536
|
-
html += '<div class="tfb-theme-cap">经典(旧版)</div>';
|
|
1537
|
-
var order = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
|
|
1538
|
-
for (var j = 0; j < order.length; j++) {
|
|
1539
|
-
var th = order[j];
|
|
1540
|
-
var cur2 = !currentSkinId && th === currentTheme;
|
|
1541
|
-
html += '<div class="tfb-theme-row' + (cur2 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="legacy:' + th + '">' +
|
|
1542
|
-
'<span class="tfb-theme-check">' + (cur2 ? "✓" : " ") + "</span>" +
|
|
1543
|
-
'<span class="tfb-theme-label">' + (THEME_NAMES[th] || th) + "</span></div>";
|
|
1544
|
-
}
|
|
1545
|
-
} else {
|
|
1546
|
-
var order2 = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
|
|
1547
|
-
for (var k = 0; k < order2.length; k++) {
|
|
1548
|
-
var th2 = order2[k];
|
|
1549
|
-
var cur3 = th2 === currentTheme;
|
|
1550
|
-
html += '<div class="tfb-theme-row' + (cur3 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + th2 + '">' +
|
|
1551
|
-
'<span class="tfb-theme-check">' + (cur3 ? "✓" : " ") + "</span>" +
|
|
1552
|
-
'<span class="tfb-theme-label">' + (THEME_NAMES[th2] || th2) + "</span></div>";
|
|
1553
|
-
}
|
|
1554
1817
|
}
|
|
1555
1818
|
ui.themeMenu.innerHTML = html;
|
|
1556
1819
|
}
|
|
@@ -1601,7 +1864,9 @@ window.__ModuleLoader__.load({
|
|
|
1601
1864
|
// overflowing text scrolls back and forth (marquee)
|
|
1602
1865
|
if (list.length) {
|
|
1603
1866
|
var c1 = countsOf(list);
|
|
1604
|
-
|
|
1867
|
+
// m03000: the ball LABEL already renders "✓" when everything is done,
|
|
1868
|
+
// so the capsule text must NOT repeat it (it showed two ticks).
|
|
1869
|
+
if (c1.done === c1.total) sub = "全部完成 " + c1.done + "/" + c1.total;
|
|
1605
1870
|
else {
|
|
1606
1871
|
var running = "";
|
|
1607
1872
|
for (var r = 0; r < list.length; r++) {
|
|
@@ -1624,7 +1889,7 @@ window.__ModuleLoader__.load({
|
|
|
1624
1889
|
} else if (pinned.length) {
|
|
1625
1890
|
for (var i = 0; i < pinned.length; i++) {
|
|
1626
1891
|
var pl = sessionTodos(pinned[i]);
|
|
1627
|
-
if (pl && countsOf(pl).active > 0) { sub =
|
|
1892
|
+
if (pl && countsOf(pl).active > 0) { sub = (sessionTitle(pinned[i]) || "固定会话") + " 进行中"; break; }
|
|
1628
1893
|
}
|
|
1629
1894
|
if (!sub) sub = "📋 暂无进行中任务";
|
|
1630
1895
|
} else {
|
|
@@ -1665,6 +1930,35 @@ window.__ModuleLoader__.load({
|
|
|
1665
1930
|
: "Todo 悬浮球 — 当前会话暂无任务(左键展开 · 右键胶囊 · 可拖动)");
|
|
1666
1931
|
}
|
|
1667
1932
|
|
|
1933
|
+
// Forced ink sync (m01506/m01527/m01766): paint the root class (CSS does
|
|
1934
|
+
// the colouring) and the header button face.
|
|
1935
|
+
function syncInk() {
|
|
1936
|
+
if (!ui.root) return;
|
|
1937
|
+
var m = (inkMode === "black" || inkMode === "white") ? inkMode : "auto";
|
|
1938
|
+
// m02830: official skins (129/130/auto) force ink by theme and lock the button
|
|
1939
|
+
var officialLocked = false;
|
|
1940
|
+
try {
|
|
1941
|
+
var sidNow = (typeof SK !== "undefined" && SK) ? mySkinId() : "";
|
|
1942
|
+
if (isOfficialSkin(sidNow)) {
|
|
1943
|
+
officialLocked = true;
|
|
1944
|
+
m = sidNow === "130" ? "black" : "white";
|
|
1945
|
+
}
|
|
1946
|
+
} catch (e2) {}
|
|
1947
|
+
if (ui.inkBtn) ui.inkBtn.classList.toggle("tfb-ink-lock", officialLocked);
|
|
1948
|
+
try {
|
|
1949
|
+
ui.root.classList.remove("tfb-ink-black", "tfb-ink-white");
|
|
1950
|
+
if (m !== "auto") ui.root.classList.add("tfb-ink-" + m);
|
|
1951
|
+
} catch (e) {}
|
|
1952
|
+
if (ui.inkBtn) {
|
|
1953
|
+
ui.inkBtn.classList.remove("tfb-ink-auto", "tfb-ink-black", "tfb-ink-white");
|
|
1954
|
+
ui.inkBtn.classList.add("tfb-ink-" + m);
|
|
1955
|
+
ui.inkBtn.innerHTML = m === "black" ? TFB_ICONS.inkBlack : m === "white" ? TFB_ICONS.inkWhite : TFB_ICONS.inkAuto;
|
|
1956
|
+
ui.inkBtn.title = "\u5f3a\u5236\u5168\u90e8\u6587\u5b57\u989c\u8272\uff1a" +
|
|
1957
|
+
(m === "black" ? "\u9ed1\u8272" : m === "white" ? "\u767d\u8272" : "\u81ea\u52a8\uff08\u8ddf\u968f\u76ae\u80a4\uff09") +
|
|
1958
|
+
"\uff08\u9762\u677f\u5185\u5916\u6240\u6709\u6587\u5b57\uff1b\u70b9\u51fb\u5207\u6362\uff1a\u81ea\u52a8 \u2192 \u9ed1 \u2192 \u767d\uff09";
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1668
1962
|
var layoutHz = false;
|
|
1669
1963
|
try { layoutHz = localStorage.getItem("dsh-todo-float-ball-layout") === "1"; } catch (e) {}
|
|
1670
1964
|
|
|
@@ -1673,6 +1967,7 @@ window.__ModuleLoader__.load({
|
|
|
1673
1967
|
// visibility restore) rather than a data refresh. Data-driven renders and
|
|
1674
1968
|
// the 2s watchdog call it plain, so the flicker guard keeps working.
|
|
1675
1969
|
function render(force) {
|
|
1970
|
+
syncInk();
|
|
1676
1971
|
renderBall(force);
|
|
1677
1972
|
renderList();
|
|
1678
1973
|
if (expanded && ui.panel) positionPanel();
|
|
@@ -1766,20 +2061,27 @@ window.__ModuleLoader__.load({
|
|
|
1766
2061
|
root.className = "tfb-root";
|
|
1767
2062
|
root.innerHTML =
|
|
1768
2063
|
'<button class="tfb-ball tfb-idle" type="button">' +
|
|
1769
|
-
'<span class="tfb-orb-band"></span>' +
|
|
1770
2064
|
'<span class="tfb-orb-rim"></span>' +
|
|
2065
|
+
'<span class="tfb-orb-band"></span>' +
|
|
1771
2066
|
'<span class="tfb-ring"></span>' +
|
|
1772
2067
|
'<span class="tfb-label">✓</span><span class="tfb-sub"></span>' +
|
|
1773
2068
|
"</button>" +
|
|
1774
2069
|
'<div class="tfb-panel">' +
|
|
1775
2070
|
'<div class="tfb-head">' +
|
|
1776
|
-
'<
|
|
1777
|
-
|
|
1778
|
-
|
|
2071
|
+
'<div class="tfb-head-row1">' +
|
|
2072
|
+
'<span class="tfb-ctitle"></span>' +
|
|
2073
|
+
"</div>" +
|
|
2074
|
+
'<div class="tfb-head-row2">' +
|
|
1779
2075
|
'<span class="tfb-summary"></span>' +
|
|
1780
|
-
'<button class="tfb-btn" data-act="
|
|
1781
|
-
'<button class="tfb-btn" data-act="
|
|
1782
|
-
'<button class="tfb-btn" data-act="
|
|
2076
|
+
'<button class="tfb-btn" data-act="toggleLayout" title="切换面板布局:上下/左右" type="button">' + TFB_ICONS.layout + '</button>' +
|
|
2077
|
+
'<button class="tfb-btn" data-act="pin" type="button" title="固定会话">' + TFB_ICONS.pin + '</button>' +
|
|
2078
|
+
'<button class="tfb-btn" data-act="resetPos" type="button" title="归位到右下角">' + TFB_ICONS.target + '</button>' +
|
|
2079
|
+
'<button class="tfb-btn" data-act="themeMenu" type="button" title="切换皮肤">' + TFB_ICONS.palette + '</button>' +
|
|
2080
|
+
'<button class="tfb-btn tfb-ink-btn" data-act="ink" type="button" title="强制全部文字颜色:自动 / 黑 / 白">' + TFB_ICONS.inkAuto + '</button>' +
|
|
2081
|
+
'<button class="tfb-btn" data-act="checkUpdate" data-dsh-upd="dsh-todo-float-ball" type="button" title="检查插件更新">↑</button>' +
|
|
2082
|
+
'<button class="tfb-btn" data-act="close" type="button" title="折叠">' + TFB_ICONS.close + '</button>' +
|
|
2083
|
+
'<a class="tfb-btn tfb-star-link" href="https://github.com/loyalchiiina/dsh-todo-float-ball" target="_blank" rel="noopener" title="去 GitHub 点个 Star ⭐">' + TFB_ICONS.star + '</a>' +
|
|
2084
|
+
"</div>" +
|
|
1783
2085
|
"</div>" +
|
|
1784
2086
|
'<div class="tfb-theme-menu"></div>' +
|
|
1785
2087
|
'<div class="tfb-col tfb-col-cur">' +
|
|
@@ -1787,10 +2089,11 @@ window.__ModuleLoader__.load({
|
|
|
1787
2089
|
'<ul class="tfb-list"></ul>' +
|
|
1788
2090
|
"</div>" +
|
|
1789
2091
|
'<div class="tfb-col tfb-col-pin">' +
|
|
1790
|
-
'<div class="tfb-colcap" data-cap="pin"
|
|
2092
|
+
'<div class="tfb-colcap" data-cap="pin">固定会话</div>' +
|
|
1791
2093
|
'<div class="tfb-pinsec"></div>' +
|
|
1792
2094
|
"</div>" +
|
|
1793
|
-
|
|
2095
|
+
// 2026-10-28 (m01008): hint line removed — every action already has a
|
|
2096
|
+
// hover title. 🎯 归位 moved into header row2 as an icon-only button.
|
|
1794
2097
|
"</div>";
|
|
1795
2098
|
shadow.appendChild(root);
|
|
1796
2099
|
|
|
@@ -1815,6 +2118,7 @@ window.__ModuleLoader__.load({
|
|
|
1815
2118
|
ui.ctitle = root.querySelector(".tfb-ctitle");
|
|
1816
2119
|
ui.summary = root.querySelector(".tfb-summary");
|
|
1817
2120
|
ui.pinBtn = root.querySelector('[data-act="pin"]');
|
|
2121
|
+
ui.inkBtn = root.querySelector('[data-act="ink"]');
|
|
1818
2122
|
ui.pinSec = root.querySelector(".tfb-pinsec");
|
|
1819
2123
|
ui.capCur = root.querySelector('[data-cap="cur"]');
|
|
1820
2124
|
ui.themeMenu = root.querySelector(".tfb-theme-menu");
|
|
@@ -1903,6 +2207,7 @@ window.__ModuleLoader__.load({
|
|
|
1903
2207
|
return;
|
|
1904
2208
|
}
|
|
1905
2209
|
var act = t.getAttribute("data-act");
|
|
2210
|
+
if (act === "checkUpdate") { dshUpdClick(t, "dsh-todo-float-ball"); return; }
|
|
1906
2211
|
var sid = t.getAttribute("data-sid");
|
|
1907
2212
|
// Plan-A9 back-compat: normalize the legacy Plan-A8 fold action names
|
|
1908
2213
|
// onto the unified ones before dispatch (see ACT_ALIAS).
|
|
@@ -1911,6 +2216,16 @@ window.__ModuleLoader__.load({
|
|
|
1911
2216
|
else if (act === "pin") {
|
|
1912
2217
|
if (!currentSid) return;
|
|
1913
2218
|
if (isPinned(currentSid)) unpin(currentSid); else pin(currentSid);
|
|
2219
|
+
} else if (act === "ink") {
|
|
2220
|
+
// Cycle the forced ball-text colour: auto -> black -> white -> auto.
|
|
2221
|
+
e.stopPropagation();
|
|
2222
|
+
try {
|
|
2223
|
+
var sidLock = (typeof SK !== "undefined" && SK) ? mySkinId() : "";
|
|
2224
|
+
if (isOfficialSkin(sidLock)) { syncInk(); return; } // m02830 locked
|
|
2225
|
+
} catch (eL) {}
|
|
2226
|
+
inkMode = inkMode === "black" ? "white" : inkMode === "white" ? "auto" : "black";
|
|
2227
|
+
try { localStorage.setItem(INK_KEY, inkMode); } catch (err) {}
|
|
2228
|
+
syncInk();
|
|
1914
2229
|
} else if (act === "resetPos") {
|
|
1915
2230
|
try { localStorage.removeItem(POS_KEY); } catch (err) {}
|
|
1916
2231
|
if (ui.ball) { ui.ball.style.left = "auto"; ui.ball.style.top = "auto"; ui.ball.style.right = "18px"; ui.ball.style.bottom = "18px"; }
|
|
@@ -2008,22 +2323,35 @@ window.__ModuleLoader__.load({
|
|
|
2008
2323
|
setTimeout(function () { try { t.textContent = "📋"; } catch (e7) {} }, 800);
|
|
2009
2324
|
} catch (err7) {}
|
|
2010
2325
|
} else if (act === "themeMenu") {
|
|
2011
|
-
// toggle the skin picker inside the panel
|
|
2012
|
-
if (ui.themeMenu)
|
|
2326
|
+
// toggle the skin picker inside the panel (extras are fetched on first open)
|
|
2327
|
+
if (ui.themeMenu) {
|
|
2328
|
+
var _opening = !ui.themeMenu.classList.contains("tfb-open");
|
|
2329
|
+
ui.themeMenu.classList.toggle("tfb-open");
|
|
2330
|
+
renderThemeMenu();
|
|
2331
|
+
if (_opening && EXTRAS_STATE !== "ok") {
|
|
2332
|
+
ensureSkinExtras().then(function () { renderThemeMenu(); });
|
|
2333
|
+
}
|
|
2334
|
+
} else {
|
|
2335
|
+
renderThemeMenu();
|
|
2336
|
+
}
|
|
2337
|
+
e.stopPropagation();
|
|
2338
|
+
} else if (act === "toggleSync") {
|
|
2339
|
+
setSyncOn(!isSyncOn());
|
|
2340
|
+
applyThemeNow();
|
|
2013
2341
|
renderThemeMenu();
|
|
2014
2342
|
e.stopPropagation();
|
|
2015
2343
|
} else if (act === "setTheme" && sid) {
|
|
2016
|
-
// pick a skin: "legacy:<id>"
|
|
2344
|
+
// pick a skin: shared catalog id (classic "legacy:<id>" menu entries removed 2026-10-29)
|
|
2017
2345
|
if (sid.indexOf("legacy:") === 0) {
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2346
|
+
// legacy classic skins were removed from the menu; ignore stale ids
|
|
2347
|
+
} else if (sid === "auto" && SK) {
|
|
2348
|
+
legacyPicked = false;
|
|
2349
|
+
setSkinClassic(false);
|
|
2350
|
+
pickSkin("auto");
|
|
2023
2351
|
} else if (SK && SK.BY_ID[sid]) {
|
|
2024
|
-
currentSkinId = sid;
|
|
2025
2352
|
legacyPicked = false;
|
|
2026
|
-
|
|
2353
|
+
setSkinClassic(false);
|
|
2354
|
+
pickSkin(sid);
|
|
2027
2355
|
}
|
|
2028
2356
|
try {
|
|
2029
2357
|
refreshStyleSheet();
|
|
@@ -2097,11 +2425,12 @@ window.__ModuleLoader__.load({
|
|
|
2097
2425
|
legacyPicked = true;
|
|
2098
2426
|
currentTheme = theme;
|
|
2099
2427
|
try { localStorage.setItem(THEME_KEY, theme); } catch (err) {}
|
|
2100
|
-
|
|
2428
|
+
setSkinClassic(true);
|
|
2101
2429
|
applyThemeNow();
|
|
2102
2430
|
return;
|
|
2103
2431
|
}
|
|
2104
|
-
if (SK && SK.BY_ID[theme]) { SK.setSkin(theme); return; }
|
|
2432
|
+
if (SK && SK.BY_ID[theme]) { setSkinClassic(false); SK.setSkin(theme); return; }
|
|
2433
|
+
if (theme === "auto") { setSkinClassic(false); SK.setSkin("auto"); return; }
|
|
2105
2434
|
return;
|
|
2106
2435
|
}, true);
|
|
2107
2436
|
}
|
|
@@ -2153,9 +2482,9 @@ window.__ModuleLoader__.load({
|
|
|
2153
2482
|
} catch (e) {}
|
|
2154
2483
|
try {
|
|
2155
2484
|
if (SK) {
|
|
2485
|
+
migrateLegacySharedKey();
|
|
2156
2486
|
var skv = readSharedKey();
|
|
2157
|
-
if (
|
|
2158
|
-
else if (skv === "legacy" && currentSkinId) applyThemeNow();
|
|
2487
|
+
if (isSyncOn() && skv && SK.BY_ID[skv] && skv !== currentSkinId) applyThemeNow();
|
|
2159
2488
|
}
|
|
2160
2489
|
} catch (e2) {}
|
|
2161
2490
|
}, 2000);
|
|
@@ -2202,10 +2531,9 @@ window.__ModuleLoader__.load({
|
|
|
2202
2531
|
// the sibling settings section can invoke it synchronously on click.
|
|
2203
2532
|
function applyThemeNow() {
|
|
2204
2533
|
try {
|
|
2205
|
-
|
|
2206
|
-
if (
|
|
2207
|
-
else if (
|
|
2208
|
-
else if ((!raw || (SK && raw === SK.DEFAULT_ID)) && SK && !legacyPicked) { currentSkinId = SK.DEFAULT_ID; }
|
|
2534
|
+
migrateLegacySharedKey();
|
|
2535
|
+
if (isSkinClassic()) { currentSkinId = null; legacyPicked = true; }
|
|
2536
|
+
else if (SK) { currentSkinId = mySkinId(); legacyPicked = false; }
|
|
2209
2537
|
} catch (e) {}
|
|
2210
2538
|
if (!currentSkinId) {
|
|
2211
2539
|
var v = getCfg(THEME_KEY, DEFAULTS.theme);
|
|
@@ -2229,6 +2557,10 @@ window.__ModuleLoader__.load({
|
|
|
2229
2557
|
loadHidden();
|
|
2230
2558
|
loadTheme();
|
|
2231
2559
|
try { capsule = getCfg(CAPSULE_KEY, DEFAULTS.capsule) === "1"; } catch (e) {}
|
|
2560
|
+
try {
|
|
2561
|
+
var inkRaw = getCfg(INK_KEY, DEFAULTS.ink);
|
|
2562
|
+
inkMode = (inkRaw === "black" || inkRaw === "white") ? inkRaw : "auto";
|
|
2563
|
+
} catch (e) { inkMode = "auto"; }
|
|
2232
2564
|
restorePersisted();
|
|
2233
2565
|
if (ui.panel && layoutHz) ui.panel.classList.add("tfb-hz");
|
|
2234
2566
|
// primary data channel: the official sessions service
|