dsh-folia 3.9.0 → 3.9.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 +11 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -25741,6 +25741,17 @@ window.__ModuleLoader__.load({
|
|
|
25741
25741
|
* 退出让路时立刻原样恢复。
|
|
25742
25742
|
*/
|
|
25743
25743
|
function syncPluginCssForSkin() {
|
|
25744
|
+
// ⚠️ 默认**不**整表禁用。3.9.0 试过一次"皮肤在台就关掉整张样式表",代价是:
|
|
25745
|
+
// 我们的面板失去可读底色,皮肤的底图直接透上来,字全糊 —— 插件等于不能用了。
|
|
25746
|
+
// 皮肤和壁纸是两个都在重绘整个界面的产品,CSS 层面无法各让一半:整表关掉
|
|
25747
|
+
// 皮肤完整但我们不可用,整表开着我们可用但皮肤被压。折中只保留"玻璃效果族
|
|
25748
|
+
// 退场"(它已经由 data-we-* 属性门控),样式表本体始终在 —— 保证可读性优先。
|
|
25749
|
+
// 需要皮肤完全接管时,用环境变量 DSH_FOLIA_YIELD_CSS=1 显式开启整表让位。
|
|
25750
|
+
// 前端没有 process.env(那是宿主侧的),开关放在 localStorage:
|
|
25751
|
+
// localStorage.setItem("folia.yieldCss", "1") → 刷新后启用整表让位
|
|
25752
|
+
let want = false;
|
|
25753
|
+
try { want = window.localStorage.getItem("folia.yieldCss") === "1"; } catch { want = false; }
|
|
25754
|
+
if (!want) return;
|
|
25744
25755
|
try {
|
|
25745
25756
|
const tag = document.querySelector('style[data-plugin-css="dsh-folia/styles-v3"]');
|
|
25746
25757
|
if (tag === null) return;
|