mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +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() {
|
||||
const { TouchBar } = this.remote;
|
||||
const { TouchBarButton, TouchBarSpacer, TouchBarGroup } = this.remote.TouchBar;
|
||||
const { TouchBarButton, TouchBarSpacer, TouchBarGroup, TouchBarOtherItemsProxy } = this.remote.TouchBar;
|
||||
|
||||
const items = [
|
||||
new TouchBarButton({
|
||||
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
|
||||
click: () => this.triggerCommand("createNoteIntoInbox")
|
||||
}),
|
||||
new TouchBarSpacer({ size: "flexible" }),
|
||||
new TouchBarSpacer({ size: "large" }),
|
||||
new TouchBarGroup({
|
||||
items: new TouchBar({
|
||||
items: [
|
||||
@ -76,6 +76,7 @@ export default class TouchBarWidget extends Component {
|
||||
]
|
||||
})
|
||||
}),
|
||||
new TouchBarOtherItemsProxy(),
|
||||
new TouchBarSpacer({ size: "flexible" }),
|
||||
new TouchBarButton({
|
||||
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user