Skip to content

Commit fe8fc0d

Browse files
authored
[216_8] 整体css优化,添加翻译 (#3129)
1 parent c0af67c commit fe8fc0d

13 files changed

Lines changed: 487 additions & 154 deletions

File tree

TeXmacs/misc/themes/liii-night.css

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,82 +1002,78 @@ QWidget#centralWidget QWidget {
10021002
* 文字: 白色 / 黑色
10031003
****************************************************************************/
10041004

1005-
/* 启动标签页主窗口 - 左侧导航栏 */
1006-
QWidget#startup-tab-sidebar {
1005+
/* 启动标签页主窗口 - 左侧导航栏
1006+
使用更具体的选择器覆盖 centralWidget QWidget 的定义 */
1007+
QWidget#centralWidget QWidget#startup-tab-sidebar {
10071008
background-color: #215a6a;
1008-
min-width: 120px;
1009-
max-width: 120px;
10101009
}
10111010

10121011
/* 导航栏分组标题 */
10131012
QLabel#startup-tab-nav-title {
10141013
color: rgba(255, 255, 255, 0.6);
1015-
font-size: 11px;
10161014
font-weight: bold;
1017-
padding: 4px;
1015+
}
1016+
1017+
QWidget#centralWidget QLabel#startup-tab-nav-title {
1018+
background-color: transparent;
10181019
}
10191020

10201021
/* 导航按钮 - 普通状态 */
10211022
QPushButton#startup-tab-nav-btn {
10221023
color: #ffffff;
1023-
background-color: transparent;
10241024
border: none;
1025-
padding: 8px 12px;
10261025
text-align: left;
1027-
font-size: 13px;
10281026
}
10291027

1030-
QPushButton#startup-tab-nav-btn:hover {
1028+
QWidget#centralWidget QPushButton#startup-tab-nav-btn {
1029+
background-color: transparent;
1030+
}
1031+
1032+
QWidget#centralWidget QPushButton#startup-tab-nav-btn:hover {
10311033
background-color: rgba(255, 255, 255, 0.15);
10321034
}
10331035

10341036
/* 导航按钮 - 选中状态 */
1035-
QPushButton#startup-tab-nav-btn:checked {
1037+
QWidget#centralWidget QPushButton#startup-tab-nav-btn:checked {
10361038
background-color: #2791ad;
10371039
}
10381040

10391041
/* 退出按钮 */
10401042
QPushButton#startup-tab-quit-btn {
10411043
color: #ffffff;
1042-
background-color: transparent;
10431044
border: 1px solid rgba(255, 255, 255, 0.5);
1044-
border-radius: 4px;
1045-
padding: 8px 12px;
10461045
text-align: center;
1047-
font-size: 13px;
10481046
}
10491047

1050-
QPushButton#startup-tab-quit-btn:hover {
1048+
QWidget#centralWidget QPushButton#startup-tab-quit-btn {
1049+
background-color: transparent;
1050+
}
1051+
1052+
QWidget#centralWidget QPushButton#startup-tab-quit-btn:hover {
10511053
background-color: rgba(255, 255, 255, 0.2);
10521054
border-color: #ffffff;
10531055
}
10541056

1055-
/* 右侧内容区 */
1057+
/* 右侧内容区(实际没生效) */
10561058
QWidget#startup-tab-content {
10571059
background-color: #5d5d5d;
10581060
}
10591061

10601062
/* 页面标题 */
10611063
QLabel#startup-tab-page-title {
1062-
font-size: 24px;
10631064
font-weight: bold;
10641065
color: #ffffff;
10651066
}
10661067

10671068
/* 页面描述文字 */
10681069
QLabel#startup-tab-page-desc {
1069-
font-size: 14px;
10701070
color: #aaaaaa;
1071-
margin-top: 8px;
1072-
margin-bottom: 24px;
10731071
}
10741072

10751073
/* 模板使用按钮 - Template Use Button */
10761074
QPushButton#template-use-btn {
10771075
background-color: #4CAF50;
10781076
color: white;
1079-
padding: 8px 24px;
1080-
border-radius: 4px;
10811077
font-weight: bold;
10821078
border: none;
10831079
}
@@ -1086,6 +1082,24 @@ QPushButton#template-use-btn:hover {
10861082
background-color: #45a049;
10871083
}
10881084

1085+
QLabel#template-preview-desc {
1086+
color: #aaaaaa;
1087+
}
1088+
1089+
QLabel#startup-tab-template-info {
1090+
color: #b5bfca;
1091+
}
1092+
1093+
QLabel#startup-tab-template-thumbnail {
1094+
background: #4a4f57;
1095+
border: 1px solid #616a75;
1096+
}
1097+
1098+
QLabel#startup-tab-template-thumbnail[thumbnailLoaded="true"] {
1099+
background: transparent;
1100+
border: none;
1101+
}
1102+
10891103
/* Startup tab - file page */
10901104
QFrame#startup-tab-separator {
10911105
color: #4a4f57;
@@ -1098,7 +1112,6 @@ QLabel#startup-tab-section-title {
10981112

10991113
QListWidget#recent-docs-list {
11001114
border: 1px solid #4a4f57;
1101-
border-radius: 8px;
11021115
background-color: #3f434a;
11031116
outline: none;
11041117
}
@@ -1107,6 +1120,10 @@ QListWidget#recent-docs-list::item {
11071120
border: none;
11081121
}
11091122

1123+
QListWidget#recent-docs-list::item:hover {
1124+
background-color: #4a4f57;
1125+
}
1126+
11101127
QListWidget#recent-docs-list::item:selected {
11111128
background-color: #4e5d68;
11121129
}
@@ -1126,15 +1143,13 @@ QLabel#startup-tab-recent-path {
11261143

