mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 20:42:29 +08:00
feat(touch_bar): reduce items moving around
This commit is contained in:
parent
9c24b89180
commit
2676596384
@ -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"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user