Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 1 addition & 188 deletions TeXmacs/misc/themes/liii-night.css
Original file line number Diff line number Diff line change
Expand Up @@ -1055,105 +1055,7 @@ QWidget#auxiliary_container {
background-color: rgba(100, 181, 246, 0.1);
}

/****************************************************************************
* 启动标签页样式 (Startup Tab) - 墨绿主题 Dark Mode
* 主色: #215a6a (深墨绿)
* 辅色: #2791ad (浅墨绿/青色)
* 文字: 白色 / 黑色
****************************************************************************/

/* 启动标签页主窗口 - 左侧导航栏
使用更具体的选择器覆盖 centralWidget QWidget 的定义 */
QWidget#centralWidget QWidget#startup-tab-sidebar {
background-color: #215a6a;
}

QWidget#centralWidget QWidget#startup-tab-category-container {
background-color: #215a6a;
}

/* 导航栏分组标题 */
QLabel#startup-tab-nav-title {
color: rgba(255, 255, 255, 0.6);
font-weight: bold;
}

QWidget#centralWidget QLabel#startup-tab-nav-title {
background-color: transparent;
}

/* 导航按钮 - 普通状态 */
QPushButton#startup-tab-nav-btn {
color: #ffffff;
border: none;
text-align: center;
}

QWidget#centralWidget QPushButton#startup-tab-nav-btn {
background-color: transparent;
}

QWidget#centralWidget QPushButton#startup-tab-nav-btn:hover {
background-color: rgba(255, 255, 255, 0.15);
}

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

/* 退出按钮 */
QPushButton#startup-tab-quit-btn {
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.5);
text-align: center;
}

QWidget#centralWidget QPushButton#startup-tab-quit-btn {
background-color: transparent;
}

QWidget#centralWidget QPushButton#startup-tab-quit-btn:hover {
background-color: rgba(255, 255, 255, 0.2);
border-color: #ffffff;
}

/* 右侧内容区 */
QWidget#centralWidget QWidget#startup-tab-content {
background-color: #2c2c2c;
}

QWidget#centralWidget QWidget#startup-tab-file-cards,
QWidget#centralWidget QWidget#startup-tab-template-item,
QWidget#centralWidget QLabel#startup-tab-template-name,
QWidget#centralWidget QLabel#startup-tab-template-info {
background-color: #2c2c2c;
}

/* 页面描述文字 */
QLabel#startup-tab-page-desc {
color: #aaaaaa;
}

/* 模板网格容器 */
QWidget#centralWidget QWidget#startup-tab-grid {
background-color: #2c2c2c;
}

/* 模板缩略图卡片 */
QFrame#startup-tab-template-card {
border: 1px solid #3c3c3c;
}

QWidget#centralWidget QFrame#startup-tab-template-card {
background-color: #ffffff;
}

QFrame#startup-tab-template-card:hover {
border: 2px solid #2791ad;
}

/* 模板使用按钮 - Template Use Button */
/* 模板预览对话框按钮 */
QPushButton#template-use-btn {
color: white;
font-weight: bold;
Expand Down Expand Up @@ -1182,95 +1084,6 @@ QLabel#template-preview-desc {
color: #aaaaaa;
}

QLabel#startup-tab-template-info {
color: #b5bfca;
}

QLabel#startup-tab-template-thumbnail {
background: #4a4f57;
}

/* Startup tab - file page */
QFrame#startup-tab-separator {
color: #4a4f57;
}

QWidget#centralWidget QLabel#startup-tab-section-title {
font-weight: 600;
color: #f0f4f7;
background-color: #2c2c2c;
}

QListWidget#recent-docs-list {
border: 1px solid #4a4f57;
background-color: #3f434a;
outline: none;
}

QListWidget#recent-docs-list::item {
border: none;
}

QListWidget#recent-docs-list::item:hover {
background-color: #4a4f57;
}

QListWidget#recent-docs-list::item:selected {
background-color: #4e5d68;
}

QWidget#startup-tab-recent-item {
background: transparent;
}

QLabel#startup-tab-recent-name {
font-weight: 700;
color: #f2f6f8;
}

QWidget#style-card {
border: 1px solid #3c3c3c;
border-radius: 8px;
}

QWidget#style-card:hover {
border: 1px solid #2791ad;
}

QLabel#style-card-icon {
color: #ecf3f6;
font-weight: 700;
}

QLabel#style-card-icon-new {
border-image: url(":/startup-tab/new-file-white.svg") 0 0 0 0 stretch stretch;
}

QLabel#style-card-icon-open {
border-image: url(":/startup-tab/open-file-white.svg") 0 0 0 0 stretch stretch;
}

QLabel#style-card-name {
color: #e2e8ee;
}

QFrame#style-card-frame {
border: 1px solid #3c3c3c;
background-color: #3a3a3a;
}

QFrame#style-card-frame:hover {
border: 1px solid #2791ad;
}

