fix(panels): 图标库和调色板默认收起
- 调色板展开状态不再从 saved state 恢复,默认始终收起 - 调色板 body 初始可见性设为 GONE,避免创建时显示 - 移除切换到 ShortX 图标模式时自动展开图标库的逻辑 - 保留展开/收起按钮,用户手动点击才展开
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user