11271144
QWidget#style-card {
11281145
border: 1px solid #4b5560;
1129-
border-radius: 8px;
11301146
}
11311147

11321148
QWidget#style-card[selected="true"] {
11331149
border: 2px solid #2791ad;
11341150
}
11351151

11361152
QLabel#style-card-icon {
1137-
border-radius: 8px;
11381153
color: #ecf3f6;
11391154
font-weight: 700;
11401155
}
@@ -1145,10 +1160,4 @@ QLabel#style-card-name {
11451160

11461161
QLabel#style-card-badge {
11471162
color: #ffffff;
1148-
border-radius: 8px;
1149-
padding: 1px 6px;
1150-
}
1151-
1152-
QWidget#style-card:hover QLabel#style-card-badge {
1153-
background-color: #2791ad;
11541163
}

TeXmacs/misc/themes/liii.css

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -965,26 +965,20 @@ QWidget#auxiliary_container {
965965
/* 启动标签页主窗口 - 左侧导航栏 */
966966
QWidget#startup-tab-sidebar {
967967
background-color: #215a6a;
968-
min-width: 120px;
969-
max-width: 120px;
970968
}
971969

972970
/* 导航栏分组标题 */
973971
QLabel#startup-tab-nav-title {
974972
color: rgba(255, 255, 255, 0.6);
975-
font-size: 11px;
976973
font-weight: bold;
977-
padding: 4px;
978974
}
979975

980976
/* 导航按钮 - 普通状态 */
981977
QPushButton#startup-tab-nav-btn {
982978
color: #ffffff;
983979
background-color: transparent;
984980
border: none;
985-
padding: 8px 12px;
986981
text-align: left;
987-
font-size: 13px;
988982
}
989983

990984
QPushButton#startup-tab-nav-btn:hover {
@@ -1001,10 +995,7 @@ QPushButton#startup-tab-quit-btn {
1001995
color: #ffffff;
1002996
background-color: transparent;
1003997
border: 1px solid rgba(255, 255, 255, 0.5);
1004-
border-radius: 4px;
1005-
padding: 8px 12px;
1006998
text-align: center;
1007-
font-size: 13px;
1008999
}
10091000

10101001
QPushButton#startup-tab-quit-btn:hover {
@@ -1019,25 +1010,19 @@ QWidget#startup-tab-content {
10191010

10201011
/* 页面标题 */
10211012
QLabel#startup-tab-page-title {
1022-
font-size: 24px;
10231013
font-weight: bold;
10241014
color: #215a6a;
10251015
}
10261016

10271017
/* 页面描述文字 */
10281018
QLabel#startup-tab-page-desc {
1029-
font-size: 14px;
10301019
color: #666666;
1031-
margin-top: 8px;
1032-
margin-bottom: 24px;
10331020
}
10341021

10351022
/* 模板使用按钮 - Template Use Button */
10361023
QPushButton#template-use-btn {
10371024
background-color: #4CAF50;
10381025
color: white;
1039-
padding: 8px 24px;
1040-
border-radius: 4px;
10411026
font-weight: bold;
10421027
border: none;
10431028
}
@@ -1046,6 +1031,24 @@ QPushButton#template-use-btn:hover {
10461031
background-color: #45a049;
10471032
}
10481033

1034+
QLabel#template-preview-desc {
1035+
color: #666666;
1036+
}
1037+
1038+
QLabel#startup-tab-template-info {
1039+
color: #888888;
1040+
}
1041+
1042+
QLabel#startup-tab-template-thumbnail {
1043+
background: #f5f5f5;
1044+
border: 1px solid #dddddd;
1045+
}
1046+
1047+
QLabel#startup-tab-template-thumbnail[thumbnailLoaded="true"] {
1048+
background: transparent;
1049+
border: none;
1050+
}
1051+
10491052
/* Startup tab - file page */
10501053
QFrame#startup-tab-separator {
10511054
color: #d8dde2;
@@ -1058,7 +1061,6 @@ QLabel#startup-tab-section-title {
10581061

10591062
QListWidget#recent-docs-list {
10601063
border: 1px solid #d7dce2;
1061-
border-radius: 8px;
10621064
background-color: #ffffff;
10631065
outline: none;
10641066
}
@@ -1067,6 +1069,10 @@ QListWidget#recent-docs-list::item {
10671069
border: none;
10681070
}
10691071

1072+
QListWidget#recent-docs-list::item:hover {
1073+
background-color: #f5f5f5;
1074+
}
1075+
10701076
QListWidget#recent-docs-list::item:selected {
10711077
background-color: #e8f3f7;
10721078
}
@@ -1086,15 +1092,13 @@ QLabel#startup-tab-recent-path {
10861092

10871093
QWidget#style-card {
10881094
border: 1px solid #d4dde6;
1089-
border-radius: 8px;
10901095
}
10911096

10921097
QWidget#style-card[selected="true"] {
10931098
border: 2px solid #2791ad;
10941099
}
10951100

10961101
QLabel#style-card-icon {
1097-
border-radius: 8px;
10981102
color: #215a6a;
10991103
font-weight: 700;
11001104
}
@@ -1105,7 +1109,4 @@ QLabel#style-card-name {
11051109

11061110
QLabel#style-card-badge {
11071111
color: #ffffff;
1108-
background-color: #2791ad;
1109-
border-radius: 8px;
1110-
padding: 1px 6px;
11111112
}

0 commit comments

Comments
 (0)