feat: checkpoint QML view migration

This commit is contained in:
dela
2026-07-15 11:57:34 +08:00
parent 3002adb7bf
commit b117bbf99e
133 changed files with 23964 additions and 17074 deletions
+21 -4
View File
@@ -98,6 +98,7 @@ QAbstractScrollArea::corner {
QWK--WindowBar[bar-active=true],
QWK--WindowBar[bar-active=false] {
background-color: transparent;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
QWK--WindowBar>QLabel#win-title-slot,
@@ -129,17 +130,19 @@ QLabel#mac-title-label {
/* 标题栏居中全局搜索框 */
QLineEdit#titlebar-search {
background-color: #1E293B;
border: 1px solid transparent;
border: 1px solid #334155;
border-radius: 14px;
padding: 0px 18px 0px 8px;
font-size: 13px;
font-weight: 500;
color: #F8FAFC;
selection-background-color: #3B82F6;
margin: 0;
}
QLineEdit#titlebar-search:hover {
background-color: #334155;
background-color: #1E293B;
border: 1px solid #475569;
}
QLineEdit#titlebar-search:focus {
@@ -333,6 +336,17 @@ QWK--WindowBar QAbstractButton[system-button=true] {
background-color: transparent;
}
/* 导航/主题按钮:悬浮圆角胶囊,区别于右侧全高的系统窗口按钮 */
QWK--WindowBar QAbstractButton#back-button,
QWK--WindowBar QAbstractButton#home-button,
QWK--WindowBar QAbstractButton#fav-button,
QWK--WindowBar QAbstractButton#theme-button,
QWK--WindowBar QAbstractButton#pin-button {
min-width: 38px;
margin: 4px 2px;
border-radius: 6px;
}
QWK--WindowBar QAbstractButton#pin-button {
qproperty-iconNormal: url(":/svg/dark/pin.svg");
qproperty-iconChecked: url(":/svg/dark/pin-fill.svg");
@@ -354,11 +368,11 @@ QWK--WindowBar QAbstractButton#max-button:pressed {
}
QWK--WindowBar QAbstractButton#fav-button {
margin-right: 10px;
margin-right: 12px;
}
QWidget#mac-titlebar-nav QAbstractButton#fav-button {
margin-right: 0px;
margin-right: 2px;
}
QWK--WindowBar QAbstractButton#back-button:pressed,
@@ -373,14 +387,17 @@ QWK--WindowBar QAbstractButton#min-button {
QWK--WindowBar QAbstractButton#back-button {
qproperty-iconNormal: url(":/svg/dark/arrow-left.svg");
qproperty-iconSize: 14px 14px;
}
QWK--WindowBar QAbstractButton#home-button {
qproperty-iconNormal: url(":/svg/dark/bar-home.svg");
qproperty-iconSize: 14px 14px;
}
QWK--WindowBar QAbstractButton#fav-button {
qproperty-iconNormal: url(":/svg/dark/bar-heart.svg");
qproperty-iconSize: 14px 14px;
}
QWK--WindowBar QAbstractButton#max-button {
+23 -7
View File
@@ -97,6 +97,7 @@ QAbstractScrollArea::corner {
QWK--WindowBar[bar-active=true],
QWK--WindowBar[bar-active=false] {
background-color: transparent;
border-bottom: 1px solid #E2E8F0;
}
QWK--WindowBar>QLabel#win-title-slot,
@@ -127,8 +128,8 @@ QLabel#mac-title-label {
========================================= */
/* 标题栏居中全局搜索框 */
QLineEdit#titlebar-search {
background-color: #F1F5F9;
border: 1px solid transparent;
background-color: #FFFFFF;
border: 1px solid #E2E8F0;
border-radius: 14px;
/* 32px 高度对应的完美胶囊圆角 */
padding: 0px 18px 0px 8px;
@@ -136,12 +137,13 @@ QLineEdit#titlebar-search {
font-size: 13px;
font-weight: 500;
color: #1E293B;
selection-background-color: #3B82F6;
margin: 0;
}
QLineEdit#titlebar-search:hover {
background-color: #E2E8F0;
/* 悬浮微量加深 */
background-color: #FFFFFF;
border: 1px solid #CBD5E1;
}
QLineEdit#titlebar-search:focus {
@@ -339,6 +341,17 @@ QWK--WindowBar QAbstractButton[system-button=true] {
background-color: transparent;
}
/* 导航/主题按钮:悬浮圆角胶囊,区别于右侧全高的系统窗口按钮 */
QWK--WindowBar QAbstractButton#back-button,
QWK--WindowBar QAbstractButton#home-button,
QWK--WindowBar QAbstractButton#fav-button,
QWK--WindowBar QAbstractButton#theme-button,
QWK--WindowBar QAbstractButton#pin-button {
min-width: 38px;
margin: 4px 2px;
border-radius: 6px;
}
QWK--WindowBar QAbstractButton#pin-button {
qproperty-iconNormal: url(":/svg/light/pin.svg");
qproperty-iconChecked: url(":/svg/light/pin-fill.svg");
@@ -360,18 +373,18 @@ QWK--WindowBar QAbstractButton#max-button:pressed {
}
QWK--WindowBar QAbstractButton#fav-button {
margin-right: 10px;
margin-right: 12px;
}
QWidget#mac-titlebar-nav QAbstractButton#fav-button {
margin-right: 0px;
margin-right: 2px;
}
QWK--WindowBar QAbstractButton#back-button:pressed,
QWK--WindowBar QAbstractButton#home-button:pressed,
QWK--WindowBar QAbstractButton#fav-button:pressed {
background-color: rgba(0, 0, 0, 18%);
background-color: rgba(0, 0, 0, 12%);
}
QWK--WindowBar QAbstractButton#min-button {
@@ -380,14 +393,17 @@ QWK--WindowBar QAbstractButton#min-button {
QWK--WindowBar QAbstractButton#back-button {
qproperty-iconNormal: url(":/svg/light/arrow-left.svg");
qproperty-iconSize: 14px 14px;
}
QWK--WindowBar QAbstractButton#home-button {
qproperty-iconNormal: url(":/svg/light/bar-home.svg");
qproperty-iconSize: 14px 14px;
}
QWK--WindowBar QAbstractButton#fav-button {
qproperty-iconNormal: url(":/svg/light/bar-heart.svg");
qproperty-iconSize: 14px 14px;
}