From 7611c60e6cf80359a8032b21c75ce6903c926ec8 Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 25 Jun 2026 15:14:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(write):=20=E4=BF=9D=E5=AD=98=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=94=B9=E7=94=A8=E9=BC=A0=E5=B0=BE=E8=8D=89=E7=BB=BF?= =?UTF-8?q?=E4=B8=BB=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit write 页的「保存」主按钮原为石墨黑 bg-paper-primary,与 dashboard 「写文章」等主操作按钮颜色不一致。改为 bg-paper-accent 鼠尾草绿, 统一后台所有主操作按钮配色。hover 改用 brightness-110 + active scale 与其它主按钮交互手感一致。禁用态(saving)保持 paper-tertiary 灰。 --- src/pages/admin/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/admin/write.rs b/src/pages/admin/write.rs index b4d38eb..61ac082 100644 --- a/src/pages/admin/write.rs +++ b/src/pages/admin/write.rs @@ -811,7 +811,7 @@ fn write_editor(post_id: Option) -> Element { class: if saving() { "px-5 py-1.5 text-sm bg-[var(--color-paper-tertiary)] text-[var(--color-paper-secondary)] rounded-xl font-medium cursor-not-allowed" } else { - "px-5 py-1.5 text-sm bg-[var(--color-paper-primary)] text-[var(--color-paper-theme)] rounded-xl font-medium hover:opacity-90 transition-opacity cursor-pointer" + "px-5 py-1.5 text-sm bg-[var(--color-paper-accent)] text-[var(--color-paper-theme)] rounded-xl font-medium hover:brightness-110 active:scale-[0.98] transition-all cursor-pointer" }, disabled: saving(), onclick: on_submit,