mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Design store: make the delete button red in every design
Explicit red instead of the theme's accent color, so it stays visually distinct as a destructive action regardless of the active design. The confirm() prompt before deletion was already there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
ed9fb80a9b
commit
cfd9503313
2 files changed
+15
No files matched your search
@@ -3458,6 +3458,20 @@
|
|||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Delete is destructive - always red, regardless of the active design's
|
||||||
|
accent color. Selector nests one level deeper than the shared rules
|
||||||
|
above so it reliably wins the cascade instead of relying on source order. */
|
||||||
|
.ts-design-theme-card-actions .ts-design-theme-card-delete {
|
||||||
|
background: linear-gradient(to bottom, #d64545, #b23a3a);
|
||||||
|
border-color: #8f2c2c;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-design-theme-card-actions .ts-design-theme-card-delete:hover:not(:disabled) {
|
||||||
|
background: linear-gradient(to bottom, #e85d5d, #c94444);
|
||||||
|
border-color: #e85d5d;
|
||||||
|
}
|
||||||
|
|
||||||
.ts-design-store-card-actions {
|
.ts-design-store-card-actions {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5421,6 +5421,7 @@ function DesignPanel({
|
|||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
className="ts-design-theme-card-delete"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (window.confirm(t("design.custom.deleteConfirm"))) onDeleteCustomTheme(theme.id);
|
if (window.confirm(t("design.custom.deleteConfirm"))) onDeleteCustomTheme(theme.id);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in new issue
Block a user