Replace all emoji icons with Lucide SVGs, add accent color picker

- Replace all emoji characters across WebUI with inline Lucide SVG icons
  for cross-platform consistency (icon paths in icon-paths.js)
- Add accent color picker popover with 9 preset colors + custom picker,
  persisted to localStorage, updates all CSS custom properties
- Remove subtab separator line for cleaner look
- Color badge icons with accent color for visual pop
- Remove processing badge from target cards
- Fix hardcoded #4CAF50 in FPS labels and active badges to use CSS vars
- Replace CSS content emoji (▶) with pure CSS triangle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 16:14:18 +03:00
parent efb6cf7ce6
commit c262ec0775
39 changed files with 634 additions and 311 deletions

View File

@@ -6,9 +6,25 @@
:root {
--primary-color: #4CAF50;
--primary-hover: #5cb860;
--danger-color: #f44336;
--warning-color: #ff9800;
--info-color: #2196F3;
--font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}
/* ── SVG icon base ── */
.icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: -0.125em;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
/* Dark theme (default) */

View File

@@ -312,6 +312,10 @@ body.cs-drag-active .card-drag-handle {
font-size: 0.6rem;
}
.device-url-badge .icon {
color: var(--primary-text-color);
}
.card-subtitle {
display: flex;
align-items: center;
@@ -328,6 +332,10 @@ body.cs-drag-active .card-drag-handle {
gap: 4px;
}
.card-meta .icon {
color: var(--primary-text-color);
}
.device-type-badge {
font-size: 10px;
font-weight: 700;
@@ -647,7 +655,7 @@ ul.section-tip li {
font-weight: 400;
opacity: 0.45;
line-height: 1.1;
color: #4CAF50;
color: var(--primary-color);
}
.fps-unreachable {

View File

@@ -192,7 +192,7 @@
font-weight: 400;
opacity: 0.45;
line-height: 1.1;
color: #4CAF50;
color: var(--primary-color);
}
.dashboard-target-actions {
@@ -258,7 +258,7 @@
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
background: var(--success-color);
background: var(--primary-color);
color: #fff;
flex-shrink: 0;
}

View File

@@ -216,6 +216,81 @@ h2 {
transform: scale(1.1);
}
/* Accent color picker */
.accent-wrapper {
position: relative;
}
.accent-swatch {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid var(--border-color);
transition: border-color 0.2s, box-shadow 0.2s;
}
.search-toggle:hover .accent-swatch {
box-shadow: 0 0 6px var(--primary-color);
}
.accent-popover {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 10px;
box-shadow: 0 8px 24px var(--shadow-color);
z-index: 200;
animation: accent-pop-in 0.15s ease-out;
}
@keyframes accent-pop-in {
from { opacity: 0; transform: translateY(-4px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.accent-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.accent-dot {
width: 32px;
height: 32px;
border-radius: 50%;
border: 3px solid transparent;
cursor: pointer;
transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
padding: 0;
}
.accent-dot:hover {
transform: scale(1.15);
box-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.accent-dot.active {
border-color: var(--text-color);
box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px var(--text-color);
}
.accent-custom {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--border-color);
font-size: 0.78rem;
color: var(--text-secondary);
cursor: pointer;
}
.accent-custom input[type="color"] {
width: 28px;
height: 28px;
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 2px;
cursor: pointer;
background: transparent;
flex-shrink: 0;
}
/* Footer */
.app-footer {
margin-top: 12px;

View File

@@ -477,8 +477,13 @@
.form-collapse > summary::-webkit-details-marker { display: none; }
.form-collapse > summary::before {
content: '';
font-size: 0.6rem;
content: '';
display: inline-block;
width: 0;
height: 0;
border-left: 0.35em solid currentColor;
border-top: 0.25em solid transparent;
border-bottom: 0.25em solid transparent;
opacity: 0.6;
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
flex-shrink: 0;

View File

@@ -54,6 +54,10 @@
vertical-align: middle;
}
.stream-card-prop .icon {
color: var(--primary-text-color);
}
.stream-card-prop-full {
max-width: 100%;
word-break: break-all;
@@ -72,6 +76,10 @@
color: #fff;
}
.stream-card-link:hover .icon {
color: #fff;
}
@keyframes cardHighlight {
0%, 100% { box-shadow: none; }
25%, 75% { box-shadow: 0 0 0 3px var(--primary-color), 0 0 20px rgba(var(--primary-rgb, 59, 130, 246), 0.3); }

View File

@@ -538,7 +538,6 @@
display: flex;
align-items: center;
gap: 4px;
border-bottom: 2px solid var(--border-color);
margin-bottom: 16px;
}
@@ -551,7 +550,6 @@
color: var(--text-secondary);
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: color 0.2s ease, border-color 0.25s ease;
}