diff --git a/herdr/herdr-composer/mods/herdr-composer/main.js b/herdr/herdr-composer/mods/herdr-composer/main.js index b5df813..2d4a246 100644 --- a/herdr/herdr-composer/mods/herdr-composer/main.js +++ b/herdr/herdr-composer/mods/herdr-composer/main.js @@ -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;