refactor: Simplify ColorSwitcher integration and clean up related styles

This commit is contained in:
sha
2025-06-12 10:21:23 +03:00
parent 224a2c7e27
commit d02e11fd7d
5 changed files with 59 additions and 153 deletions
+9 -5
View File
@@ -89,10 +89,15 @@
<div class="format-row">
<span><strong>Format:</strong> {logo.format}</span>
{#if logo.colors}
<ColorSwitcher {logo} {theme} mode="standard" onSelect={(color, setName) => {
logo._activeColor = color;
logo._activeSet = setName;
}} />
<ColorSwitcher
{logo}
{theme}
mode="standard"
onSelect={(color, setName) => {
logo._activeColor = color;
logo._activeSet = setName;
}}
/>
{/if}
</div>
<div class="logo-actions">
@@ -176,5 +181,4 @@
font-size: 1.2rem;
line-height: 1.2;
}
</style>