mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Rework layout to match the real TS3 client's structure
Adds a menu bar, an icon-based toolbar, and splits the right side into a channel/server info panel (topic, codec, password, client count) on top of the chat log - previously a single click switched channels, now that only selects/shows info while a double-click actually joins, like the native client. Required exposing a few more real protocol fields from tsclientlib (channel codec/topic/max clients/password, server name/max clients) that weren't surfaced before. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec034d2d6b
commit
95a3761235
4 files changed
+349
-80
No files matched your search
+111
-7
@@ -54,19 +54,92 @@
|
||||
|
||||
/* Toolbar */
|
||||
|
||||
.ts-toolbar {
|
||||
.ts-menubar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.5rem;
|
||||
gap: 1.1rem;
|
||||
padding: 0.25rem 0.75rem;
|
||||
background: var(--bg-toolbar-1);
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-menubar-item {
|
||||
color: var(--text-muted);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ts-toolbar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
padding: 0.4rem 0.75rem;
|
||||
background: linear-gradient(to bottom, var(--bg-toolbar-1), var(--bg-toolbar-2));
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ts-toolbar-icons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.ts-icon-button {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
background: linear-gradient(to bottom, var(--button-bg-1), var(--button-bg-2));
|
||||
color: var(--text);
|
||||
padding: 0.25rem 0.5rem;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.ts-icon-button:hover {
|
||||
background: linear-gradient(to bottom, var(--button-bg-hover-1), var(--button-bg-hover-2));
|
||||
}
|
||||
|
||||
.ts-icon-button:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ts-toolbar-sep {
|
||||
width: 1px;
|
||||
align-self: stretch;
|
||||
background: var(--border);
|
||||
margin: 0 0.2rem;
|
||||
}
|
||||
|
||||
.ts-icon-slider,
|
||||
.ts-icon-select {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ts-icon-slider input[type="range"] {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.ts-icon-select select {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 2px;
|
||||
padding: 0.1rem 0.3rem;
|
||||
font-size: 12px;
|
||||
background: var(--input-bg);
|
||||
color: var(--input-text);
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
.ts-app-title {
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.ts-toolbar-fields {
|
||||
@@ -127,11 +200,6 @@
|
||||
background: linear-gradient(to bottom, var(--button-bg-hover-1), var(--button-bg-hover-2));
|
||||
}
|
||||
|
||||
.ts-theme-toggle {
|
||||
padding: 0.2rem 0.5rem !important;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Body / tree */
|
||||
|
||||
.ts-body {
|
||||
@@ -149,6 +217,42 @@
|
||||
border-right: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.ts-main-panel {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ts-info-panel {
|
||||
flex-shrink: 0;
|
||||
padding: 0.6rem 0.9rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
background: var(--bg-toolbar-1);
|
||||
}
|
||||
|
||||
.ts-info-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: var(--accent);
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.ts-info-row {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-row-selected {
|
||||
background: var(--row-hover);
|
||||
outline: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.ts-tree-empty {
|
||||
color: var(--text-muted);
|
||||
padding: 1rem;
|
||||
|
||||
Reference in new issue
Block a user