Skip to content

Commit e65a190

Browse files
authored
[216_37] 启动页背景颜色调整 (#3264)
1 parent 53e6513 commit e65a190

5 files changed

Lines changed: 28 additions & 11 deletions

File tree

TeXmacs/misc/themes/liii-night.css

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,22 @@ QWidget#centralWidget QPushButton#startup-tab-quit-btn:hover {
10141014

10151015
/* 右侧内容区 */
10161016
QWidget#centralWidget QWidget#startup-tab-content {
1017-
background-color: #202020;
1017+
background-color: #2c2c2c;
1018+
}
1019+
1020+
QWidget#centralWidget QWidget#startup-tab-file-cards,
1021+
QWidget#centralWidget QWidget#startup-tab-category-bar,
1022+
QWidget#centralWidget QWidget#startup-tab-template-item,
1023+
QWidget#centralWidget QLabel#startup-tab-template-name,
1024+
QWidget#centralWidget QLabel#startup-tab-template-info {
1025+
background-color: #2c2c2c;
10181026
}
10191027

10201028
/* 页面标题 */
1021-
QLabel#startup-tab-page-title {
1029+
QWidget#centralWidget QLabel#startup-tab-page-title {
10221030
font-weight: bold;
10231031
color: #ffffff;
1032+
background: #2c2c2c;
10241033
}
10251034

10261035
/* 页面描述文字 */
@@ -1045,6 +1054,11 @@ QPushButton#startup-tab-category-btn:checked {
10451054
color: white;
10461055
}
10471056

1057+
/* 模板网格容器 */
1058+
QWidget#centralWidget QWidget#startup-tab-grid {
1059+
background-color: #2c2c2c;
1060+
}
1061+
10481062
/* 模板缩略图卡片 */
10491063
QFrame#startup-tab-template-card {
10501064
border: 1px solid #3c3c3c;
@@ -1100,9 +1114,10 @@ QFrame#startup-tab-separator {
11001114
color: #4a4f57;
11011115
}
11021116

1103-
QLabel#startup-tab-section-title {
1117+
QWidget#centralWidget QLabel#startup-tab-section-title {
11041118
font-weight: 600;
11051119
color: #f0f4f7;
1120+
background-color: #2c2c2c;
11061121
}
11071122

11081123
QListWidget#recent-docs-list {
@@ -1164,7 +1179,6 @@ QLabel#style-card-thumbnail {
11641179
}
11651180

11661181
QLabel#style-card-title {
1167-
background-color: #3a3a3a;
11681182
color: #e2e8ee;
11691183
}
11701184

TeXmacs/misc/themes/liii.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ QPushButton#startup-tab-quit-btn:hover {
10181018

10191019
/* 右侧内容区 */
10201020
QWidget#startup-tab-content {
1021-
background-color: #ffffff;
1021+
background-color: #f3f3f3;
10221022
}
10231023

10241024
/* 页面标题 */
@@ -1040,7 +1040,7 @@ QPushButton#startup-tab-category-btn {
10401040
}
10411041

10421042
QPushButton#startup-tab-category-btn:hover {
1043-
background: #F0F0F0;
1043+
background: #dfdfdf;
10441044
color: #333333;
10451045
}
10461046

@@ -1051,7 +1051,7 @@ QPushButton#startup-tab-category-btn:checked {
10511051

10521052
/* 模板网格容器 */
10531053
QWidget#startup-tab-grid {
1054-
background-color: #ffffff;
1054+
background-color: #f3f3f3;
10551055
}
10561056

10571057
/* 模板缩略图卡片 */
@@ -1136,6 +1136,7 @@ QLabel#startup-tab-recent-name {
11361136
}
11371137

11381138
QWidget#style-card {
1139+
background-color: #ffffff;
11391140
border: 1px solid #cfcfcf;
11401141
border-radius: 8px;
11411142
}
@@ -1167,7 +1168,7 @@ QLabel#style-card-thumbnail {
11671168
}
11681169

11691170
QLabel#style-card-title {
1170-
background-color: #f0f0f0;
1171+
background-color: #ffffff;
11711172
color: #2b3b45;
11721173
}
11731174

src/Plugins/Qt/qt_file_page.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ QtFilePage::setupStyleCards (QVBoxLayout* layout) {
308308

309309
// 样式卡片容器(响应式网格布局)
310310
cardsContainer_= new QWidget (this);
311-
cardsLayout_ = new QGridLayout (cardsContainer_);
311+
cardsContainer_->setObjectName ("startup-tab-file-cards");
312+
cardsLayout_= new QGridLayout (cardsContainer_);
312313
cardsLayout_->setContentsMargins (0, 0, 0, 0);
313314
cardsLayout_->setSpacing (DpiUtils::scaled (kStyleCardsSpacing));
314315
cardsLayout_->setAlignment (Qt::AlignLeft | Qt::AlignTop);

src/Plugins/Qt/qt_template_page.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ QTTemplatePage::setupUI () {
140140
layout->addWidget (titleLabel_);
141141

142142
// Category bar
143-
categoryBar_ = new QWidget (this);
143+
categoryBar_= new QWidget (this);
144+
categoryBar_->setObjectName ("startup-tab-category-bar");
144145
QHBoxLayout* categoryLayout= new QHBoxLayout (categoryBar_);
145146
categoryLayout->setContentsMargins (0, 0, 0, 0);
146147
categoryLayout->setSpacing (DpiUtils::scaled (kCategorySpacing));

src/Plugins/Qt/qt_tm_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ qt_tm_widget_rep::qt_tm_widget_rep (int mask, command _quit)
613613
// The main layout
614614

615615
QVBoxLayout* bl= new QVBoxLayout (cw);
616-
bl->setContentsMargins (0, 1, 0, 0);
616+
bl->setContentsMargins (0, 0, 0, 0);
617617
bl->setSpacing (0);
618618
cw->setLayout (bl);
619619
QWidget* q= main_widget->as_qwidget (); // force creation of QWidget

0 commit comments

Comments
 (0)