144 lines
3.5 KiB
XML
144 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>diagramView</class>
|
|
<widget class="QDialog" name="diagramView">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>266</width>
|
|
<height>455</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Dialog</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QPushButton" name="btn_new">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #5a79a1; /* 中性灰蓝,不刺眼 */
|
|
color: white;
|
|
border: none; /* 无边框,扁平化 */
|
|
border-radius: 4px; /* 小圆角,扁平感 */
|
|
font-size: 13px; /* 适中字号 */
|
|
font-weight: 500; /* 中等字重 */
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #4a5d7e; /* 稍深的灰蓝 */
|
|
}
|
|
|
|
QPushButton:pressed {
|
|
background-color: #3d4e6b; /* 更深的灰蓝 */
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #a0b3d1; /* 灰调的浅蓝 */
|
|
color: #d1dce9; /* 浅灰色文字 */
|
|
}
|
|
</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>新建</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btn_save">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #5a79a1; /* 中性灰蓝,不刺眼 */
|
|
color: white;
|
|
border: none; /* 无边框,扁平化 */
|
|
border-radius: 4px; /* 小圆角,扁平感 */
|
|
font-size: 13px; /* 适中字号 */
|
|
font-weight: 500; /* 中等字重 */
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #4a5d7e; /* 稍深的灰蓝 */
|
|
}
|
|
|
|
QPushButton:pressed {
|
|
background-color: #3d4e6b; /* 更深的灰蓝 */
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #a0b3d1; /* 灰调的浅蓝 */
|
|
color: #d1dce9; /* 浅灰色文字 */
|
|
}
|
|
</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>保存</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>12</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>搜索</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit">
|
|
<property name="styleSheet">
|
|
<string notr="true">QLineEdit.underline {
|
|
border: none;
|
|
border-bottom: 2px solid #4CAF50;
|
|
padding: 5px 0;
|
|
background: transparent;
|
|
}
|
|
|
|
QLineEdit.underline:focus {
|
|
border-bottom: 2px solid #FF9800;
|
|
}</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QTreeView" name="treeView"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|