QLabel#style-card-thumbnail {
background: #4a4f57;
}

QLabel#style-card-title {
color: #e2e8ee;
}

/****************************************************************************
* PDF Preview Widget 样式
****************************************************************************/
Expand Down
165 changes: 1 addition & 164 deletions TeXmacs/misc/themes/liii.css
Original file line number Diff line number Diff line change
Expand Up @@ -1065,80 +1065,7 @@ QLabel#login-update-title {
background: rgba(255, 255, 255, 0.92);
}

/****************************************************************************
* 启动标签页样式 (Startup Tab) - 墨绿主题
* 主色: #215a6a (深墨绿)
* 辅色: #2791ad (浅墨绿/青色)
* 文字: 白色 / 黑色
****************************************************************************/

/* 启动标签页主窗口 - 左侧导航栏 */
QWidget#startup-tab-sidebar {
background-color: #215a6a;
}

/* 导航栏分组标题 */
QLabel#startup-tab-nav-title {
color: rgba(255, 255, 255, 0.6);
font-weight: bold;
}

/* 导航按钮 - 普通状态 */
QPushButton#startup-tab-nav-btn {
color: #ffffff;
background-color: transparent;
border: none;
text-align: center;
}

QPushButton#startup-tab-nav-btn:hover {
background-color: rgba(255, 255, 255, 0.15);
}

/* 导航按钮 - 选中状态 */
QPushButton#startup-tab-nav-btn:checked {
background-color: #2791ad;
}

/* 退出按钮 */
QPushButton#startup-tab-quit-btn {
color: #ffffff;
background-color: transparent;
border: 1px solid rgba(255, 255, 255, 0.5);
text-align: center;
}

QPushButton#startup-tab-quit-btn:hover {
background-color: rgba(255, 255, 255, 0.2);
border-color: #ffffff;
}

/* 右侧内容区 */
QWidget#startup-tab-content {
background-color: #f3f3f3;
}

/* 页面描述文字 */
QLabel#startup-tab-page-desc {
color: #666666;
}

/* 模板网格容器 */
QWidget#startup-tab-grid {
background-color: #f3f3f3;
}

/* 模板缩略图卡片 */
QFrame#startup-tab-template-card {
border: 1px solid #cfcfcf;
background-color: #ffffff;
}

QFrame#startup-tab-template-card:hover {
border: 1px solid #2791ad;
}

/* 模板使用按钮 - Template Use Button */
/* 模板预览对话框按钮 */
QPushButton#template-use-btn {
background-color: #2791ad;
color: white;
Expand All @@ -1164,96 +1091,6 @@ QLabel#template-preview-desc {
color: #666666;
}

QLabel#startup-tab-template-info {
color: #888888;
}

QLabel#startup-tab-template-thumbnail {
background: #f5f5f5;
}

/* Startup tab - file page */
QFrame#startup-tab-separator {
color: #d8dde2;
}

QLabel#startup-tab-section-title {
font-weight: 600;
color: #215a6a;
}

QListWidget#recent-docs-list {
border: 1px solid #d7dce2;
background-color: #ffffff;
outline: none;
}

QListWidget#recent-docs-list::item {
border: none;
}

QListWidget#recent-docs-list::item:hover {
background-color: #f5f5f5;
}

QListWidget#recent-docs-list::item:selected {
background-color: #e8f3f7;
}

QWidget#startup-tab-recent-item {
background: transparent;
}

QLabel#startup-tab-recent-name {
font-weight: 700;
color: #1f2933;
}

QWidget#style-card {
background-color: #ffffff;
border: 1px solid #cfcfcf;
border-radius: 8px;
}

QWidget#style-card:hover {
border: 1px solid #2791ad;
}

QLabel#style-card-icon {
color: #215a6a;
font-weight: 700;
}

QLabel#style-card-icon-new {
border-image: url(":/startup-tab/new-file.svg") 0 0 0 0 stretch stretch;
}

QLabel#style-card-icon-open {
border-image: url(":/startup-tab/open-file.svg") 0 0 0 0 stretch stretch;
}

QLabel#style-card-name {
color: #2b3b45;
}

QFrame#style-card-frame {
border: 1px solid #cfcfcf;
background-color: #ffffff;
}

QFrame#style-card-frame:hover {
border: 1px solid #2791ad;
}

QLabel#style-card-thumbnail {
background: #f5f5f5;
}

QLabel#style-card-title {
background-color: #ffffff;
color: #2b3b45;
}

/****************************************************************************
* PDF Preview Widget 样式
****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion TeXmacs/progs/startup-tab/startup-tab-file.scm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
;; Get recent document paths with the same filtering and ordering
;; as File -> Recent used
(let* ((raw (string->number (get-preference "startup-tab:max-recent")))
(nr (if (number? raw) raw 10))
(nr (if (number? raw) raw 50))
(nr (max 1 nr))
) ;
(map url->system (recent-file-list nr))
Expand Down
Loading
Loading