dsh-todo-float-ball 0.14.5 → 0.14.7
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 +140 -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 +186 -178
- package/docs/DATA-CHANNELS.md +32 -4
- 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 +531 -167
- package/package.json +7 -5
- package/README-zh.md +0 -101
- package/README.zh.md +0 -227
- 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
|
@@ -83,10 +83,13 @@ window.__ModuleLoader__.load({
|
|
|
83
83
|
EX_ORDER.push("27");
|
|
84
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
85
|
EX_ORDER.push("28");
|
|
86
|
+
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}"};
|
|
87
|
+
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
88
|
var KIND_LABEL={deep:"浓郁深底",muted:"尘埃灰调",soft:"柔光深底",neutral:"中性点缀",light:"浅色纸面"};
|
|
87
89
|
var TINT="%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}";
|
|
88
90
|
var ALL=[],BY_ID={};
|
|
89
91
|
(function build(){
|
|
92
|
+
["129","130"].forEach(function(id){var s=EX[id];if(!s)return;s.id=id;s.kind="special";ALL.push(s);BY_ID[id]=s;});
|
|
90
93
|
EX_ORDER.forEach(function(id){var s=EX[id];s.id=id;s.kind="special";ALL.push(s);BY_ID[id]=s;});
|
|
91
94
|
var order=["deep","muted","soft","neutral","light"],no=28;
|
|
92
95
|
order.forEach(function(kind){
|
|
@@ -97,28 +100,44 @@ window.__ModuleLoader__.load({
|
|
|
97
100
|
ALL.push(s);BY_ID[id]=s;
|
|
98
101
|
});
|
|
99
102
|
});
|
|
103
|
+
// 统一显示序号(2026-10-29 用户要求):官方深色=1、官方浅色=2、其余按顺序 3..N
|
|
104
|
+
// 注意:只改显示用 no 字段,内部 id 保持不变(localStorage 兼容)
|
|
105
|
+
ALL.forEach(function(s,idx){ s.no = String(idx+1); });
|
|
100
106
|
})();
|
|
101
|
-
var KEY="dsh-ball-skin",DEFAULT_ID="
|
|
102
|
-
function
|
|
107
|
+
var KEY="dsh-ball-skin",AUTO_ID="auto",OFFICIAL_DARK="129",OFFICIAL_LIGHT="130",DEFAULT_ID="auto";
|
|
108
|
+
function isDark(){try{return !!(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);}catch(e){return true;}}
|
|
109
|
+
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;}
|
|
110
|
+
function resolve(id){
|
|
111
|
+
if(!id||id===AUTO_ID)return isDark()?OFFICIAL_DARK:OFFICIAL_LIGHT;
|
|
112
|
+
if(BY_ID[id])return id;
|
|
113
|
+
return isDark()?OFFICIAL_DARK:OFFICIAL_LIGHT;
|
|
114
|
+
}
|
|
115
|
+
function getId(){return resolve(pref());}
|
|
103
116
|
function setSkin(id){
|
|
104
|
-
if(
|
|
117
|
+
if(id!==AUTO_ID&&id!=="legacy"&&!BY_ID[id])return false;
|
|
105
118
|
try{localStorage.setItem(KEY,id);}catch(e){}
|
|
106
119
|
var hooks=window.__dshBallSkinHooks||[];
|
|
107
120
|
for(var i=0;i<hooks.length;i++){try{hooks[i](id,BY_ID[id]);}catch(e){}}
|
|
108
121
|
try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:id}}));}catch(e){}
|
|
109
122
|
return true;
|
|
110
123
|
}
|
|
111
|
-
function varsCss(sel,id){var s=BY_ID[id]||
|
|
124
|
+
function varsCss(sel,id){var s=BY_ID[resolve(id)]||ALL[0];var out=sel+"{";
|
|
112
125
|
for(var k in s.vars){out+="--"+k+":"+s.vars[k]+";";}
|
|
113
126
|
return out+"}";}
|
|
114
127
|
function varsAll(sel){return varsCss(sel,getId());}
|
|
115
|
-
function fx(id,sel){var s=BY_ID[id]||
|
|
128
|
+
function fx(id,sel){var s=BY_ID[resolve(id)]||ALL[0];var out=[];
|
|
116
129
|
if(s.rim)out.push(s.rim.split("%RIM%").join(sel.RIM));
|
|
117
130
|
if(s.band)out.push(s.band.split("%BAND%").join(sel.BAND));
|
|
118
131
|
if(s.extra)out.push(s.extra.split("%B%").join(sel.B));
|
|
119
132
|
return out.join("\n");}
|
|
120
133
|
function groups(){var g=[],seen={};ALL.forEach(function(s){if(!seen[s.group]){seen[s.group]=true;g.push(s.group);}});return g;}
|
|
121
|
-
window.__DSH_BALL_SKINS={ALL:ALL,BY_ID:BY_ID,getId:getId,setSkin:setSkin,varsCss:varsCss,varsAll:varsAll,fx:fx,groups:groups,KIND_LABEL:KIND_LABEL,KEY:KEY,DEFAULT_ID:DEFAULT_ID};
|
|
134
|
+
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};
|
|
135
|
+
// 跟随客户端深/浅色:DSH 用 prefers-color-scheme(无 data-theme),变化时通知三球重绘
|
|
136
|
+
try{
|
|
137
|
+
var _mq=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;
|
|
138
|
+
function _onScheme(){try{window.dispatchEvent(new CustomEvent("dsh-ball-skin-change",{detail:{id:getId(),auto:true}}));}catch(e){}}
|
|
139
|
+
if(_mq){if(_mq.addEventListener)_mq.addEventListener("change",_onScheme);else if(_mq.addListener)_mq.addListener(_onScheme);}
|
|
140
|
+
}catch(e){}
|
|
122
141
|
})();
|
|
123
142
|
|
|
124
143
|
// ============================================================
|
|
@@ -158,7 +177,23 @@ window.__ModuleLoader__.load({
|
|
|
158
177
|
var POS_KEY = "dsh-todo-float-ball-pos";
|
|
159
178
|
var PIN_KEY = "dsh-todo-float-ball-pinned";
|
|
160
179
|
var CAPSULE_KEY = "dsh-todo-float-ball-capsule";
|
|
161
|
-
var
|
|
180
|
+
var TFB_ICONS = {
|
|
181
|
+
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>',
|
|
182
|
+
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>',
|
|
183
|
+
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>',
|
|
184
|
+
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>',
|
|
185
|
+
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>',
|
|
186
|
+
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>',
|
|
187
|
+
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>',
|
|
188
|
+
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>',
|
|
189
|
+
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>',
|
|
190
|
+
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>',
|
|
191
|
+
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>'
|
|
192
|
+
};
|
|
193
|
+
var INK_KEY = "dsh-todo-float-ball-ink"; // text colour force: auto|black|white
|
|
194
|
+
var OFFICIAL_INK_IDS = { "129": 1, "130": 1, "auto": 1 }; // official skins force ink (m02830)
|
|
195
|
+
function isOfficialSkin(sid) { return !!(sid && OFFICIAL_INK_IDS[sid]); }
|
|
196
|
+
var MAX_CONTENT = 600;
|
|
162
197
|
var MAX_ITEMS = 100; // Plan-A history merge soft cap (see setSessionTodos)
|
|
163
198
|
|
|
164
199
|
// ============================================================
|
|
@@ -178,8 +213,13 @@ window.__ModuleLoader__.load({
|
|
|
178
213
|
var DEFAULTS = {
|
|
179
214
|
ballVisible: true, // dsh-tfb-ball-visible: ball always shown
|
|
180
215
|
theme: "graphite", // dsh-tfb-theme: graphite skin
|
|
181
|
-
capsule: false
|
|
216
|
+
capsule: false, // dsh-todo-float-ball-capsule: round ball, not pill
|
|
217
|
+
ink: "auto" // dsh-todo-float-ball-ink: auto|black|white (all text)
|
|
182
218
|
};
|
|
219
|
+
// Forced ball-text colour (user request m01506/m01527/m01534): the float
|
|
220
|
+
// BALL only (label + sub + capsule text), never the panel. "auto" keeps
|
|
221
|
+
// each skin's own --lbc; "black"/"white" override it for readability.
|
|
222
|
+
var inkMode = "auto";
|
|
183
223
|
// Position default = bottom-right. The CSS already renders
|
|
184
224
|
// right:18px;bottom:18px, but we also SEED the key on first run (user
|
|
185
225
|
// requirement: the value must exist and stay editable). The seeded point
|
|
@@ -187,7 +227,7 @@ window.__ModuleLoader__.load({
|
|
|
187
227
|
// viewport; the restore path re-clamps and silently falls back to the CSS
|
|
188
228
|
// default when the stored point no longer fits (smaller window, or the
|
|
189
229
|
// wider capsule pill), so a stale seed can never park the ball off-screen.
|
|
190
|
-
var POS_BALL_SIZE =
|
|
230
|
+
var POS_BALL_SIZE = 34;
|
|
191
231
|
var POS_MARGIN = 18;
|
|
192
232
|
|
|
193
233
|
function seedValue(def) {
|
|
@@ -218,6 +258,7 @@ window.__ModuleLoader__.load({
|
|
|
218
258
|
getCfg(BALL_VIS_KEY, DEFAULTS.ballVisible);
|
|
219
259
|
getCfg(THEME_KEY, DEFAULTS.theme);
|
|
220
260
|
getCfg(CAPSULE_KEY, DEFAULTS.capsule);
|
|
261
|
+
getCfg(INK_KEY, DEFAULTS.ink);
|
|
221
262
|
seedDefaultPos();
|
|
222
263
|
}
|
|
223
264
|
// Bottom-right corner for the CURRENT viewport, clamped so the ball is
|
|
@@ -505,7 +546,7 @@ window.__ModuleLoader__.load({
|
|
|
505
546
|
for (var sid in bySession) {
|
|
506
547
|
var b = bySession[sid];
|
|
507
548
|
if (b && b.todos && b.todos.length) {
|
|
508
|
-
out[sid] = { todos: b.todos, sig: b.sig, at: b.at || 0, snapLen: b.snapLen || 0 };
|
|
549
|
+
out[sid] = { todos: b.todos, sig: b.sig, at: b.at || 0, snapLen: b.snapLen || 0, primary: !!b.primary };
|
|
509
550
|
}
|
|
510
551
|
}
|
|
511
552
|
localStorage.setItem(PERSIST_KEY, JSON.stringify(out));
|
|
@@ -543,7 +584,7 @@ window.__ModuleLoader__.load({
|
|
|
543
584
|
if (planKey(mem.todos) !== planKey(norm)) continue;
|
|
544
585
|
if (progressScore(norm, rec.at) <= progressScore(mem.todos, mem.at)) continue;
|
|
545
586
|
}
|
|
546
|
-
bySession[sid] = { todos: norm, sig: rec.sig || norm.map(function (t) { return t.status + "|" + t.content; }).join("\n"), stale: false, at: rec.at || 0, snapLen: rec.snapLen || norm.length };
|
|
587
|
+
bySession[sid] = { todos: norm, sig: rec.sig || norm.map(function (t) { return t.status + "|" + t.content; }).join("\n"), stale: false, at: rec.at || 0, snapLen: rec.snapLen || norm.length, primary: !!rec.primary };
|
|
547
588
|
}
|
|
548
589
|
} catch (e) {}
|
|
549
590
|
}
|
|
@@ -583,7 +624,26 @@ window.__ModuleLoader__.load({
|
|
|
583
624
|
// lists a previously hidden item again, that row is live again and
|
|
584
625
|
// un-hides. The ✕ keeps silencing rows that merely sit in the merged
|
|
585
626
|
// history / unchanged snapshot.
|
|
586
|
-
if (b && b.sig === sig) {
|
|
627
|
+
if (b && b.sig === sig) {
|
|
628
|
+
b.stale = false;
|
|
629
|
+
// v0.14.7: an identical snapshot still carries an authoritative
|
|
630
|
+
// verdict about where the live plan ends. Before this, a record whose
|
|
631
|
+
// snapLen had been inflated by an older frame kept the wrong boundary
|
|
632
|
+
// forever — the signature matched, we returned early, and the stale
|
|
633
|
+
// boundary kept counting merged history as live tasks. The signature
|
|
634
|
+
// dedupe exists to save work, NOT to freeze the boundary.
|
|
635
|
+
if (!fromFallback) {
|
|
636
|
+
var fixLen = Math.min(norm.length, (b.todos && b.todos.length) || 0);
|
|
637
|
+
if (b.snapLen !== fixLen || !b.primary) {
|
|
638
|
+
b.snapLen = fixLen;
|
|
639
|
+
b.primary = true;
|
|
640
|
+
b.at = Date.now();
|
|
641
|
+
render();
|
|
642
|
+
persistSoon();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return false;
|
|
646
|
+
}
|
|
587
647
|
var hid0 = hiddenFor(sid);
|
|
588
648
|
for (var h0 in hid0) {
|
|
589
649
|
for (var ni0 = 0; ni0 < norm.length; ni0++) {
|
|
@@ -634,23 +694,36 @@ window.__ModuleLoader__.load({
|
|
|
634
694
|
// collapsed (completed-only) by renderList; the snapshot itself stays
|
|
635
695
|
// fully visible.
|
|
636
696
|
//
|
|
637
|
-
//
|
|
638
|
-
//
|
|
639
|
-
//
|
|
640
|
-
//
|
|
641
|
-
//
|
|
642
|
-
//
|
|
643
|
-
//
|
|
644
|
-
//
|
|
645
|
-
//
|
|
697
|
+
// History of this variable, because it has now been changed twice:
|
|
698
|
+
//
|
|
699
|
+
// 2026-09-28 (flicker fix) made it a monotonic high-water mark after the
|
|
700
|
+
// ball was seen flipping 0/1 -> 7/9 -> 0/1. The real cause of that
|
|
701
|
+
// flicker was the DOM panel writing a one-row "plan" in between the
|
|
702
|
+
// service's full snapshots.
|
|
703
|
+
//
|
|
704
|
+
// v0.14.6 (2026-10-19, user bug report) reverses the monotonic part. The
|
|
705
|
+
// mark never shrank, so once one long round had inflated it, every later
|
|
706
|
+
// round kept counting the older rows as live tasks. Measured: the
|
|
707
|
+
// official panel held 6 todos (0 done) while the ball reported 9/18 —
|
|
708
|
+
// done and total both wrong, and no later frame could repair it because
|
|
709
|
+
// the boundary only ever moved up.
|
|
710
|
+
//
|
|
711
|
+
// The flicker is prevented at its actual source now: readOfficialPanel()
|
|
712
|
+
// bails out via hasPrimaryData() whenever the authoritative channel has
|
|
713
|
+
// already spoken for the session, so that one-row frame can no longer
|
|
714
|
+
// reach this function at all.
|
|
715
|
+
//
|
|
716
|
+
// Rule: todo_write is a whole-list replacement, so an authoritative frame
|
|
717
|
+
// IS the live plan and everything merged in behind it is history. The DOM
|
|
718
|
+
// fallback never enlarges the boundary, and defers to an existing mark
|
|
719
|
+
// when the service already gave us one.
|
|
646
720
|
var prevSnap = (b && typeof b.snapLen === "number") ? b.snapLen : 0;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
: Math.min(Math.max(prevSnap, norm.length), merged.length);
|
|
721
|
+
var snapLen;
|
|
722
|
+
if (fromFallback) {
|
|
723
|
+
snapLen = Math.min(prevSnap > 0 ? prevSnap : norm.length, merged.length);
|
|
724
|
+
} else {
|
|
725
|
+
snapLen = Math.min(norm.length, merged.length);
|
|
726
|
+
}
|
|
654
727
|
// FLICKER FIX: `primary` marks a row written by the AUTHORITATIVE
|
|
655
728
|
// sessions channel. The DOM fallback must neither set it nor clear it
|
|
656
729
|
// (once the service has spoken for this session, it stays authoritative
|
|
@@ -887,6 +960,23 @@ window.__ModuleLoader__.load({
|
|
|
887
960
|
var currentTheme = DEFAULTS.theme;
|
|
888
961
|
var currentSkinId = null; // active unified skin (see skin system below)
|
|
889
962
|
var legacyPicked = false; // user explicitly chose a classic skin
|
|
963
|
+
// 每个球各有自己的「经典(旧版)皮肤」开关,绝不写共享键。
|
|
964
|
+
// 旧实现把 localStorage["dsh-ball-skin"] 写成 "legacy",那是全局键:
|
|
965
|
+
// todo 一选经典,另外两个球就被迫解析成官方皮肤(关联性破绽)。
|
|
966
|
+
var SKIN_CLASSIC_KEY = "dsh-ball-skin-classic-todo";
|
|
967
|
+
function isSkinClassic() { try { return localStorage.getItem(SKIN_CLASSIC_KEY) === "1"; } catch (e) { return false; } }
|
|
968
|
+
function setSkinClassic(on) {
|
|
969
|
+
try { if (on) localStorage.setItem(SKIN_CLASSIC_KEY, "1"); else localStorage.removeItem(SKIN_CLASSIC_KEY); } catch (e) {}
|
|
970
|
+
}
|
|
971
|
+
// 旧数据迁移:曾经写进共享键的 "legacy" 收回成自己的开关,共享键还给 auto
|
|
972
|
+
function migrateLegacySharedKey() {
|
|
973
|
+
try {
|
|
974
|
+
if (readSharedKey() === "legacy") {
|
|
975
|
+
setSkinClassic(true);
|
|
976
|
+
localStorage.setItem(SHARED_KEY, "auto");
|
|
977
|
+
}
|
|
978
|
+
} catch (e) {}
|
|
979
|
+
}
|
|
890
980
|
// single source of truth for "is this a known skin?"
|
|
891
981
|
function isTheme(t) {
|
|
892
982
|
return t === "nebula" || t === "graphite" || t === "blue" || t === "glass" || t === "nebB" || t === "nebC";
|
|
@@ -896,10 +986,14 @@ window.__ModuleLoader__.load({
|
|
|
896
986
|
var v = getCfg(THEME_KEY, DEFAULTS.theme);
|
|
897
987
|
currentTheme = isTheme(v) ? v : DEFAULTS.theme;
|
|
898
988
|
try {
|
|
899
|
-
|
|
900
|
-
if (
|
|
901
|
-
|
|
902
|
-
|
|
989
|
+
migrateLegacySharedKey();
|
|
990
|
+
if (isSkinClassic()) {
|
|
991
|
+
// classic skins were removed from the menu (2026-10-29); migrate to unified skin
|
|
992
|
+
try { localStorage.removeItem(SKIN_CLASSIC_KEY); } catch (e9) {}
|
|
993
|
+
legacyPicked = false;
|
|
994
|
+
}
|
|
995
|
+
legacyPicked = false;
|
|
996
|
+
currentSkinId = SK ? mySkinId() : null;
|
|
903
997
|
} catch (e) {}
|
|
904
998
|
}
|
|
905
999
|
function setTheme(t) {
|
|
@@ -915,6 +1009,45 @@ window.__ModuleLoader__.load({
|
|
|
915
1009
|
var SK = window.__DSH_BALL_SKINS || null;
|
|
916
1010
|
var SHARED_KEY = SK ? SK.KEY : "dsh-ball-skin";
|
|
917
1011
|
function readSharedKey() { try { return localStorage.getItem(SHARED_KEY); } catch (e) { return null; } }
|
|
1012
|
+
|
|
1013
|
+
// ---------- 三球皮肤同步开关 (m04045) ----------
|
|
1014
|
+
// 勾选 = 跟随全局 dsh-ball-skin(三球同款);不勾 = 本球独立皮肤,不随全局变化。
|
|
1015
|
+
var SYNC_ON_KEY = "dsh-ball-skin-sync-todo";
|
|
1016
|
+
var SOLO_ID_KEY = "dsh-ball-skin-solo-todo";
|
|
1017
|
+
function isSyncOn() {
|
|
1018
|
+
try { var v = localStorage.getItem(SYNC_ON_KEY); return v === null ? true : v !== "0"; } catch (e) { return true; }
|
|
1019
|
+
}
|
|
1020
|
+
function setSyncOn(on) {
|
|
1021
|
+
try {
|
|
1022
|
+
localStorage.setItem(SYNC_ON_KEY, on ? "1" : "0");
|
|
1023
|
+
if (on) { var g = readSharedKey(); if (g) localStorage.setItem(SOLO_ID_KEY, g); }
|
|
1024
|
+
else if (!localStorage.getItem(SOLO_ID_KEY)) { var g2 = readSharedKey(); if (g2) localStorage.setItem(SOLO_ID_KEY, g2); }
|
|
1025
|
+
} catch (e) {}
|
|
1026
|
+
}
|
|
1027
|
+
function soloResolve(id) {
|
|
1028
|
+
if (!SK) return null;
|
|
1029
|
+
if (!id || id === "auto") return SK.resolve("auto");
|
|
1030
|
+
return SK.BY_ID[id] ? id : SK.resolve("auto");
|
|
1031
|
+
}
|
|
1032
|
+
function mySkinId() {
|
|
1033
|
+
if (!SK) return null;
|
|
1034
|
+
if (isSyncOn()) return SK.getId();
|
|
1035
|
+
try { return soloResolve(localStorage.getItem(SOLO_ID_KEY)) || SK.getId(); } catch (e) { return SK.getId(); }
|
|
1036
|
+
}
|
|
1037
|
+
function mySkinPref() {
|
|
1038
|
+
if (!SK) return "";
|
|
1039
|
+
if (isSyncOn()) return SK.getPref ? SK.getPref() : "";
|
|
1040
|
+
try { return localStorage.getItem(SOLO_ID_KEY) || (SK.getPref ? SK.getPref() : ""); } catch (e) { return ""; }
|
|
1041
|
+
}
|
|
1042
|
+
function pickSkin(id) {
|
|
1043
|
+
if (!SK) return;
|
|
1044
|
+
if (isSyncOn()) { SK.setSkin(id); return; }
|
|
1045
|
+
try { localStorage.setItem(SOLO_ID_KEY, id); } catch (e) {}
|
|
1046
|
+
currentSkinId = soloResolve(id);
|
|
1047
|
+
try { refreshStyleSheet(); } catch (e) {}
|
|
1048
|
+
try { render(true); } catch (e) {}
|
|
1049
|
+
try { renderThemeMenu(); } catch (e) {}
|
|
1050
|
+
}
|
|
918
1051
|
function skinCssText() {
|
|
919
1052
|
var s = (SK && currentSkinId && SK.BY_ID[currentSkinId]) ? SK.BY_ID[currentSkinId] : null;
|
|
920
1053
|
if (!s) return legacyCssText();
|
|
@@ -926,19 +1059,30 @@ window.__ModuleLoader__.load({
|
|
|
926
1059
|
".tfb-root{position:static;pointer-events:none;font-family:'Segoe UI','Microsoft YaHei',system-ui,sans-serif;" + V.join(";") + "}",
|
|
927
1060
|
".tfb-ball:hover{transform:scale(1.08)}",
|
|
928
1061
|
".tfb-ball:active{cursor:grabbing;transform:scale(.95)}",
|
|
929
|
-
".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:
|
|
1062
|
+
".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}",
|
|
930
1063
|
".tfb-ball.tfb-idle{--st:var(--stI,#8fa0b8)}",
|
|
931
1064
|
".tfb-ball.tfb-pending{--st:var(--stP,#6fb6ff)}",
|
|
932
1065
|
".tfb-ball.tfb-active{--st:var(--stA,#ffb454)}",
|
|
933
1066
|
".tfb-ball.tfb-done{--st:var(--stD,#34e39a)}",
|
|
934
|
-
".tfb-ball .tfb-label{position:relative;z-index:2;text-shadow:
|
|
935
|
-
".tfb-ball .tfb-ring{
|
|
1067
|
+
".tfb-ball .tfb-label{position:relative;z-index:2;text-shadow:none}",
|
|
1068
|
+
".tfb-ball .tfb-ring{display:none}",
|
|
936
1069
|
".tfb-ball.tfb-idle .tfb-ring{opacity:.55}",
|
|
937
1070
|
".tfb-ball .tfb-orb-band{position:absolute;inset:0;border-radius:inherit;pointer-events:none}",
|
|
938
|
-
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s}"
|
|
1071
|
+
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s}",
|
|
1072
|
+
// m03329: clone skill-ball visuals verbatim (rim ring conic+mask, band flow, glow, breathe)
|
|
1073
|
+
// m03625 FINAL: verbatim skill-ball skin pipeline (selectors renamed only)
|
|
1074
|
+
".tfb-ball::before{content:none!important}",
|
|
1075
|
+
".tfb-ball::after{content:none!important}",
|
|
1076
|
+
// m03329: clone skill-ball visuals verbatim (rim ring conic+mask, band flow, glow, breathe)
|
|
1077
|
+
// m03625 FINAL: verbatim skill-ball skin pipeline (selectors renamed only)
|
|
1078
|
+
".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}",
|
|
1079
|
+
".tfb-ball .tfb-orb-band{content:none!important;display:none!important}",
|
|
1080
|
+
".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}",
|
|
1081
|
+
"@keyframes rimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1082
|
+
".tfb-ball.tfb-active .tfb-orb-rim{animation-duration:2.6s!important}",
|
|
939
1083
|
];
|
|
940
1084
|
if (s.anim === "flashy") {
|
|
941
|
-
ball.push(".tfb-ball.tfb-active{animation:tfb-pulse 1.8s ease-in-out infinite}");
|
|
1085
|
+
ball.push(".tfb-ball.tfb-active:not(.tfb-capsule){animation:tfb-pulse 1.8s ease-in-out infinite}");
|
|
942
1086
|
}
|
|
943
1087
|
// BREATHE-FOR-UNIFIED-SKINS (2026-09-28): the classic skins (nebula /
|
|
944
1088
|
// nebB / nebC) each carried `animation:tfbBreathe 3.2s ease-in-out
|
|
@@ -974,16 +1118,16 @@ window.__ModuleLoader__.load({
|
|
|
974
1118
|
);
|
|
975
1119
|
var fxc = SK.fx(currentSkinId, { B: ".tfb-ball", BAND: ".tfb-ball .tfb-orb-band", RIM: ".tfb-ball .tfb-orb-rim" });
|
|
976
1120
|
if (fxc) ball.push(fxc);
|
|
977
|
-
|
|
1121
|
+
// m03465: rim always painted (skill-ball look); capsule still hides it via explicit rule below
|
|
978
1122
|
if (!s.band) ball.push(".tfb-ball .tfb-orb-band{display:none}");
|
|
979
|
-
ball.push(".tfb-ball.tfb-capsule .tfb-orb-band{border-radius:
|
|
1123
|
+
ball.push(".tfb-ball.tfb-capsule .tfb-orb-band{border-radius:15px}");
|
|
980
1124
|
ball.push(
|
|
981
1125
|
// ---- panel (var-driven, fallbacks = classic look) ----
|
|
982
1126
|
'@keyframes dshSkinSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',
|
|
983
1127
|
'@keyframes dshSkinSpinR{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}',
|
|
984
1128
|
'@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)}}',
|
|
985
|
-
".tfb-panel{position:fixed;z-index:2147483600;width:
|
|
986
|
-
".tfb-panel::before{content:
|
|
1129
|
+
".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)}",
|
|
1130
|
+
".tfb-panel::before{content:none!important;display:none!important}",
|
|
987
1131
|
".tfb-panel.tfb-open{display:block}",
|
|
988
1132
|
".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)}",
|
|
989
1133
|
".tfb-panel.tfb-hz .tfb-head{flex:0 0 100%;width:100%}",
|
|
@@ -991,31 +1135,40 @@ window.__ModuleLoader__.load({
|
|
|
991
1135
|
".tfb-panel.tfb-hz .tfb-colcap{display:block}",
|
|
992
1136
|
".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))}",
|
|
993
1137
|
".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
|
|
994
|
-
".tfb-head{display:flex;
|
|
995
|
-
".tfb-title{font-weight:700;font-size:
|
|
996
|
-
".tfb-ctitle{flex:1;min-width:0;font-size:
|
|
997
|
-
".tfb-summary{font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
|
|
998
|
-
".tfb-btn{border:
|
|
1138
|
+
".tfb-head{display:flex;flex-direction:column;gap:4px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.10)}",
|
|
1139
|
+
".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}",
|
|
1140
|
+
".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}",
|
|
1141
|
+
".tfb-summary{margin-right:auto;font-size:11px;color:var(--itm,#9aa3b2);white-space:nowrap}",
|
|
1142
|
+
".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}",
|
|
1143
|
+
"a.tfb-btn.tfb-star-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}",
|
|
1144
|
+
"a.tfb-btn.tfb-star-link:hover{color:var(--stA,#8fd3c0)}",
|
|
999
1145
|
".tfb-btn:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1000
1146
|
".tfb-btn.tfb-on{color:var(--stA,#ffd27a)}",
|
|
1001
1147
|
".tfb-list{list-style:none;margin:0;padding:0}",
|
|
1002
|
-
".tfb-item{display:flex;align-items:flex-start;gap:
|
|
1148
|
+
".tfb-item{display:flex;align-items:flex-start;gap:6px;padding:4px 4px;border-radius:7px}",
|
|
1003
1149
|
".tfb-item:nth-child(odd){background:var(--chipBg,rgba(255,255,255,.03))}",
|
|
1004
|
-
".tfb-ico{flex-shrink:0;width:
|
|
1150
|
+
".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}",
|
|
1005
1151
|
".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)}",
|
|
1006
|
-
".tfb-item[data-status='in_progress'] .tfb-ico{background:
|
|
1152
|
+
".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}",
|
|
1007
1153
|
".tfb-item[data-status='pending'] .tfb-ico{background:transparent;color:var(--stP,#7fc4ff);border:1px dashed var(--stP,#7fc4ff)}",
|
|
1008
1154
|
".tfb-item[data-status='in_progress']{background:var(--chipBg,rgba(255,170,51,.06));box-shadow:inset 2px 0 0 var(--stA,#ffaa33)}",
|
|
1009
1155
|
".tfb-item[data-status='in_progress'] .tfb-txt{color:var(--stA,#ffcf8a);font-weight:600}",
|
|
1010
|
-
".tfb-item[data-status='completed'] .tfb-txt{color:var(--itD,#7fae94);
|
|
1156
|
+
".tfb-item[data-status='completed'] .tfb-txt{color:var(--itD,#7fae94);opacity:.85}",
|
|
1011
1157
|
".tfb-item[data-status='pending'] .tfb-txt{color:var(--itm,#aebfd4)}",
|
|
1012
|
-
".tfb-txt{flex:1}",
|
|
1013
|
-
".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}",
|
|
1158
|
+
".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}",
|
|
1159
|
+
".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}",
|
|
1014
1160
|
".tfb-item:hover .tfb-x,.tfb-x:focus{opacity:1}",
|
|
1015
1161
|
".tfb-x:hover{color:#ff8a8a;background:rgba(255,120,120,.12)}",
|
|
1016
1162
|
".tfb-empty{color:var(--itm,#8b93a1);font-size:12px;text-align:center;padding:12px 0}",
|
|
1017
|
-
".tfb-histoggle{list-style:none;display:flex;align-items:center;
|
|
1163
|
+
".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}",
|
|
1018
1164
|
".tfb-histoggle:hover{color:var(--ptx,#e6e6e6);background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1165
|
+
// v0.14.7: divider between the archive (above) and the live plan
|
|
1166
|
+
// (below). Two hairlines fade toward the edges via a gradient mask so
|
|
1167
|
+
// it reads as a breath rather than a hard rule; the centred label
|
|
1168
|
+
// restates the ball's own numbers so they cannot be misread.
|
|
1169
|
+
".tfb-divider{list-style:none;display:flex;align-items:center;gap:8px;margin:12px 0 8px;padding:0 2px;pointer-events:none}",
|
|
1170
|
+
".tfb-divider-line{flex:1;height:1px;background:linear-gradient(90deg,transparent 0%,var(--pbd,rgba(255,255,255,.16)) 22%,var(--pbd,rgba(255,255,255,.16)) 78%,transparent 100%)}",
|
|
1171
|
+
".tfb-divider-txt{flex-shrink:0;font-size:10px;font-weight:600;letter-spacing:.02em;color:var(--hintC,#7f8896);white-space:nowrap;padding:1px 7px;border-radius:9px;background:var(--chipBg,rgba(255,255,255,.04))}",
|
|
1019
1172
|
".tfb-sep{margin:10px 0 6px;padding-top:8px;border-top:1px solid var(--pbd,rgba(255,255,255,.07));display:flex;align-items:center;justify-content:space-between}",
|
|
1020
1173
|
".tfb-sep-label{font-size:11px;color:var(--itm,#9aa3b2);font-weight:600}",
|
|
1021
1174
|
".tfb-pinrow{display:flex;align-items:center;gap:6px;padding:6px 4px;border-radius:8px;cursor:pointer}",
|
|
@@ -1027,39 +1180,98 @@ window.__ModuleLoader__.load({
|
|
|
1027
1180
|
".tfb-dot-done{background:var(--stD,#4ade80)}",
|
|
1028
1181
|
".tfb-dot-none{background:var(--hintC,#6b7280)}",
|
|
1029
1182
|
"@keyframes tfb-dotpulse{0%,100%{opacity:1}50%{opacity:.4}}",
|
|
1183
|
+
"@keyframes tfbIcoSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1030
1184
|
".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))}",
|
|
1031
1185
|
".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}",
|
|
1032
|
-
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:
|
|
1033
|
-
".tfb-theme-menu.tfb-open{display:
|
|
1186
|
+
".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}",
|
|
1187
|
+
".tfb-theme-menu.tfb-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-content:start}",
|
|
1034
1188
|
".tfb-theme-cap{font-size:10px;color:var(--hintC,#6b7280);padding:6px 8px 2px;font-weight:700;letter-spacing:1px}",
|
|
1035
|
-
".tfb-theme-
|
|
1189
|
+
".tfb-theme-cap{grid-column:1/-1}",
|
|
1190
|
+
".tfb-theme-row-wide{grid-column:1/-1}",
|
|
1191
|
+
".tfb-theme-row.tfb-sync-row{background:rgba(255,255,255,.06);margin-bottom:2px}",
|
|
1192
|
+
".tfb-theme-row.tfb-sync-row .tfb-sync-label{flex:1;min-width:0;white-space:nowrap;overflow:visible;font-weight:600;color:#ffd27a}",
|
|
1193
|
+
".tfb-theme-row.tfb-sync-row{background:var(--chipBg,rgba(255,255,255,.06));margin-bottom:2px}",
|
|
1194
|
+
".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)}",
|
|
1195
|
+
".tfb-theme-row.tfb-sync-row.tfb-sync-on .tfb-sync-label{color:var(--stA,#ffd27a)}",
|
|
1196
|
+
".tfb-theme-row{padding:4px 6px;font-size:10.5px;gap:5px}",
|
|
1197
|
+
".tfb-theme-row .tfb-theme-check{width:11px}",
|
|
1198
|
+
".tfb-theme-row .tfb-swdot{width:8px;height:8px}",
|
|
1199
|
+
".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)}",
|
|
1036
1200
|
".tfb-theme-row:hover{background:var(--chipBg,rgba(255,255,255,.06))}",
|
|
1037
1201
|
".tfb-theme-row.tfb-cur{color:var(--stA,#ffd27a);font-weight:600}",
|
|
1038
1202
|
".tfb-theme-row .tfb-theme-check{flex-shrink:0;width:14px;text-align:center}",
|
|
1039
1203
|
".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))}",
|
|
1040
|
-
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0;white-space:nowrap;overflow:
|
|
1204
|
+
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0;white-space:nowrap;overflow:visible}",
|
|
1041
1205
|
".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}",
|
|
1042
1206
|
".tfb-rename:focus{border-color:var(--stA,#ffd27a)}",
|
|
1043
|
-
".tfb-ctitle[contenteditable=
|
|
1207
|
+
".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}",
|
|
1044
1208
|
// capsule mode (right-click toggle)
|
|
1045
|
-
".tfb-ball.tfb-capsule{width:auto;min-width:
|
|
1209
|
+
".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}",
|
|
1046
1210
|
".tfb-ball.tfb-capsule .tfb-orb-band{inset:0}",
|
|
1211
|
+
// m02693: capsule = calm pill. Strip every flashy layer & motion.
|
|
1212
|
+
".tfb-ball.tfb-capsule .tfb-orb-rim,.tfb-ball.tfb-capsule .tfb-orb-band{display:none!important}",
|
|
1213
|
+
".tfb-ball.tfb-capsule{text-shadow:none!important;animation:none!important}",
|
|
1214
|
+
// m02939: capsule uses a FLAT panel-toned background. The ball 158deg
|
|
1215
|
+
// two-tone gradient (bgA -> bgB) plus the corner highlight reads as
|
|
1216
|
+
// "grey on one end, black on the other" once stretched into a
|
|
1217
|
+
// 180-520px pill, so the capsule paints the panel base colour.
|
|
1218
|
+
".tfb-ball.tfb-capsule{background:var(--pbgA,#171c2b)!important}",
|
|
1219
|
+
// m03026: text-shadow off for ALL capsule text, but animation:none must NOT
|
|
1220
|
+
// cover .tfb-capsule-text — an !important animation:none beats the marquee
|
|
1221
|
+
// rule below and silently killed the overflow scroll playback.
|
|
1222
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub,.tfb-ball.tfb-capsule .tfb-capsule-text{text-shadow:none!important}",
|
|
1223
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub{animation:none!important}",
|
|
1224
|
+
".tfb-ball.tfb-capsule::before{display:none!important}",
|
|
1047
1225
|
".tfb-ball.tfb-capsule .tfb-orb-rim{display:none}",
|
|
1048
1226
|
".tfb-ball.tfb-capsule .tfb-ring{display:none}",
|
|
1049
1227
|
".tfb-ball.tfb-capsule .tfb-label{flex-shrink:0}",
|
|
1050
1228
|
".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}",
|
|
1051
1229
|
".tfb-ball.tfb-capsule .tfb-capsule-text{display:inline-block;white-space:nowrap}",
|
|
1052
|
-
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate}",
|
|
1230
|
+
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate!important}",
|
|
1053
1231
|
"@keyframes tfbMarquee{from{transform:translateX(0)}to{transform:translateX(var(--shift,-40px))}}",
|
|
1054
1232
|
// ---- unified typography (three-ball spec) ----
|
|
1055
1233
|
".tfb-root,.tfb-panel{font-family:'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif}",
|
|
1056
|
-
".tfb-panel{font-size:
|
|
1057
|
-
".tfb-title{font-size:
|
|
1058
|
-
".tfb-ctitle,.tfb-summary,.tfb-sep-label,.tfb-pincount,.tfb-colcap{font-size:
|
|
1059
|
-
".tfb-btn{font-size:
|
|
1060
|
-
".tfb-txt{font-size:
|
|
1061
|
-
".tfb-theme-row,.tfb-pinname,.tfb-empty,.tfb-histoggle{font-size:
|
|
1062
|
-
".tfb-theme-cap,.tfb-hint{font-size:
|
|
1234
|
+
".tfb-panel{font-size:11.5px;line-height:1.5;font-variant-numeric:tabular-nums}",
|
|
1235
|
+
".tfb-title{font-size:12px}",
|
|
1236
|
+
".tfb-ctitle,.tfb-summary,.tfb-sep-label,.tfb-pincount,.tfb-colcap{font-size:10.5px}",
|
|
1237
|
+
".tfb-btn{font-size:11.5px}",
|
|
1238
|
+
".tfb-txt{font-size:11.5px}",
|
|
1239
|
+
".tfb-theme-row,.tfb-pinname,.tfb-empty,.tfb-histoggle{font-size:11px}",
|
|
1240
|
+
".tfb-theme-cap,.tfb-hint{font-size:10px}",
|
|
1241
|
+
// ---- forced ball text colour (auto / black / white) ----
|
|
1242
|
+
".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}",
|
|
1243
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-auto{opacity:.8}",
|
|
1244
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-lock{opacity:.5;cursor:not-allowed}",
|
|
1245
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-black{color:#0b0b0b;background:rgba(255,255,255,.9)}",
|
|
1246
|
+
".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)}",
|
|
1247
|
+
// SCOPE (user m01766): EVERY piece of text -- ball face AND the whole
|
|
1248
|
+
// panel. `*` catches every descendant so per-skin accents (title,
|
|
1249
|
+
// item text, captions, counts, chips, buttons) all collapse to one ink.
|
|
1250
|
+
".tfb-root.tfb-ink-black,.tfb-root.tfb-ink-black *{color:#000 !important;text-shadow:none !important}",
|
|
1251
|
+
".tfb-root.tfb-ink-white,.tfb-root.tfb-ink-white *{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.65) !important}",
|
|
1252
|
+
// the ink switch itself must stay legible in both modes
|
|
1253
|
+
".tfb-root.tfb-ink-black .tfb-ink-btn{color:#0b0b0b !important;background:rgba(255,255,255,.92) !important}",
|
|
1254
|
+
".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)}",
|
|
1255
|
+
// colored accents (dots / spinner ring / status glow) also collapse to
|
|
1256
|
+
// the forced ink so nothing screams colour inside a monochrome page
|
|
1257
|
+
".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}",
|
|
1258
|
+
".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}",
|
|
1259
|
+
".tfb-root.tfb-ink-black .tfb-dot{background:#000 !important;border-color:#000 !important}",
|
|
1260
|
+
".tfb-root.tfb-ink-white .tfb-dot{background:#fff !important;border-color:rgba(255,255,255,.6) !important}",
|
|
1261
|
+
// in_progress row tint: neutralize the amber glow under forced ink
|
|
1262
|
+
".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}",
|
|
1263
|
+
".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}",
|
|
1264
|
+
// completed tick + dividers go monochrome too
|
|
1265
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='completed'] .tfb-ico{color:#000 !important}",
|
|
1266
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='completed'] .tfb-ico{color:#fff !important}",
|
|
1267
|
+
"@property --tfb-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1268
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']{position:relative;overflow:hidden}",
|
|
1269
|
+
".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}",
|
|
1270
|
+
"@keyframes tfbBorderSpin{to{--tfb-spin:360deg}}",
|
|
1271
|
+
/* 顶部 40px 是 DSH 窗口拖拽带,必须挖掉 */
|
|
1272
|
+
// ---- m03250: orb-rim restored (user: the encircling light band must stay) ----
|
|
1273
|
+
".tfb-ball.tfb-capsule::after{content:none!important;display:none!important}",
|
|
1274
|
+
".tfb-ball,.tfb-panel,.tfb-theme-menu{-webkit-app-region:no-drag;app-region:no-drag}",
|
|
1063
1275
|
);
|
|
1064
1276
|
return ball.join("\n");
|
|
1065
1277
|
}
|
|
@@ -1070,16 +1282,16 @@ window.__ModuleLoader__.load({
|
|
|
1070
1282
|
function legacyCssText() {
|
|
1071
1283
|
var th = currentTheme;
|
|
1072
1284
|
// Skeleton fields that all four skins share; shape differs per skin.
|
|
1073
|
-
var SIZE = "width:
|
|
1285
|
+
var SIZE = "width:34px;height:34px;";
|
|
1074
1286
|
// Per-skin ball rules (status variants + ring + band/rim).
|
|
1075
1287
|
var ball = [];
|
|
1076
1288
|
if (th === "nebula") {
|
|
1077
1289
|
ball = [
|
|
1078
|
-
".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:
|
|
1290
|
+
".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(";", ";"),
|
|
1079
1291
|
".tfb-orb-band{display:none}",
|
|
1080
1292
|
".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)}",
|
|
1081
1293
|
".tfb-ball .tfb-ring{display:none}",
|
|
1082
|
-
"
|
|
1294
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1083
1295
|
".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))}",
|
|
1084
1296
|
".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}",
|
|
1085
1297
|
".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))}",
|
|
@@ -1087,12 +1299,12 @@ window.__ModuleLoader__.load({
|
|
|
1087
1299
|
];
|
|
1088
1300
|
} else if (th === "blue") {
|
|
1089
1301
|
ball = [
|
|
1090
|
-
".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:
|
|
1302
|
+
".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(";", ";"),
|
|
1091
1303
|
".tfb-orb-band{display:none}",
|
|
1092
1304
|
".tfb-orb-rim{display:none}",
|
|
1093
1305
|
".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))}",
|
|
1094
1306
|
".tfb-ball .tfb-label{text-shadow:0 0 10px currentColor,0 0 3px currentColor}",
|
|
1095
|
-
".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}",
|
|
1307
|
+
".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}",
|
|
1096
1308
|
".tfb-ball.tfb-active .tfb-ring{--rc:#ffaa33;filter:drop-shadow(0 0 8px rgba(255,170,51,.6))}",
|
|
1097
1309
|
".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)}",
|
|
1098
1310
|
".tfb-ball.tfb-done .tfb-ring{--rc:#5dffa8;filter:drop-shadow(0 0 10px rgba(93,255,168,.7))}",
|
|
@@ -1101,11 +1313,11 @@ window.__ModuleLoader__.load({
|
|
|
1101
1313
|
];
|
|
1102
1314
|
} else if (th === "nebB") {
|
|
1103
1315
|
ball = [
|
|
1104
|
-
".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:
|
|
1316
|
+
".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,
|
|
1105
1317
|
".tfb-orb-band{display:none}",
|
|
1106
1318
|
".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)}",
|
|
1107
1319
|
".tfb-ball .tfb-ring{display:none}",
|
|
1108
|
-
"
|
|
1320
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1109
1321
|
".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)}",
|
|
1110
1322
|
".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}",
|
|
1111
1323
|
".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)}",
|
|
@@ -1113,12 +1325,12 @@ window.__ModuleLoader__.load({
|
|
|
1113
1325
|
];
|
|
1114
1326
|
} else if (th === "nebC") {
|
|
1115
1327
|
ball = [
|
|
1116
|
-
".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:
|
|
1328
|
+
".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,
|
|
1117
1329
|
".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}",
|
|
1118
1330
|
".tfb-orb-band{display:none}",
|
|
1119
1331
|
".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)}",
|
|
1120
1332
|
".tfb-ball .tfb-ring{display:none}",
|
|
1121
|
-
"
|
|
1333
|
+
"/* label glow removed (m03757): match skill ball plain text */",
|
|
1122
1334
|
".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)}",
|
|
1123
1335
|
".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%)}",
|
|
1124
1336
|
".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}",
|
|
@@ -1129,7 +1341,7 @@ window.__ModuleLoader__.load({
|
|
|
1129
1341
|
];
|
|
1130
1342
|
} else if (th === "glass") {
|
|
1131
1343
|
ball = [
|
|
1132
|
-
".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:
|
|
1344
|
+
".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,
|
|
1133
1345
|
".tfb-orb-band{display:none}",
|
|
1134
1346
|
".tfb-orb-rim{display:none}",
|
|
1135
1347
|
".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}",
|
|
@@ -1144,12 +1356,12 @@ window.__ModuleLoader__.load({
|
|
|
1144
1356
|
];
|
|
1145
1357
|
} else { // graphite
|
|
1146
1358
|
ball = [
|
|
1147
|
-
".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:
|
|
1359
|
+
".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(";", ";"),
|
|
1148
1360
|
".tfb-orb-band{display:none}",
|
|
1149
1361
|
".tfb-orb-rim{display:none}",
|
|
1150
1362
|
".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}",
|
|
1151
1363
|
".tfb-ball .tfb-label{text-shadow:0 0 8px currentColor,0 0 2px currentColor}",
|
|
1152
|
-
".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}",
|
|
1364
|
+
".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}",
|
|
1153
1365
|
".tfb-ball.tfb-active .tfb-ring{--rc:#ffaa33}",
|
|
1154
1366
|
".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)}",
|
|
1155
1367
|
".tfb-ball.tfb-done .tfb-ring{--rc:#5dffa8}",
|
|
@@ -1165,22 +1377,37 @@ window.__ModuleLoader__.load({
|
|
|
1165
1377
|
].concat(ball, [
|
|
1166
1378
|
"@keyframes tfbBandFlow{0%,100%{transform:translateY(-3px) scaleY(.94);opacity:.8}50%{transform:translateY(3px) scaleY(1.12);opacity:1}}",
|
|
1167
1379
|
"@keyframes tfbRimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1380
|
+
"@property --cap-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1381
|
+
"@keyframes tfbCapSpin{to{--cap-spin:360deg}}",
|
|
1382
|
+
"@keyframes tfbIcoSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1168
1383
|
"@keyframes tfbBreathe{0%,100%{transform:scale(.96);filter:brightness(.92)}50%{transform:scale(1.05);filter:brightness(1.12)}}",
|
|
1169
1384
|
"@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)}}",
|
|
1170
1385
|
"@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)}}",
|
|
1171
|
-
".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)}",
|
|
1172
|
-
".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)}",
|
|
1386
|
+
".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)}",
|
|
1387
|
+
".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)}",
|
|
1173
1388
|
// capsule mode (right-click toggle): long pill, wider, text-first
|
|
1174
|
-
".tfb-ball.tfb-capsule{width:auto;min-width:
|
|
1389
|
+
".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}",
|
|
1175
1390
|
".tfb-ball.tfb-capsule .tfb-orb-band{inset:1px}",
|
|
1391
|
+
// m02693: capsule = calm pill (legacy layer). Strip glow & motion.
|
|
1392
|
+
".tfb-ball.tfb-capsule .tfb-orb-rim,.tfb-ball.tfb-capsule .tfb-orb-band{display:none!important}",
|
|
1393
|
+
".tfb-ball.tfb-capsule{text-shadow:none!important;animation:none!important}",
|
|
1394
|
+
// m02939: same flat-capsule rule for the classic skins (they carry
|
|
1395
|
+
// no --pbgA token, so a fixed neutral dark stands in).
|
|
1396
|
+
".tfb-ball.tfb-capsule{background:#14171d!important}",
|
|
1397
|
+
// m03026: text-shadow off for ALL capsule text, but animation:none must NOT
|
|
1398
|
+
// cover .tfb-capsule-text — an !important animation:none beats the marquee
|
|
1399
|
+
// rule below and silently killed the overflow scroll playback.
|
|
1400
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub,.tfb-ball.tfb-capsule .tfb-capsule-text{text-shadow:none!important}",
|
|
1401
|
+
".tfb-ball.tfb-capsule .tfb-label,.tfb-ball.tfb-capsule .tfb-sub{animation:none!important}",
|
|
1402
|
+
".tfb-ball.tfb-capsule::before{display:none!important}",
|
|
1176
1403
|
".tfb-ball.tfb-capsule .tfb-orb-rim{display:none}",
|
|
1177
1404
|
".tfb-ball.tfb-capsule .tfb-ring{display:none}",
|
|
1178
1405
|
".tfb-ball.tfb-capsule .tfb-label{flex-shrink:0}",
|
|
1179
1406
|
".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}",
|
|
1180
1407
|
".tfb-ball.tfb-capsule .tfb-capsule-text{display:inline-block;white-space:nowrap}",
|
|
1181
|
-
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate}",
|
|
1408
|
+
".tfb-ball.tfb-capsule .tfb-capsule-text.tfb-marquee{animation:tfbMarquee 9s ease-in-out infinite alternate!important}",
|
|
1182
1409
|
"@keyframes tfbMarquee{from{transform:translateX(0)}to{transform:translateX(var(--shift,-40px))}}",
|
|
1183
|
-
".tfb-panel{position:fixed;z-index:2147483600;width:
|
|
1410
|
+
".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)}",
|
|
1184
1411
|
".tfb-panel.tfb-open{display:block}",
|
|
1185
1412
|
".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)}",
|
|
1186
1413
|
".tfb-panel.tfb-hz .tfb-head{flex:0 0 100%;width:100%}",
|
|
@@ -1188,34 +1415,40 @@ window.__ModuleLoader__.load({
|
|
|
1188
1415
|
".tfb-panel.tfb-hz .tfb-colcap{display:block}",
|
|
1189
1416
|
".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)}",
|
|
1190
1417
|
".tfb-panel.tfb-hz .tfb-col-pin{flex:1 1 50%;min-width:260px;box-sizing:border-box;padding-left:10px}",
|
|
1191
|
-
".tfb-head{display:flex;
|
|
1192
|
-
".tfb-title{font-weight:700;font-size:
|
|
1193
|
-
".tfb-ctitle{flex:1;min-width:0;font-size:
|
|
1194
|
-
".tfb-summary{font-size:11px;color:#9aa3b2;white-space:nowrap}",
|
|
1195
|
-
".tfb-btn{border:
|
|
1418
|
+
".tfb-head{display:flex;flex-direction:column;gap:4px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.10)}",
|
|
1419
|
+
".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}",
|
|
1420
|
+
".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}",
|
|
1421
|
+
".tfb-summary{margin-right:auto;font-size:11px;color:#9aa3b2;white-space:nowrap}",
|
|
1422
|
+
".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}",
|
|
1423
|
+
"a.tfb-btn.tfb-star-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}",
|
|
1424
|
+
"a.tfb-btn.tfb-star-link:hover{color:var(--stA,#8fd3c0)}",
|
|
1196
1425
|
".tfb-btn:hover{color:#e6e6e6;background:rgba(255,255,255,.06)}",
|
|
1197
1426
|
".tfb-btn.tfb-on{color:#ffd27a}",
|
|
1198
1427
|
".tfb-list{list-style:none;margin:0;padding:0}",
|
|
1199
|
-
".tfb-item{display:flex;align-items:flex-start;gap:
|
|
1428
|
+
".tfb-item{display:flex;align-items:flex-start;gap:6px;padding:4px 4px;border-radius:7px}",
|
|
1200
1429
|
".tfb-item:nth-child(odd){background:rgba(255,255,255,.03)}",
|
|
1201
|
-
".tfb-ico{flex-shrink:0;width:
|
|
1430
|
+
".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}",
|
|
1202
1431
|
".tfb-item[data-status='completed'] .tfb-ico{background:rgba(74,222,128,.18);color:#5dffa8;border:1px solid rgba(93,255,168,.4)}",
|
|
1203
|
-
".tfb-item[data-status='in_progress'] .tfb-ico{background:rgba(255,170,51,.
|
|
1432
|
+
".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}",
|
|
1204
1433
|
".tfb-item[data-status='pending'] .tfb-ico{background:rgba(127,196,255,.14);color:#7fc4ff;border:1px dashed rgba(127,196,255,.5)}",
|
|
1205
1434
|
".tfb-item[data-status='in_progress']{background:rgba(255,170,51,.06)}",
|
|
1206
1435
|
".tfb-item[data-status='in_progress'] .tfb-txt{color:#ffcf8a;font-weight:600}",
|
|
1207
|
-
".tfb-item[data-status='completed'] .tfb-txt{color:#7fae94;
|
|
1436
|
+
".tfb-item[data-status='completed'] .tfb-txt{color:#7fae94;opacity:.85}",
|
|
1208
1437
|
".tfb-item[data-status='pending'] .tfb-txt{color:#aebfd4}",
|
|
1209
|
-
".tfb-txt{flex:1}",
|
|
1438
|
+
".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}",
|
|
1210
1439
|
// Plan-A2: per-row hide button — invisible until hover/focus, never
|
|
1211
1440
|
// printed, keeps the row layout unchanged
|
|
1212
|
-
".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}",
|
|
1441
|
+
".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}",
|
|
1213
1442
|
".tfb-item:hover .tfb-x,.tfb-x:focus{opacity:1}",
|
|
1214
1443
|
".tfb-x:hover{color:#ff8a8a;background:rgba(255,120,120,.12)}",
|
|
1215
1444
|
".tfb-empty{color:#8b93a1;font-size:12px;text-align:center;padding:12px 0}",
|
|
1216
1445
|
// Plan-A3: history fold toggle row
|
|
1217
|
-
".tfb-histoggle{list-style:none;display:flex;align-items:center;
|
|
1446
|
+
".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}",
|
|
1218
1447
|
".tfb-histoggle:hover{color:#e6e6e6;background:rgba(255,255,255,.06)}",
|
|
1448
|
+
// v0.14.7: archive / live-plan divider (theme-2 palette, no CSS vars)
|
|
1449
|
+
".tfb-divider{list-style:none;display:flex;align-items:center;gap:8px;margin:12px 0 8px;padding:0 2px;pointer-events:none}",
|
|
1450
|
+
".tfb-divider-line{flex:1;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.16) 22%,rgba(255,255,255,.16) 78%,transparent 100%)}",
|
|
1451
|
+
".tfb-divider-txt{flex-shrink:0;font-size:10px;font-weight:600;letter-spacing:.02em;color:#7f8896;white-space:nowrap;padding:1px 7px;border-radius:9px;background:rgba(255,255,255,.04)}",
|
|
1219
1452
|
".tfb-sep{margin:10px 0 6px;padding-top:8px;border-top:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between}",
|
|
1220
1453
|
".tfb-sep-label{font-size:11px;color:#9aa3b2;font-weight:600}",
|
|
1221
1454
|
".tfb-pinrow{display:flex;align-items:center;gap:6px;padding:6px 4px;border-radius:8px;cursor:pointer}",
|
|
@@ -1229,16 +1462,66 @@ window.__ModuleLoader__.load({
|
|
|
1229
1462
|
"@keyframes tfb-dotpulse{0%,100%{opacity:1}50%{opacity:.4}}",
|
|
1230
1463
|
".tfb-pinlist{list-style:none;margin:2px 0 4px;padding:0 0 0 10px;border-left:2px solid rgba(255,255,255,.08)}",
|
|
1231
1464
|
".tfb-hint{font-size:10px;color:#6b7280;padding:6px 0 0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}",
|
|
1232
|
-
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:
|
|
1233
|
-
".tfb-theme-menu.tfb-open{display:
|
|
1234
|
-
".tfb-theme-row{display:flex;align-items:center;gap:
|
|
1465
|
+
".tfb-theme-menu{display:none;margin:-2px 0 8px;padding:6px;border:0;border-radius:10px;background:rgba(12,16,20,.96)}",
|
|
1466
|
+
".tfb-theme-menu.tfb-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-content:start}",
|
|
1467
|
+
".tfb-theme-row{display:flex;align-items:center;gap:4px;padding:3px 5px;border-radius:8px;cursor:pointer;font-size:10.5px;color:#cdd6e2}",
|
|
1468
|
+
".tfb-theme-cap{grid-column:1/-1}",
|
|
1469
|
+
".tfb-theme-row-wide{grid-column:1/-1}",
|
|
1470
|
+
".tfb-theme-row{padding:4px 6px;font-size:10.5px;gap:5px}",
|
|
1471
|
+
".tfb-theme-row .tfb-theme-check{width:11px}",
|
|
1472
|
+
".tfb-theme-row .tfb-swdot{width:8px;height:8px}",
|
|
1235
1473
|
".tfb-theme-row:hover{background:rgba(255,255,255,.06)}",
|
|
1236
1474
|
".tfb-theme-row.tfb-cur{color:#ffd27a;font-weight:600}",
|
|
1237
1475
|
".tfb-theme-row .tfb-theme-check{flex-shrink:0;width:14px;text-align:center}",
|
|
1238
1476
|
".tfb-theme-row .tfb-theme-label{flex:1;min-width:0}",
|
|
1239
1477
|
".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}",
|
|
1240
1478
|
".tfb-rename:focus{border-color:#ffd27a}",
|
|
1241
|
-
".tfb-ctitle[contenteditable=
|
|
1479
|
+
".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}",
|
|
1480
|
+
// ---- forced ball text colour (auto / black / white) ----
|
|
1481
|
+
".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}",
|
|
1482
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-auto{opacity:.8}",
|
|
1483
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-lock{opacity:.5;cursor:not-allowed}",
|
|
1484
|
+
".tfb-btn.tfb-ink-btn.tfb-ink-black{color:#0b0b0b;background:rgba(255,255,255,.9)}",
|
|
1485
|
+
".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)}",
|
|
1486
|
+
// SCOPE (user m01766): EVERY piece of text -- ball face AND the whole
|
|
1487
|
+
// panel. `*` catches every descendant so per-skin accents (title,
|
|
1488
|
+
// item text, captions, counts, chips, buttons) all collapse to one ink.
|
|
1489
|
+
".tfb-root.tfb-ink-black,.tfb-root.tfb-ink-black *{color:#000 !important;text-shadow:none !important}",
|
|
1490
|
+
".tfb-root.tfb-ink-white,.tfb-root.tfb-ink-white *{color:#fff !important;text-shadow:0 1px 2px rgba(0,0,0,.65) !important}",
|
|
1491
|
+
// the ink switch itself must stay legible in both modes
|
|
1492
|
+
".tfb-root.tfb-ink-black .tfb-ink-btn{color:#0b0b0b !important;background:rgba(255,255,255,.92) !important}",
|
|
1493
|
+
".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)}",
|
|
1494
|
+
// colored accents (dots / spinner ring / status glow) also collapse to
|
|
1495
|
+
// the forced ink so nothing screams colour inside a monochrome page
|
|
1496
|
+
".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}",
|
|
1497
|
+
".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}",
|
|
1498
|
+
".tfb-root.tfb-ink-black .tfb-dot{background:#000 !important;border-color:#000 !important}",
|
|
1499
|
+
".tfb-root.tfb-ink-white .tfb-dot{background:#fff !important;border-color:rgba(255,255,255,.6) !important}",
|
|
1500
|
+
// in_progress row tint: neutralize the amber glow under forced ink
|
|
1501
|
+
".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}",
|
|
1502
|
+
".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}",
|
|
1503
|
+
// completed tick + dividers go monochrome too
|
|
1504
|
+
".tfb-root.tfb-ink-black .tfb-item[data-status='completed'] .tfb-ico{color:#000 !important}",
|
|
1505
|
+
".tfb-root.tfb-ink-white .tfb-item[data-status='completed'] .tfb-ico{color:#fff !important}",
|
|
1506
|
+
"@property --tfb-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1507
|
+
".tfb-ball.tfb-capsule ~ .tfb-panel .tfb-item[data-status=\'in_progress\']{position:relative;overflow:hidden}",
|
|
1508
|
+
".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}",
|
|
1509
|
+
"@keyframes tfbBorderSpin{to{--tfb-spin:360deg}}",
|
|
1510
|
+
// ---- m03250: orb-rim restored (user: the encircling light band must stay) ----
|
|
1511
|
+
".tfb-ball.tfb-capsule::after{content:none!important;display:none!important}",
|
|
1512
|
+
"@keyframes tfbRimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1513
|
+
"@property --cap-spin{syntax:\'<angle>\';initial-value:0deg;inherits:false}",
|
|
1514
|
+
"@keyframes tfbCapSpin{to{--cap-spin:360deg}}",
|
|
1515
|
+
".tfb-ball,.tfb-panel,.tfb-theme-menu{-webkit-app-region:no-drag;app-region:no-drag}",
|
|
1516
|
+
".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)}",
|
|
1517
|
+
".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}",
|
|
1518
|
+
".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))}",
|
|
1519
|
+
".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)}",
|
|
1520
|
+
".tfb-ball{animation:orbBreathe 3.2s ease-in-out infinite}",
|
|
1521
|
+
".tfb-ball.tfb-idle{animation:orbBreathe 4.2s ease-in-out infinite}",
|
|
1522
|
+
"@keyframes orbBreathe{0%,100%{transform:scale(.96);filter:brightness(.92)}50%{transform:scale(1.05);filter:brightness(1.12)}}",
|
|
1523
|
+
"@keyframes rimSpin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",
|
|
1524
|
+
"@keyframes bandFlow{0%,100%{transform:translateY(-3px) scaleY(.94);opacity:.8}50%{transform:translateY(3px) scaleY(1.12);opacity:1}}",
|
|
1242
1525
|
]).join("\n");
|
|
1243
1526
|
}
|
|
1244
1527
|
|
|
@@ -1246,7 +1529,7 @@ window.__ModuleLoader__.load({
|
|
|
1246
1529
|
var html = "";
|
|
1247
1530
|
for (var i = 0; i < list.length; i++) {
|
|
1248
1531
|
var t = list[i];
|
|
1249
|
-
var ico = t.status === "completed" ? "✓" : t.status === "in_progress" ? "
|
|
1532
|
+
var ico = t.status === "completed" ? "✓" : t.status === "in_progress" ? "" : "○";
|
|
1250
1533
|
var txt = t.content.length > MAX_CONTENT ? t.content.slice(0, MAX_CONTENT) + "…" : t.content;
|
|
1251
1534
|
// Plan-A2: every row carries a small ✕ so the user can hide history
|
|
1252
1535
|
// rows they no longer want to see (only deletes from the DISPLAY —
|
|
@@ -1256,7 +1539,7 @@ window.__ModuleLoader__.load({
|
|
|
1256
1539
|
// to the clipboard (handy for quoting a broken/odd task back).
|
|
1257
1540
|
html += '<li class="tfb-item" data-status="' + t.status + '">' +
|
|
1258
1541
|
'<span class="tfb-ico">' + ico + '</span>' +
|
|
1259
|
-
'<span class="tfb-txt">' + esc(txt) + '</span>' +
|
|
1542
|
+
'<span class="tfb-txt" title="' + esc(t.content) + '">' + esc(txt) + '</span>' +
|
|
1260
1543
|
'<button class="tfb-x" type="button" data-act="copyItem" data-copy="' + esc(t.content) + '" title="复制此条完整内容">📋</button>' +
|
|
1261
1544
|
'<button class="tfb-x" type="button" data-act="hideItem" data-idx="' + i + '" title="从悬浮球隐藏此条(不动数据源)">✕</button>' +
|
|
1262
1545
|
"</li>";
|
|
@@ -1291,25 +1574,37 @@ window.__ModuleLoader__.load({
|
|
|
1291
1574
|
// every action row carries data-ownsid so the dispatcher can scope
|
|
1292
1575
|
// toggle/🧹/♻️ to THIS session (continuation of Plan-A2.2)
|
|
1293
1576
|
var ownAttr = ' data-ownsid="' + esc(sid) + '"';
|
|
1294
|
-
|
|
1577
|
+
// v0.14.7 (user requirement, m07623): the expanded panel must show BOTH
|
|
1578
|
+
// the archived completed work AND the live plan, separated by an
|
|
1579
|
+
// explicit, good-looking divider. The ball face keeps reporting the
|
|
1580
|
+
// OFFICIAL numbers only (snapshot slice); the archive lives here, below
|
|
1581
|
+
// the divider, so nothing inflates the counters but nothing is lost.
|
|
1582
|
+
var html = "";
|
|
1295
1583
|
// Plan-A5: batch-clear affordance — one click hides every archive row
|
|
1296
1584
|
// (both folds), same ✕ semantics as single-row hides, snapshot rows
|
|
1297
1585
|
// and data layer untouched.
|
|
1298
1586
|
var anyHist = histDone.length + histOpen_.length;
|
|
1587
|
+
// ── divider: archive vs live plan ─────────────────────────────────
|
|
1588
|
+
// Shown only when there IS an archive above, so a first-round list
|
|
1589
|
+
// stays clean. The right-hand count restates what the BALL shows, so
|
|
1590
|
+
// the number cannot be misread as panel-wide.
|
|
1591
|
+
html += listHtml(snapRows);
|
|
1592
|
+
// ORDER (user requirement, m00455): history folds come AFTER the
|
|
1593
|
+
// live progress block — completed first, abandoned second.
|
|
1299
1594
|
if (histDone.length) {
|
|
1300
|
-
html += '<li class="tfb-histoggle" data-act="toggleHistory"' + ownAttr + ' title="展开/收起历史任务"
|
|
1301
|
-
'<button class="tfb-btn" data-act="clearHistory"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)"
|
|
1595
|
+
html += '<li class="tfb-histoggle" data-act="toggleHistory"' + ownAttr + ' title="展开/收起历史任务">' + (historyOpen[osid] ? "▾" : "▸") + ' 已完成 · ' + histDone.length +
|
|
1596
|
+
'<button class="tfb-btn" data-act="clearHistory"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)">' + TFB_ICONS.broom + '</button></li>';
|
|
1302
1597
|
if (historyOpen[osid]) html += listHtml(histDone);
|
|
1303
1598
|
}
|
|
1304
1599
|
// Plan-A3.1: non-completed history in a SECOND fold (default closed)
|
|
1305
1600
|
if (histOpen_.length) {
|
|
1306
|
-
html += '<li class="tfb-histoggle" data-act="toggleHistoryOpen"' + ownAttr + ' title="展开/收起被抛弃的历史任务"
|
|
1307
|
-
'<button class="tfb-btn" data-act="clearHistoryOpen"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)"
|
|
1601
|
+
html += '<li class="tfb-histoggle" data-act="toggleHistoryOpen"' + ownAttr + ' title="展开/收起被抛弃的历史任务">' + (historyOpenOpen[osid] ? "▾" : "▸") + ' 已抛弃 · ' + histOpen_.length +
|
|
1602
|
+
'<button class="tfb-btn" data-act="clearHistoryOpen"' + ownAttr + ' type="button" title="一键隐藏本区全部条目(✕ 同款,仅显示层)">' + TFB_ICONS.broom + '</button></li>';
|
|
1308
1603
|
if (historyOpenOpen[osid]) html += listHtml(histOpen_);
|
|
1309
1604
|
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1605
|
+
// m00673 redesign: the standalone batch-clear row is removed — each
|
|
1606
|
+
// fold already carries its own 🧹 button; one more full-width row was
|
|
1607
|
+
// redundant visual noise at the bottom of the panel.
|
|
1313
1608
|
// Plan-A7: restore affordance — one click un-hides EVERYTHING hidden
|
|
1314
1609
|
// in this session (single ✕ hides and batch clears alike). Only
|
|
1315
1610
|
// shown when at least one row is hidden, so it never adds noise.
|
|
@@ -1317,7 +1612,7 @@ window.__ModuleLoader__.load({
|
|
|
1317
1612
|
var hidMap = hiddenFor(osid);
|
|
1318
1613
|
for (var hk in hidMap) { if (hidMap[hk]) hidCount++; }
|
|
1319
1614
|
if (hidCount > 0) {
|
|
1320
|
-
html += '<li class="tfb-histoggle" data-act="restoreAll"' + ownAttr + ' title="
|
|
1615
|
+
html += '<li class="tfb-histoggle" data-act="restoreAll"' + ownAttr + ' title="取消本会话全部隐藏(✕/扫把 的反向操作)">↩︎ 恢复已隐藏的 ' + hidCount + ' 条</li>';
|
|
1321
1616
|
}
|
|
1322
1617
|
return html;
|
|
1323
1618
|
}
|
|
@@ -1388,7 +1683,7 @@ window.__ModuleLoader__.load({
|
|
|
1388
1683
|
var on = currentSid && isPinned(currentSid);
|
|
1389
1684
|
ui.pinBtn.classList.toggle("tfb-on", !!on);
|
|
1390
1685
|
ui.pinBtn.title = on ? "取消固定当前会话" : "固定当前会话(切换对话后仍监控)";
|
|
1391
|
-
ui.pinBtn.
|
|
1686
|
+
ui.pinBtn.innerHTML = TFB_ICONS.pin; ui.pinBtn.style.opacity = on ? "1" : ".55";
|
|
1392
1687
|
}
|
|
1393
1688
|
var list = currentList();
|
|
1394
1689
|
if (!list.length) {
|
|
@@ -1402,11 +1697,9 @@ window.__ModuleLoader__.load({
|
|
|
1402
1697
|
// Plan-A4: counts from the CURRENT SNAPSHOT only. (User request
|
|
1403
1698
|
// 2026-09-13: the dsh-client-auto-continue recommendation line is
|
|
1404
1699
|
// removed — no third-party plugin advertising in this UI.)
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
ui.list.innerHTML += '<li class="tfb-empty" style="padding:6px 0 2px;font-size:10px">⚠️ 还有 ' + left + ' 项未完成</li>';
|
|
1409
|
-
}
|
|
1700
|
+
// 2026-10-28 (m01008): the "还有 N 项未完成" footer row is removed —
|
|
1701
|
+
// the panel-header summary already carries done/total counts; a second
|
|
1702
|
+
// counter at the bottom was redundant noise.
|
|
1410
1703
|
}
|
|
1411
1704
|
renderPinned();
|
|
1412
1705
|
}
|
|
@@ -1415,7 +1708,7 @@ window.__ModuleLoader__.load({
|
|
|
1415
1708
|
if (!ui.pinSec) return;
|
|
1416
1709
|
if (pinned.length === 0) { ui.pinSec.innerHTML = ""; return; }
|
|
1417
1710
|
if (editing.sid) return; // a rename editor is live — don't rebuild under it
|
|
1418
|
-
var html = '<div class="tfb-sep"><span class="tfb-sep-label"
|
|
1711
|
+
var html = '<div class="tfb-sep"><span class="tfb-sep-label">已固定 (' + pinned.length + ')</span></div>';
|
|
1419
1712
|
for (var i = 0; i < pinned.length; i++) {
|
|
1420
1713
|
var sid = pinned[i];
|
|
1421
1714
|
var list = sessionTodosVisible(sid);
|
|
@@ -1429,7 +1722,7 @@ window.__ModuleLoader__.load({
|
|
|
1429
1722
|
html += '<span class="tfb-dot ' + pinDotClass(sid) + '"></span>';
|
|
1430
1723
|
html += '<span class="tfb-pinname" title="' + esc(tname) + '">' + esc(tname) + "</span>";
|
|
1431
1724
|
html += '<span class="tfb-pincount">' + (c ? c.done + "/" + c.total : "…") + "</span>";
|
|
1432
|
-
html += '<button class="tfb-btn" data-act="renamePin" data-sid="' + esc(sid) + '" title="重命名"
|
|
1725
|
+
html += '<button class="tfb-btn" data-act="renamePin" data-sid="' + esc(sid) + '" title="重命名">' + TFB_ICONS.pencil + '</button>';
|
|
1433
1726
|
html += '<button class="tfb-btn" data-act="unpin" data-sid="' + esc(sid) + '" title="取消固定">✖</button>';
|
|
1434
1727
|
html += "</div>";
|
|
1435
1728
|
if (open) {
|
|
@@ -1447,7 +1740,6 @@ window.__ModuleLoader__.load({
|
|
|
1447
1740
|
ui.pinSec.innerHTML = html;
|
|
1448
1741
|
}
|
|
1449
1742
|
|
|
1450
|
-
var THEME_NAMES = { nebula: "🌌 星云·流光", nebB: "🌟 星云·宝石", nebC: "🌙 星云·顶弧", graphite: "💎 石墨版", blue: "🔵 蓝宝石版", glass: "🧊 玻璃版" };
|
|
1451
1743
|
|
|
1452
1744
|
function renderThemeMenu() {
|
|
1453
1745
|
if (!ui.themeMenu) return;
|
|
@@ -1458,36 +1750,28 @@ window.__ModuleLoader__.load({
|
|
|
1458
1750
|
return '<span class="tfb-swdot" style="background:linear-gradient(135deg,' + a + ',' + b + ')"></span>';
|
|
1459
1751
|
}
|
|
1460
1752
|
if (SK) {
|
|
1753
|
+
var isAuto = mySkinPref() === "auto";
|
|
1754
|
+
var _sync = isSyncOn();
|
|
1755
|
+
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">' +
|
|
1756
|
+
'<span class="tfb-theme-check">' + (_sync ? "\u2713" : " ") + "</span>" +
|
|
1757
|
+
'<span class="tfb-sync-label">\u4e09\u7403\u76ae\u80a4\u540c\u6b65</span></div>' +
|
|
1758
|
+
html;
|
|
1759
|
+
html += '<div class="tfb-theme-row tfb-theme-row-wide' + (isAuto ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="auto" title="跟随客户端深/浅色自动切换">' +
|
|
1760
|
+
'<span class="tfb-theme-check">' + (isAuto ? "\u2713" : " ") + "</span>" +
|
|
1761
|
+
'<span class="tfb-swdot" style="background:linear-gradient(135deg,#f9fafb,#151517)"></span>' +
|
|
1762
|
+
'<span class="tfb-theme-label">0 \u00b7 \u968f\u7cfb\u7edf \u00b7 \u6df1/\u6d45\u81ea\u52a8</span></div>';
|
|
1461
1763
|
var groups = SK.groups();
|
|
1462
1764
|
for (var g = 0; g < groups.length; g++) {
|
|
1463
1765
|
html += '<div class="tfb-theme-cap">' + groups[g] + '</div>';
|
|
1464
1766
|
for (var i = 0; i < SK.ALL.length; i++) {
|
|
1465
1767
|
var sp = SK.ALL[i];
|
|
1466
1768
|
if (sp.group !== groups[g]) continue;
|
|
1467
|
-
var cur = sp.id ===
|
|
1769
|
+
var cur = !isAuto && sp.id === mySkinId();
|
|
1468
1770
|
html += '<div class="tfb-theme-row' + (cur ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + sp.id + '" title="' + sp.en + ' (方案 ' + sp.no + ')">' +
|
|
1469
1771
|
'<span class="tfb-theme-check">' + (cur ? "✓" : " ") + "</span>" + swdot(sp) +
|
|
1470
1772
|
'<span class="tfb-theme-label">' + sp.no + " · " + sp.name + "</span></div>";
|
|
1471
1773
|
}
|
|
1472
1774
|
}
|
|
1473
|
-
html += '<div class="tfb-theme-cap">经典(旧版)</div>';
|
|
1474
|
-
var order = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
|
|
1475
|
-
for (var j = 0; j < order.length; j++) {
|
|
1476
|
-
var th = order[j];
|
|
1477
|
-
var cur2 = !currentSkinId && th === currentTheme;
|
|
1478
|
-
html += '<div class="tfb-theme-row' + (cur2 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="legacy:' + th + '">' +
|
|
1479
|
-
'<span class="tfb-theme-check">' + (cur2 ? "✓" : " ") + "</span>" +
|
|
1480
|
-
'<span class="tfb-theme-label">' + (THEME_NAMES[th] || th) + "</span></div>";
|
|
1481
|
-
}
|
|
1482
|
-
} else {
|
|
1483
|
-
var order2 = ["nebula", "nebB", "nebC", "graphite", "blue", "glass"];
|
|
1484
|
-
for (var k = 0; k < order2.length; k++) {
|
|
1485
|
-
var th2 = order2[k];
|
|
1486
|
-
var cur3 = th2 === currentTheme;
|
|
1487
|
-
html += '<div class="tfb-theme-row' + (cur3 ? " tfb-cur" : "") + '" data-act="setTheme" data-sid="' + th2 + '">' +
|
|
1488
|
-
'<span class="tfb-theme-check">' + (cur3 ? "✓" : " ") + "</span>" +
|
|
1489
|
-
'<span class="tfb-theme-label">' + (THEME_NAMES[th2] || th2) + "</span></div>";
|
|
1490
|
-
}
|
|
1491
1775
|
}
|
|
1492
1776
|
ui.themeMenu.innerHTML = html;
|
|
1493
1777
|
}
|
|
@@ -1538,7 +1822,9 @@ window.__ModuleLoader__.load({
|
|
|
1538
1822
|
// overflowing text scrolls back and forth (marquee)
|
|
1539
1823
|
if (list.length) {
|
|
1540
1824
|
var c1 = countsOf(list);
|
|
1541
|
-
|
|
1825
|
+
// m03000: the ball LABEL already renders "✓" when everything is done,
|
|
1826
|
+
// so the capsule text must NOT repeat it (it showed two ticks).
|
|
1827
|
+
if (c1.done === c1.total) sub = "全部完成 " + c1.done + "/" + c1.total;
|
|
1542
1828
|
else {
|
|
1543
1829
|
var running = "";
|
|
1544
1830
|
for (var r = 0; r < list.length; r++) {
|
|
@@ -1561,7 +1847,7 @@ window.__ModuleLoader__.load({
|
|
|
1561
1847
|
} else if (pinned.length) {
|
|
1562
1848
|
for (var i = 0; i < pinned.length; i++) {
|
|
1563
1849
|
var pl = sessionTodos(pinned[i]);
|
|
1564
|
-
if (pl && countsOf(pl).active > 0) { sub =
|
|
1850
|
+
if (pl && countsOf(pl).active > 0) { sub = (sessionTitle(pinned[i]) || "固定会话") + " 进行中"; break; }
|
|
1565
1851
|
}
|
|
1566
1852
|
if (!sub) sub = "📋 暂无进行中任务";
|
|
1567
1853
|
} else {
|
|
@@ -1602,6 +1888,35 @@ window.__ModuleLoader__.load({
|
|
|
1602
1888
|
: "Todo 悬浮球 — 当前会话暂无任务(左键展开 · 右键胶囊 · 可拖动)");
|
|
1603
1889
|
}
|
|
1604
1890
|
|
|
1891
|
+
// Forced ink sync (m01506/m01527/m01766): paint the root class (CSS does
|
|
1892
|
+
// the colouring) and the header button face.
|
|
1893
|
+
function syncInk() {
|
|
1894
|
+
if (!ui.root) return;
|
|
1895
|
+
var m = (inkMode === "black" || inkMode === "white") ? inkMode : "auto";
|
|
1896
|
+
// m02830: official skins (129/130/auto) force ink by theme and lock the button
|
|
1897
|
+
var officialLocked = false;
|
|
1898
|
+
try {
|
|
1899
|
+
var sidNow = (typeof SK !== "undefined" && SK) ? mySkinId() : "";
|
|
1900
|
+
if (isOfficialSkin(sidNow)) {
|
|
1901
|
+
officialLocked = true;
|
|
1902
|
+
m = sidNow === "130" ? "black" : "white";
|
|
1903
|
+
}
|
|
1904
|
+
} catch (e2) {}
|
|
1905
|
+
if (ui.inkBtn) ui.inkBtn.classList.toggle("tfb-ink-lock", officialLocked);
|
|
1906
|
+
try {
|
|
1907
|
+
ui.root.classList.remove("tfb-ink-black", "tfb-ink-white");
|
|
1908
|
+
if (m !== "auto") ui.root.classList.add("tfb-ink-" + m);
|
|
1909
|
+
} catch (e) {}
|
|
1910
|
+
if (ui.inkBtn) {
|
|
1911
|
+
ui.inkBtn.classList.remove("tfb-ink-auto", "tfb-ink-black", "tfb-ink-white");
|
|
1912
|
+
ui.inkBtn.classList.add("tfb-ink-" + m);
|
|
1913
|
+
ui.inkBtn.innerHTML = m === "black" ? TFB_ICONS.inkBlack : m === "white" ? TFB_ICONS.inkWhite : TFB_ICONS.inkAuto;
|
|
1914
|
+
ui.inkBtn.title = "\u5f3a\u5236\u5168\u90e8\u6587\u5b57\u989c\u8272\uff1a" +
|
|
1915
|
+
(m === "black" ? "\u9ed1\u8272" : m === "white" ? "\u767d\u8272" : "\u81ea\u52a8\uff08\u8ddf\u968f\u76ae\u80a4\uff09") +
|
|
1916
|
+
"\uff08\u9762\u677f\u5185\u5916\u6240\u6709\u6587\u5b57\uff1b\u70b9\u51fb\u5207\u6362\uff1a\u81ea\u52a8 \u2192 \u9ed1 \u2192 \u767d\uff09";
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1605
1920
|
var layoutHz = false;
|
|
1606
1921
|
try { layoutHz = localStorage.getItem("dsh-todo-float-ball-layout") === "1"; } catch (e) {}
|
|
1607
1922
|
|
|
@@ -1610,6 +1925,7 @@ window.__ModuleLoader__.load({
|
|
|
1610
1925
|
// visibility restore) rather than a data refresh. Data-driven renders and
|
|
1611
1926
|
// the 2s watchdog call it plain, so the flicker guard keeps working.
|
|
1612
1927
|
function render(force) {
|
|
1928
|
+
syncInk();
|
|
1613
1929
|
renderBall(force);
|
|
1614
1930
|
renderList();
|
|
1615
1931
|
if (expanded && ui.panel) positionPanel();
|
|
@@ -1667,7 +1983,28 @@ window.__ModuleLoader__.load({
|
|
|
1667
1983
|
}
|
|
1668
1984
|
|
|
1669
1985
|
function buildUI() {
|
|
1670
|
-
|
|
1986
|
+
// HOT-RELOAD FIX (v0.14.6) — a host left behind by a PREVIOUS instance
|
|
1987
|
+
// must never block this one.
|
|
1988
|
+
//
|
|
1989
|
+
// Symptom this repairs: after a client hot reload (Ctrl+Shift+R) the old
|
|
1990
|
+
// `#dsh-tfb-root` shadow host is still in the DOM, so the old guard
|
|
1991
|
+
// `if (getElementById(BALL_ID)) return;` made this instance bail out
|
|
1992
|
+
// before it ever built its own UI. `ui.ball` stayed null, so every
|
|
1993
|
+
// `renderBall()` was a no-op (`if (!ui.ball) return;`) and the ball on
|
|
1994
|
+
// screen kept showing the numbers the DEAD instance computed. Measured
|
|
1995
|
+
// on 2026-10-19: authoritative data was 7/12 while the visible capsule
|
|
1996
|
+
// still read 11/18, and `renderCalls=0` on the new instance.
|
|
1997
|
+
//
|
|
1998
|
+
// Ownership test: only OUR OWN host may short-circuit. A host whose
|
|
1999
|
+
// shadow root is not `ui.shadow` belongs to somebody else (or to a
|
|
2000
|
+
// previous incarnation) and gets removed so we can build cleanly.
|
|
2001
|
+
var existing = document.getElementById(BALL_ID);
|
|
2002
|
+
if (existing) {
|
|
2003
|
+
if (ui.shadow && ui.shadow.host === existing) return;
|
|
2004
|
+
try { existing.remove(); } catch (eRm) {}
|
|
2005
|
+
ui = { root: null, styleEl: null, shadow: null, ball: null, panel: null, list: null, summary: null, ctitle: null, pinBtn: null, pinSec: null, themeMenu: null };
|
|
2006
|
+
lastBallSig = null;
|
|
2007
|
+
}
|
|
1671
2008
|
if (!document.body) return;
|
|
1672
2009
|
try { fetch("/dsh-todo-float-ball/client-alive").catch(function () {}); } catch (e) {}
|
|
1673
2010
|
|
|
@@ -1682,20 +2019,26 @@ window.__ModuleLoader__.load({
|
|
|
1682
2019
|
root.className = "tfb-root";
|
|
1683
2020
|
root.innerHTML =
|
|
1684
2021
|
'<button class="tfb-ball tfb-idle" type="button">' +
|
|
1685
|
-
'<span class="tfb-orb-band"></span>' +
|
|
1686
2022
|
'<span class="tfb-orb-rim"></span>' +
|
|
2023
|
+
'<span class="tfb-orb-band"></span>' +
|
|
1687
2024
|
'<span class="tfb-ring"></span>' +
|
|
1688
2025
|
'<span class="tfb-label">✓</span><span class="tfb-sub"></span>' +
|
|
1689
2026
|
"</button>" +
|
|
1690
2027
|
'<div class="tfb-panel">' +
|
|
1691
2028
|
'<div class="tfb-head">' +
|
|
1692
|
-
'<
|
|
1693
|
-
|
|
1694
|
-
|
|
2029
|
+
'<div class="tfb-head-row1">' +
|
|
2030
|
+
'<span class="tfb-ctitle"></span>' +
|
|
2031
|
+
"</div>" +
|
|
2032
|
+
'<div class="tfb-head-row2">' +
|
|
1695
2033
|
'<span class="tfb-summary"></span>' +
|
|
1696
|
-
'<button class="tfb-btn" data-act="
|
|
1697
|
-
'<button class="tfb-btn" data-act="
|
|
1698
|
-
'<button class="tfb-btn" data-act="
|
|
2034
|
+
'<button class="tfb-btn" data-act="toggleLayout" title="切换面板布局:上下/左右" type="button">' + TFB_ICONS.layout + '</button>' +
|
|
2035
|
+
'<button class="tfb-btn" data-act="pin" type="button" title="固定会话">' + TFB_ICONS.pin + '</button>' +
|
|
2036
|
+
'<button class="tfb-btn" data-act="resetPos" type="button" title="归位到右下角">' + TFB_ICONS.target + '</button>' +
|
|
2037
|
+
'<button class="tfb-btn" data-act="themeMenu" type="button" title="切换皮肤">' + TFB_ICONS.palette + '</button>' +
|
|
2038
|
+
'<button class="tfb-btn tfb-ink-btn" data-act="ink" type="button" title="强制全部文字颜色:自动 / 黑 / 白">' + TFB_ICONS.inkAuto + '</button>' +
|
|
2039
|
+
'<button class="tfb-btn" data-act="close" type="button" title="折叠">' + TFB_ICONS.close + '</button>' +
|
|
2040
|
+
'<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>' +
|
|
2041
|
+
"</div>" +
|
|
1699
2042
|
"</div>" +
|
|
1700
2043
|
'<div class="tfb-theme-menu"></div>' +
|
|
1701
2044
|
'<div class="tfb-col tfb-col-cur">' +
|
|
@@ -1703,10 +2046,11 @@ window.__ModuleLoader__.load({
|
|
|
1703
2046
|
'<ul class="tfb-list"></ul>' +
|
|
1704
2047
|
"</div>" +
|
|
1705
2048
|
'<div class="tfb-col tfb-col-pin">' +
|
|
1706
|
-
'<div class="tfb-colcap" data-cap="pin"
|
|
2049
|
+
'<div class="tfb-colcap" data-cap="pin">固定会话</div>' +
|
|
1707
2050
|
'<div class="tfb-pinsec"></div>' +
|
|
1708
2051
|
"</div>" +
|
|
1709
|
-
|
|
2052
|
+
// 2026-10-28 (m01008): hint line removed — every action already has a
|
|
2053
|
+
// hover title. 🎯 归位 moved into header row2 as an icon-only button.
|
|
1710
2054
|
"</div>";
|
|
1711
2055
|
shadow.appendChild(root);
|
|
1712
2056
|
|
|
@@ -1731,6 +2075,7 @@ window.__ModuleLoader__.load({
|
|
|
1731
2075
|
ui.ctitle = root.querySelector(".tfb-ctitle");
|
|
1732
2076
|
ui.summary = root.querySelector(".tfb-summary");
|
|
1733
2077
|
ui.pinBtn = root.querySelector('[data-act="pin"]');
|
|
2078
|
+
ui.inkBtn = root.querySelector('[data-act="ink"]');
|
|
1734
2079
|
ui.pinSec = root.querySelector(".tfb-pinsec");
|
|
1735
2080
|
ui.capCur = root.querySelector('[data-cap="cur"]');
|
|
1736
2081
|
ui.themeMenu = root.querySelector(".tfb-theme-menu");
|
|
@@ -1827,6 +2172,16 @@ window.__ModuleLoader__.load({
|
|
|
1827
2172
|
else if (act === "pin") {
|
|
1828
2173
|
if (!currentSid) return;
|
|
1829
2174
|
if (isPinned(currentSid)) unpin(currentSid); else pin(currentSid);
|
|
2175
|
+
} else if (act === "ink") {
|
|
2176
|
+
// Cycle the forced ball-text colour: auto -> black -> white -> auto.
|
|
2177
|
+
e.stopPropagation();
|
|
2178
|
+
try {
|
|
2179
|
+
var sidLock = (typeof SK !== "undefined" && SK) ? mySkinId() : "";
|
|
2180
|
+
if (isOfficialSkin(sidLock)) { syncInk(); return; } // m02830 locked
|
|
2181
|
+
} catch (eL) {}
|
|
2182
|
+
inkMode = inkMode === "black" ? "white" : inkMode === "white" ? "auto" : "black";
|
|
2183
|
+
try { localStorage.setItem(INK_KEY, inkMode); } catch (err) {}
|
|
2184
|
+
syncInk();
|
|
1830
2185
|
} else if (act === "resetPos") {
|
|
1831
2186
|
try { localStorage.removeItem(POS_KEY); } catch (err) {}
|
|
1832
2187
|
if (ui.ball) { ui.ball.style.left = "auto"; ui.ball.style.top = "auto"; ui.ball.style.right = "18px"; ui.ball.style.bottom = "18px"; }
|
|
@@ -1928,18 +2283,23 @@ window.__ModuleLoader__.load({
|
|
|
1928
2283
|
if (ui.themeMenu) ui.themeMenu.classList.toggle("tfb-open");
|
|
1929
2284
|
renderThemeMenu();
|
|
1930
2285
|
e.stopPropagation();
|
|
2286
|
+
} else if (act === "toggleSync") {
|
|
2287
|
+
setSyncOn(!isSyncOn());
|
|
2288
|
+
applyThemeNow();
|
|
2289
|
+
renderThemeMenu();
|
|
2290
|
+
e.stopPropagation();
|
|
1931
2291
|
} else if (act === "setTheme" && sid) {
|
|
1932
|
-
// pick a skin: "legacy:<id>"
|
|
2292
|
+
// pick a skin: shared catalog id (classic "legacy:<id>" menu entries removed 2026-10-29)
|
|
1933
2293
|
if (sid.indexOf("legacy:") === 0) {
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2294
|
+
// legacy classic skins were removed from the menu; ignore stale ids
|
|
2295
|
+
} else if (sid === "auto" && SK) {
|
|
2296
|
+
legacyPicked = false;
|
|
2297
|
+
setSkinClassic(false);
|
|
2298
|
+
pickSkin("auto");
|
|
1939
2299
|
} else if (SK && SK.BY_ID[sid]) {
|
|
1940
|
-
currentSkinId = sid;
|
|
1941
2300
|
legacyPicked = false;
|
|
1942
|
-
|
|
2301
|
+
setSkinClassic(false);
|
|
2302
|
+
pickSkin(sid);
|
|
1943
2303
|
}
|
|
1944
2304
|
try {
|
|
1945
2305
|
refreshStyleSheet();
|
|
@@ -2013,11 +2373,12 @@ window.__ModuleLoader__.load({
|
|
|
2013
2373
|
legacyPicked = true;
|
|
2014
2374
|
currentTheme = theme;
|
|
2015
2375
|
try { localStorage.setItem(THEME_KEY, theme); } catch (err) {}
|
|
2016
|
-
|
|
2376
|
+
setSkinClassic(true);
|
|
2017
2377
|
applyThemeNow();
|
|
2018
2378
|
return;
|
|
2019
2379
|
}
|
|
2020
|
-
if (SK && SK.BY_ID[theme]) { SK.setSkin(theme); return; }
|
|
2380
|
+
if (SK && SK.BY_ID[theme]) { setSkinClassic(false); SK.setSkin(theme); return; }
|
|
2381
|
+
if (theme === "auto") { setSkinClassic(false); SK.setSkin("auto"); return; }
|
|
2021
2382
|
return;
|
|
2022
2383
|
}, true);
|
|
2023
2384
|
}
|
|
@@ -2069,9 +2430,9 @@ window.__ModuleLoader__.load({
|
|
|
2069
2430
|
} catch (e) {}
|
|
2070
2431
|
try {
|
|
2071
2432
|
if (SK) {
|
|
2433
|
+
migrateLegacySharedKey();
|
|
2072
2434
|
var skv = readSharedKey();
|
|
2073
|
-
if (
|
|
2074
|
-
else if (skv === "legacy" && currentSkinId) applyThemeNow();
|
|
2435
|
+
if (isSyncOn() && skv && SK.BY_ID[skv] && skv !== currentSkinId) applyThemeNow();
|
|
2075
2436
|
}
|
|
2076
2437
|
} catch (e2) {}
|
|
2077
2438
|
}, 2000);
|
|
@@ -2118,10 +2479,9 @@ window.__ModuleLoader__.load({
|
|
|
2118
2479
|
// the sibling settings section can invoke it synchronously on click.
|
|
2119
2480
|
function applyThemeNow() {
|
|
2120
2481
|
try {
|
|
2121
|
-
|
|
2122
|
-
if (
|
|
2123
|
-
else if (
|
|
2124
|
-
else if ((!raw || (SK && raw === SK.DEFAULT_ID)) && SK && !legacyPicked) { currentSkinId = SK.DEFAULT_ID; }
|
|
2482
|
+
migrateLegacySharedKey();
|
|
2483
|
+
if (isSkinClassic()) { currentSkinId = null; legacyPicked = true; }
|
|
2484
|
+
else if (SK) { currentSkinId = mySkinId(); legacyPicked = false; }
|
|
2125
2485
|
} catch (e) {}
|
|
2126
2486
|
if (!currentSkinId) {
|
|
2127
2487
|
var v = getCfg(THEME_KEY, DEFAULTS.theme);
|
|
@@ -2145,6 +2505,10 @@ window.__ModuleLoader__.load({
|
|
|
2145
2505
|
loadHidden();
|
|
2146
2506
|
loadTheme();
|
|
2147
2507
|
try { capsule = getCfg(CAPSULE_KEY, DEFAULTS.capsule) === "1"; } catch (e) {}
|
|
2508
|
+
try {
|
|
2509
|
+
var inkRaw = getCfg(INK_KEY, DEFAULTS.ink);
|
|
2510
|
+
inkMode = (inkRaw === "black" || inkRaw === "white") ? inkRaw : "auto";
|
|
2511
|
+
} catch (e) { inkMode = "auto"; }
|
|
2148
2512
|
restorePersisted();
|
|
2149
2513
|
if (ui.panel && layoutHz) ui.panel.classList.add("tfb-hz");
|
|
2150
2514
|
// primary data channel: the official sessions service
|