Skip to content

Commit

Permalink
took off useless touchbar button
Browse files Browse the repository at this point in the history
  • Loading branch information
EragonJ committed Nov 21, 2018
1 parent e217716 commit bcc38ed
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions bootup.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,6 @@ class Bootup {
return;
}

const iconPath = './src/public/images/icons/touchbar/kaku.png';

let kakuButton;
kakuButton = new TouchBarButton({
icon: iconPath,
click: () => {
kakuButton.icon = null;
kakuButton.label = '♥️ U';
setTimeout(() => {
kakuButton.icon = iconPath;
kakuButton.label = null;
}, 500);
}
})

const playOrPauseButton = new TouchBarButton({
label: 'Play / Pause',
click: () => {
Expand All @@ -69,17 +54,16 @@ class Bootup {
click: () => {
this._emitShortcutEvent(this._mainWindow, 'MediaPreviousTrack');
}
})
});

const playNextButton = new TouchBarButton({
label: 'Next Track ▶',
click: () => {
this._emitShortcutEvent(this._mainWindow, 'MediaNextTrack');
}
})
});

const touchbar = new TouchBar([
kakuButton,
new TouchBarSpacer({size: 'flexible'}),
playPreviousButton,
playOrPauseButton,
Expand Down

0 comments on commit bcc38ed

Please sign in to comment.