mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Add server icons window (#77)
Right-click on the server row -> "Server-Icons..." opens a grid of the server's icon repository (TS3's special "channel 0" filebase). Reuses the file-transfer plumbing from #83 (ftgetfilelist/download/upload/delete) rather than adding new connector commands - icon_<id> files under channel 0 *are* the server icon repository, so no new protocol handling was needed. Lets you view existing icons as real thumbnails (sniffed from the downloaded bytes - PNG/GIF/JPEG/BMP), upload a new one under a chosen numeric ID, and delete icons. Out of scope for this pass: actually assigning an icon to the server/a channel/a group (there's no icon-picker wired into the server/channel edit dialogs yet) - this delivers the icon repository browser only. Demo mode gets a small fake icon repository (two placeholder icons) so the window is interactive in the GitHub Pages demo too.
This commit is contained in:
1 parent
7901aafbb1
commit
6d6803d9b3
4 files changed
+297
-12
No files matched your search
@@ -1198,6 +1198,42 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ts-server-icons-dialog {
|
||||
width: 560px;
|
||||
}
|
||||
|
||||
.ts-server-icons-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
|
||||
gap: 0.6rem;
|
||||
max-height: 420px;
|
||||
overflow-y: auto;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.4rem;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile img,
|
||||
.ts-server-icons-tile-loading {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.ts-server-icons-tile-loading {
|
||||
background: var(--border-soft);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.ts-server-protocol-log-line {
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
|
||||
Reference in new issue
Block a user