mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23:03 +08:00
optimze(gui): 优化删除按钮样式,使其更加醒目;优化 ALTimerTaskManageWidget 的宽度
- 优化了 ALConfigWidget, ALTimerTaskManageWidget 中的删除按钮样式(字体颜色更改为红色),使其更加醒目 - 优化了 ALTimerTaskManageWidget 的宽度,使其适应内容宽度
This commit is contained in:
@@ -132,16 +132,17 @@ class ALTimerTaskItemWidget(QWidget):
|
|||||||
TaskModeLabel.setFixedSize(60, 25)
|
TaskModeLabel.setFixedSize(60, 25)
|
||||||
self.ItemWidgetLayout.addWidget(TaskModeLabel)
|
self.ItemWidgetLayout.addWidget(TaskModeLabel)
|
||||||
|
|
||||||
self.DeleteButton = QPushButton("删除")
|
|
||||||
self.DeleteButton.setFixedSize(80, 25)
|
|
||||||
self.ItemWidgetLayout.addWidget(self.DeleteButton)
|
|
||||||
if self.__timer_task["status"] == ALTimerTaskStatus.READY\
|
|
||||||
or self.__timer_task["status"] == ALTimerTaskStatus.RUNNING:
|
|
||||||
self.DeleteButton.setEnabled(False)
|
|
||||||
if self.__timer_task.get("repeat", False):
|
if self.__timer_task.get("repeat", False):
|
||||||
self.HistoryButton = QPushButton("历史")
|
self.HistoryButton = QPushButton("历史")
|
||||||
self.HistoryButton.setFixedSize(80, 25)
|
self.HistoryButton.setFixedSize(80, 25)
|
||||||
self.ItemWidgetLayout.addWidget(self.HistoryButton)
|
self.ItemWidgetLayout.addWidget(self.HistoryButton)
|
||||||
|
self.DeleteButton = QPushButton("删除")
|
||||||
|
self.DeleteButton.setFixedSize(80, 25)
|
||||||
|
self.DeleteButton.setStyleSheet("color: #DC0000;")
|
||||||
|
self.ItemWidgetLayout.addWidget(self.DeleteButton)
|
||||||
|
if self.__timer_task["status"] == ALTimerTaskStatus.READY\
|
||||||
|
or self.__timer_task["status"] == ALTimerTaskStatus.RUNNING:
|
||||||
|
self.DeleteButton.setEnabled(False)
|
||||||
self.setFixedHeight(55)
|
self.setFixedHeight(55)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -195,6 +195,11 @@
|
|||||||
<height>25</height>
|
<height>25</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton {
|
||||||
|
color: #DC0000;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>删除用户</string>
|
<string>删除用户</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>500</width>
|
||||||
<height>400</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>400</width>
|
<width>500</width>
|
||||||
<height>400</height>
|
<height>400</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -306,6 +306,11 @@
|
|||||||
<height>25</height>
|
<height>25</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton {
|
||||||
|
color: #DC0000;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>清除全部</string>
|
<string>清除全部</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user