dsh-mpkg-wallpaper 3.3.0 → 3.3.1
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/lib/client.js +4 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
window.__ModuleLoader__.load({
|
|
2
|
-
id: "
|
|
2
|
+
id: "dsh-mpkg-wallpaper",
|
|
3
3
|
factory: (require) => {
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
@@ -1835,7 +1835,7 @@ window.__ModuleLoader__.load({
|
|
|
1835
1835
|
} catch {}
|
|
1836
1836
|
try {
|
|
1837
1837
|
if (tokenDisposer) { tokenDisposer(); tokenDisposer = null; }
|
|
1838
|
-
tokenDisposer = ctx.theme.overrideTokens("
|
|
1838
|
+
tokenDisposer = ctx.theme.overrideTokens("dsh-mpkg-wallpaper-tokens", overrides);
|
|
1839
1839
|
} catch (err) { console.error("[dsh-mpkg-wallpaper] overrideTokens failed:", err); }
|
|
1840
1840
|
} /**
|
|
1841
1841
|
* ⑭ 内联应用对话框虚化 + fade 修复(绕过 CSS 选择器匹配问题)。
|
|
@@ -2005,7 +2005,7 @@ window.__ModuleLoader__.load({
|
|
|
2005
2005
|
// 表面 sidebarAlpha 半透明透出 —— 零 z-index、零 backdrop-filter、
|
|
2006
2006
|
// 不困弹窗、不盖内容、设置界面 100% 干净。
|
|
2007
2007
|
const frostedLayers = "";
|
|
2008
|
-
let css = `/* ── 背景插件
|
|
2008
|
+
let css = `/* ── 背景插件 dsh-mpkg-wallpaper v3 生成的样式 ── */\n`;
|
|
2009
2009
|
// ①(修正) 灰字颜色必须在 buildCss 最开头生成——否则无壁纸分支(if(!hasImage))
|
|
2010
2010
|
// 会提前 return,这段样式根本不会注入(用户实测开灰字开关没效果:正因没设壁纸)。
|
|
2011
2011
|
// ①(修正) 开启但未选自定义色 → 保持主题灰(= 关闭态,一致);只有显式选了
|
|
@@ -6448,7 +6448,7 @@ body[data-mpw-modal] [role="dialog"] {
|
|
|
6448
6448
|
function getStyleEl() {
|
|
6449
6449
|
if (!styleEl) {
|
|
6450
6450
|
styleEl = document.createElement("style");
|
|
6451
|
-
styleEl.setAttribute("data-plugin", "
|
|
6451
|
+
styleEl.setAttribute("data-plugin", "dsh-mpkg-wallpaper");
|
|
6452
6452
|
(document.head || document.documentElement).appendChild(styleEl);
|
|
6453
6453
|
}
|
|
6454
6454
|
return styleEl;
|
package/package.json
CHANGED