mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
style(ssh settings): soften Add/Save buttons off the heavy primary fill
Match the existing soft-sheet convention (Duplicate-to-Edit, About's update button): a solid near-black `.primary()` fill is too jarring against the mostly-outline settings sheet. Use the subtle default fill instead.
This commit is contained in:
+6
-2
@@ -1325,9 +1325,11 @@ impl Tty7App {
|
||||
let header = v_flex()
|
||||
.gap_2()
|
||||
.child(
|
||||
// Plain (not `.primary()`): a solid near-black fill reads far too
|
||||
// heavy against this soft, mostly-outline sheet — a subtle default
|
||||
// fill still reads as the primary create action above outline Import.
|
||||
Button::new("ssh-profiles-add")
|
||||
.label("Add profile")
|
||||
.primary()
|
||||
.small()
|
||||
.w_full()
|
||||
.on_click(cx.listener(|this, _, window, cx| this.add_new_profile(window, cx))),
|
||||
@@ -1921,9 +1923,11 @@ impl Tty7App {
|
||||
})),
|
||||
)
|
||||
.child(
|
||||
// Plain, not `.primary()`: keep the soft sheet aesthetic (see
|
||||
// the Add-profile / Duplicate-to-Edit buttons) — a near-black
|
||||
// fill is too jarring here.
|
||||
Button::new("ssh-form-save")
|
||||
.label("Save")
|
||||
.primary()
|
||||
.small()
|
||||
.on_click(cx.listener(|this, _, _w, cx| this.save_ssh_form(cx))),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user