完成0.01版本
This commit is contained in:
@@ -181,7 +181,7 @@ class SettingsWindow(QDialog):
|
||||
|
||||
layout.addWidget(self._section_title("窗口行为"))
|
||||
|
||||
self._pin_check = QCheckBox("固定面板(不自动隐藏)")
|
||||
self._pin_check = QCheckBox("固定面板(置顶、不自动隐藏)")
|
||||
self._pin_check.setChecked(self._panel._pinned)
|
||||
self._pin_check.toggled.connect(self._on_pin)
|
||||
layout.addWidget(self._pin_check)
|
||||
@@ -213,11 +213,7 @@ class SettingsWindow(QDialog):
|
||||
|
||||
def _on_pin(self, checked: bool):
|
||||
self._panel._pinned = checked
|
||||
ic = "#cccccc" if theme.name() == "dark" else "#555555"
|
||||
import qtawesome as qta
|
||||
self._panel.pin_btn.setIcon(
|
||||
qta.icon("fa5s.thumbtack", color="#f90" if checked else ic)
|
||||
)
|
||||
self._panel._sync_pin_dependent_ui()
|
||||
|
||||
def _on_icon_size(self):
|
||||
val = self._icon_size_spin.value()
|
||||
|
||||
Reference in New Issue
Block a user