feat: New button label instead of the + icon in the dock
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
7e23b8a79c
commit
bb86c74995
1 file changed
+6
-6
@@ -1366,19 +1366,19 @@ export default class Composer extends View {
|
|||||||
renderAddButton(t, active) {
|
renderAddButton(t, active) {
|
||||||
const icon = div()
|
const icon = div()
|
||||||
.id("composer-dock-add")
|
.id("composer-dock-add")
|
||||||
.size(28)
|
.h(28)
|
||||||
.rounded(999)
|
.px(11)
|
||||||
|
.rounded(8)
|
||||||
.flex_none()
|
.flex_none()
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
|
||||||
.bg(t.chrome)
|
.bg(t.chrome)
|
||||||
.text_size(15)
|
.text_size(12)
|
||||||
.text_color(active ? t.muted : t.dim)
|
.text_color(active ? t.muted : t.dim)
|
||||||
.cursor_pointer()
|
.cursor_pointer()
|
||||||
.hover((s) => s.bg(t.hover).text_color(t.foreground))
|
.hover((s) => s.bg(t.hover).text_color(t.foreground))
|
||||||
.tooltip("Dodaj przycisk do docka")
|
.tooltip("Dodaj przycisk do docka")
|
||||||
.child("+");
|
.child("New button");
|
||||||
if (!active) return icon;
|
if (!active) return icon;
|
||||||
const open = this.contextMenu?.kind === "add";
|
const open = this.contextMenu?.kind === "add";
|
||||||
return Popover.new("composer-dock-add-menu")
|
return Popover.new("composer-dock-add-menu")
|
||||||
@@ -3042,7 +3042,7 @@ export default class Composer extends View {
|
|||||||
if (this.dock.length === 0) {
|
if (this.dock.length === 0) {
|
||||||
return row
|
return row
|
||||||
.child(add)
|
.child(add)
|
||||||
.child(div().flex_none().text_size(12).text_color(t.dim).child("Plus lub prawy klik w Ulubionych → Przypnij do docka"));
|
.child(div().flex_none().text_size(12).text_color(t.dim).child("„New button” lub prawy klik w Ulubionych → Przypnij do docka"));
|
||||||
}
|
}
|
||||||
return row.children([add, ...this.dock.map((button) => this.renderDockButton(t, button, active))]);
|
return row.children([add, ...this.dock.map((button) => this.renderDockButton(t, button, active))]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user