Browse Source

pref: 优化暗黑主题样式 (#5355)

pull/5360/head
ssongliu 6 months ago committed by GitHub
parent
commit
05c8370f0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      frontend/src/styles/element-dark.scss
  2. 1
      frontend/src/utils/xpack.ts

12
frontend/src/styles/element-dark.scss

@ -271,6 +271,18 @@ html.dark {
.el-descriptions__content.el-descriptions__cell.is-bordered-content {
color: #999999;
}
.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell {
padding: 12px 15px;
background-color: transparent;
}
.el-descriptions__body {
background-color: transparent;
}
.el-descriptions__label {
color: var(--el-color-primary) !important;
margin-right: 16px;
}
.terminal-tabs {
background: none !important;
.el-tabs__header {

1
frontend/src/utils/xpack.ts

@ -13,6 +13,7 @@ export function resetXSetting() {
}
export function initFavicon() {
document.title = globalStore.themeConfig.panelName;
let favicon = globalStore.themeConfig.favicon;
const link = (document.querySelector("link[rel*='icon']") || document.createElement('link')) as HTMLLinkElement;
link.type = 'image/x-icon';

Loading…
Cancel
Save