From b61c27ee85d1a93bca55e978e884d6ed746921f7 Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 20 Apr 2026 14:55:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(panels):=20=E5=9B=BE=E6=A0=87=E5=BA=93?= =?UTF-8?q?=E5=92=8C=E8=B0=83=E8=89=B2=E6=9D=BF=E9=BB=98=E8=AE=A4=E6=94=B6?= =?UTF-8?q?=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调色板展开状态不再从 saved state 恢复,默认始终收起 - 调色板 body 初始可见性设为 GONE,避免创建时显示 - 移除切换到 ShortX 图标模式时自动展开图标库的逻辑 - 保留展开/收起按钮,用户手动点击才展开 --- code/th_14_panels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/th_14_panels.js b/code/th_14_panels.js index b8297b3..7f85dcd 100644 --- a/code/th_14_panels.js +++ b/code/th_14_panels.js @@ -694,7 +694,7 @@ FloatBallAppWM.prototype.buildButtonEditorPanelView = function() { var tintSavedState = null; try { tintSavedState = self.loadPanelState(tintPalettePanelKey); } catch(eTintState0) { tintSavedState = null; } var tintPaletteState = { - expanded: !!(tintSavedState && tintSavedState.expanded), + expanded: false, recentColors: [], syncing: false, currentBaseRgbHex: "", @@ -1464,6 +1464,7 @@ FloatBallAppWM.prototype.buildButtonEditorPanelView = function() { tintPaletteBody.setPadding(self.dp(12), 0, self.dp(12), self.dp(12)); tintPaletteWrap.addView(tintPaletteBody); tintPaletteState.body = tintPaletteBody; + tintPaletteBody.setVisibility(android.view.View.GONE); var tintPreviewCard = new android.widget.LinearLayout(context); tintPreviewCard.setOrientation(android.widget.LinearLayout.HORIZONTAL); @@ -1771,7 +1772,6 @@ FloatBallAppWM.prototype.buildButtonEditorPanelView = function() { inputIconPath.input.setText(""); syncTintUiFromInput(false); updateShortXIconPreview(); - setShortXPickerExpanded(true, true); } }