1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-18 07:23:03 +08:00

feat(gui): 为右侧配置面板添加滚动区域,放宽宽度限制

- AppearancePageLayout 包裹在 QScrollArea 内,内容溢出时可滚动
- 移除垂直 Spacer(滚动区域内不需要)
- 最小宽度 400→480,最大宽度 500→580,最大高度 420→不限
- .ui 与 Ui_ALSettingsWidget.py 同步更新
This commit is contained in:
2026-05-30 22:02:43 +08:00
parent 1cfd7382be
commit e893752c25
2 changed files with 40 additions and 35 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class ALSettingsWidget(QWidget, Ui_ALSettingsWidget):
brief = t.get("brief", "没有相关简介")
self.ThemeInfoLabel.setText(
f"<b>{name}</b><br>"
f"适用于 {_themeToReadable(need_theme)} 主题<br>"
f" - 适用于 {_themeToReadable(need_theme)} 主题<br>"
f"作者:{author}<br>"
f"{brief}"
)
+22 -17
View File
@@ -6,20 +6,20 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<width>520</width>
<height>420</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<width>480</width>
<height>420</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>500</width>
<height>420</height>
<width>580</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle">
@@ -104,6 +104,22 @@
</widget>
</item>
<item>
<widget class="QScrollArea" name="AppearanceScrollArea">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="AppearancePageContent">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>450</width>
<height>380</height>
</rect>
</property>
<layout class="QVBoxLayout" name="AppearancePageLayout">
<property name="spacing">
<number>5</number>
@@ -402,20 +418,9 @@
</layout>
</widget>
</item>
<item>
<spacer name="AppearancePageSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</item>