mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
feat(touch_bar): reduce items moving around
This commit is contained in:
@@ -50,14 +50,14 @@ export default class TouchBarWidget extends Component {
|
|||||||
|
|
||||||
#buildTouchBar() {
|
#buildTouchBar() {
|
||||||
const { TouchBar } = this.remote;
|
const { TouchBar } = this.remote;
|
||||||
const { TouchBarButton, TouchBarSpacer, TouchBarGroup } = this.remote.TouchBar;
|
const { TouchBarButton, TouchBarSpacer, TouchBarGroup, TouchBarOtherItemsProxy } = this.remote.TouchBar;
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
|
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
|
||||||
click: () => this.triggerCommand("createNoteIntoInbox")
|
click: () => this.triggerCommand("createNoteIntoInbox")
|
||||||
}),
|
}),
|
||||||
new TouchBarSpacer({ size: "flexible" }),
|
new TouchBarSpacer({ size: "large" }),
|
||||||
new TouchBarGroup({
|
new TouchBarGroup({
|
||||||
items: new TouchBar({
|
items: new TouchBar({
|
||||||
items: [
|
items: [
|
||||||
@@ -76,6 +76,7 @@ export default class TouchBarWidget extends Component {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
new TouchBarOtherItemsProxy(),
|
||||||
new TouchBarSpacer({ size: "flexible" }),
|
new TouchBarSpacer({ size: "flexible" }),
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
|
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
|
||||||
|
|||||||
Reference in New Issue
Block a user