style: dashed, dimmed New button in the dock

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 20:15:45 +01:00
1 parent bb86c74995
commit 000df780be
1 file changed
+9 -4
@@ -1362,7 +1362,10 @@ export default class Composer extends View {
);
}
/** The "+" of the dock: it opens the form. */
/**
* The "New button" of the dock: it opens the form. Drawn as a slot for a
* shortcut - no fill, a dashed frame, dimmed text.
*/
renderAddButton(t, active) {
const icon = div()
.id("composer-dock-add")
@@ -1372,11 +1375,13 @@ export default class Composer extends View {
.flex_none()
.flex()
.items_center()
.bg(t.chrome)
.border_1()
.border_dashed()
.border_color(t.dim)
.text_size(12)
.text_color(active ? t.muted : t.dim)
.text_color(t.dim)
.cursor_pointer()
.hover((s) => s.bg(t.hover).text_color(t.foreground))
.hover((s) => s.text_color(t.foreground).border_color(t.muted))
.tooltip("Dodaj przycisk do docka")
.child("New button");
if (!active) return icon;