mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
style(titlebar): theme-independent traffic-lights + song pill
Window controls use fixed macOS-style colored dots (red/yellow/green) so they stay visible on every theme (broke on Middle-Earth etc. where text tokens collapsed against the sidebar bg). Song indicator becomes a dark translucent pill with light text + text-shadow for universal contrast. Removed the "Psysonic" label — the sidebar logo already covers it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,6 @@ export default function TitleBar() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="titlebar" data-tauri-drag-region>
|
<div className="titlebar" data-tauri-drag-region>
|
||||||
<span className="titlebar-title" data-tauri-drag-region>Psysonic</span>
|
|
||||||
|
|
||||||
<div className="titlebar-track" data-tauri-drag-region>
|
<div className="titlebar-track" data-tauri-drag-region>
|
||||||
{currentTrack && (
|
{currentTrack && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
+46
-24
@@ -67,7 +67,7 @@
|
|||||||
grid-area: titlebar;
|
grid-area: titlebar;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: flex-end;
|
||||||
background: var(--bg-sidebar);
|
background: var(--bg-sidebar);
|
||||||
border-bottom: 1px solid var(--border-subtle);
|
border-bottom: 1px solid var(--border-subtle);
|
||||||
padding: 0 6px 0 12px;
|
padding: 0 6px 0 12px;
|
||||||
@@ -75,15 +75,6 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-title {
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--text-muted);
|
|
||||||
letter-spacing: 0.02em;
|
|
||||||
pointer-events: none;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titlebar-track {
|
.titlebar-track {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@@ -93,23 +84,35 @@
|
|||||||
gap: 6px;
|
gap: 6px;
|
||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
padding: 3px 10px;
|
||||||
|
background: rgba(0, 0, 0, 0.45);
|
||||||
|
border-radius: 999px;
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-track:empty {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-track-state {
|
.titlebar-track-state {
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-track-text {
|
.titlebar-track-text {
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
color: var(--text-secondary);
|
color: #ececec;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-controls {
|
.titlebar-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2px;
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 0 8px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,24 +120,43 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 30px;
|
width: 14px;
|
||||||
height: 24px;
|
height: 14px;
|
||||||
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
border-radius: 50%;
|
||||||
color: var(--text-muted);
|
|
||||||
border-radius: var(--radius-sm);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background var(--transition-fast), color var(--transition-fast);
|
box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
|
||||||
|
transition: filter var(--transition-fast);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-btn svg {
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
stroke-width: 2.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-btn-close {
|
||||||
|
background: #ff5f57;
|
||||||
|
color: #4d0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-btn-minimize {
|
||||||
|
background: #febc2e;
|
||||||
|
color: #7a4a00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-btn-maximize {
|
||||||
|
background: #28c840;
|
||||||
|
color: #004d00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-btn:hover {
|
.titlebar-btn:hover {
|
||||||
background: var(--bg-hover);
|
filter: brightness(1.08);
|
||||||
color: var(--text-primary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-btn-close:hover {
|
.titlebar-btn:active {
|
||||||
background: var(--danger);
|
filter: brightness(0.92);
|
||||||
color: #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Resizer handles must start below the titlebar */
|
/* Resizer handles must start below the titlebar */
|
||||||
|
|||||||
Reference in New Issue
Block a user