feat: 主题颜色

This commit is contained in:
2024-09-10 03:09:09 +08:00
parent a9dd63b251
commit a0e5e16afc
6 changed files with 81 additions and 98 deletions

View File

@ -14,21 +14,15 @@
}
#closeIcon {
-fx-color: #fa6057;
-fx-background-color: #fa6057;
-fx-icon-color: #fa6057;
-fx-icon-color: -color-chart-1;
}
#minimizeIcon {
-fx-color: #fbbc2e;
-fx-background-color: #fbbc2e;
-fx-icon-color: #fbbc2e;
-fx-icon-color: -color-chart-2;
}
#alwaysOnTopIcon {
-fx-color: #27c940;
-fx-background-color: #27c940;
-fx-icon-color: #27c940;
-fx-icon-color: -color-chart-3;
&:always-on-top {
-fx-opacity: 1.0;
@ -40,62 +34,54 @@
/**************************************************
* Tab label
**************************************************/
#tabPane {
-fx-background-color: transparent;
.tab-header-area {
-fx-background-radius: 0 0 0 0;
-fx-background-color: transparent;
}
.headers-region {
-fx-alignment: TOP_CENTER;
-fx-background-color: #e9e9e9;
-fx-background-radius: 15;
-fx-padding: 5 0 5 0;
}
.tab-header-background {
-fx-background-color: transparent;
}
.tab {
-fx-padding: 10 20 10 20;
-fx-background-radius: 15;
-fx-background-color: transparent;
-fx-border-width: 0;
.ikonli-font-icon {
-fx-icon-color: black;
.tab-header-background {
-fx-background-color: transparent;
}
.tab-label {
-fx-text-alignment: CENTER;
-fx-alignment: CENTER;
}
.headers-region {
//-fx-background-color: #f9f9fb;
-fx-background-color: -color-neutral-muted;
-fx-background-radius: 10;
&:selected {
-fx-background-color: #2c69e0;
.tab {
-fx-padding: 5;
-fx-background-color: transparent;
.ikonli-font-icon {
-fx-icon-color: white;
}
.tab-container {
-fx-background-color: transparent;
-fx-border-width: 0;
.tab-label {
-fx-text-fill: white;
}
.tab-label {
-fx-pref-width: 80;
-fx-padding: 10 0;
-fx-background-radius: 10;
-fx-text-alignment: CENTER;
-fx-alignment: CENTER;
-fx-font-size: 15px;
-fx-border-width: 0;
}
}
.focus-indicator {
-fx-border-width: 0;
-fx-border-color: transparent;
-fx-border-insets: 0;
&:selected {
.tab-label {
-fx-background-color: -color-accent-5;
-fx-text-fill: white;
}
.ikonli-font-icon {
-fx-icon-color: white;
}
}
}
}
}
.tab-label {
-fx-font-size: 15px;
}
}
/**************************************************
@ -110,15 +96,15 @@
}
#document {
-fx-text-fill: #1bc964;
-fx-text-fill: -color-success-5;
}
#github {
-fx-text-fill: #1f4ca6;
-fx-text-fill: -color-accent-5;
}
#sponsor {
-fx-text-fill: #f22760;
-fx-text-fill: -color-danger-emphasis;
}
.ikonli-font-icon {