style: dashed, dimmed New button in the dock
Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
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) {
|
renderAddButton(t, active) {
|
||||||
const icon = div()
|
const icon = div()
|
||||||
.id("composer-dock-add")
|
.id("composer-dock-add")
|
||||||
@@ -1372,11 +1375,13 @@ export default class Composer extends View {
|
|||||||
.flex_none()
|
.flex_none()
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.bg(t.chrome)
|
.border_1()
|
||||||
|
.border_dashed()
|
||||||
|
.border_color(t.dim)
|
||||||
.text_size(12)
|
.text_size(12)
|
||||||
.text_color(active ? t.muted : t.dim)
|
.text_color(t.dim)
|
||||||
.cursor_pointer()
|
.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")
|
.tooltip("Dodaj przycisk do docka")
|
||||||
.child("New button");
|
.child("New button");
|
||||||
if (!active) return icon;
|
if (!active) return icon;
|
||||||
|
|||||||
Reference in new issue
Block a user