Added dark theme and white theme switching

This commit is contained in:
2025-06-09 02:29:15 +08:00
parent 7f97b4a937
commit aff08f4d3d
23 changed files with 630 additions and 218 deletions

View File

@@ -123,7 +123,8 @@ onMounted(async () => {
.windows-titlebar {
display: flex;
height: 32px;
background: #202020;
background: var(--toolbar-bg);
border-bottom: 1px solid var(--toolbar-border);
user-select: none;
-webkit-user-select: none;
position: fixed;
@@ -145,7 +146,7 @@ onMounted(async () => {
flex: 1;
padding-left: 8px;
gap: 8px;
color: #ffffff;
color: var(--toolbar-text);
font-size: 12px;
font-weight: 400;
cursor: default;
@@ -169,7 +170,7 @@ onMounted(async () => {
.titlebar-title {
font-size: 12px;
color: #ffffff;
color: var(--toolbar-text);
}
.titlebar-controls {
@@ -187,7 +188,7 @@ onMounted(async () => {
height: 32px;
border: none;
background: transparent;
color: #ffffff;
color: var(--toolbar-text);
cursor: pointer;
display: flex;
align-items: center;
@@ -197,11 +198,12 @@ onMounted(async () => {
margin: 0;
&:hover {
background: rgba(255, 255, 255, 0.0605);
background: var(--toolbar-button-hover);
}
&:active {
background: rgba(255, 255, 255, 0.0837);
background: var(--toolbar-button-hover);
opacity: 0.8;
}
}
@@ -220,12 +222,13 @@ onMounted(async () => {
.minimize-button:hover,
.maximize-button:hover {
background: rgba(255, 255, 255, 0.0605);
background: var(--toolbar-button-hover);
}
.minimize-button:active,
.maximize-button:active {
background: rgba(255, 255, 255, 0.0837);
background: var(--toolbar-button-hover);
opacity: 0.8;
}
.close-button:hover {

View File

@@ -174,7 +174,8 @@ watch(isLoaded, async (newLoaded) => {
color: var(--text-muted);
.stat-value {
color: #e0e0e0;
color: var(--text-secondary);
font-weight: 500;
}
}
}
@@ -212,10 +213,12 @@ watch(isLoaded, async (newLoaded) => {
cursor: pointer;
padding: 0 3px;
border-radius: 3px;
background-color: rgba(255, 255, 255, 0.05);
background-color: var(--border-color);
opacity: 0.6;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
opacity: 1;
background-color: var(--border-color);
}
}
@@ -255,7 +258,8 @@ watch(isLoaded, async (newLoaded) => {
transition: all 0.2s ease;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
background-color: var(--border-color);
opacity: 0.8;
}
&.active {
@@ -291,7 +295,8 @@ watch(isLoaded, async (newLoaded) => {
border-radius: 3px;
&:hover {
background-color: rgba(255, 255, 255, 0.05);
background-color: var(--border-color);
opacity: 0.8;
}
.arrow {
@@ -321,7 +326,8 @@ watch(isLoaded, async (newLoaded) => {
white-space: nowrap;
&:hover {
background-color: var(--bg-hover);
background-color: var(--border-color);
opacity: 0.8;
}
&.active {
@@ -342,7 +348,7 @@ watch(isLoaded, async (newLoaded) => {
padding: 2px;
&:hover {
color: var(--text-primary);
color: var(--text-secondary);
}
}
}