soundcleod icon indicating copy to clipboard operation
soundcleod copied to clipboard

Add repost button to touchbar

Open rmaes4 opened this issue 7 years ago • 7 comments

Adds a repost button to the TouchBar. I also redid the icons, they now use the exact same assets as Soundcloud.

rmaes4 avatar Apr 26 '17 17:04 rmaes4

Perhaps we should have media controls on the left, title in the center and the repost/like options on the right? Or some variation? What are your thoughts

rmaes4 avatar Apr 26 '17 17:04 rmaes4

Perhaps we should have media controls on the left, title in the center and the repost/like options on the right? Or some variation? What are your thoughts

I don't have a strong opinion on button placement but I noticed the space available for the title has become quite tiny. Do we actually need all these buttons sacrificing a readable title?

salomvary avatar Apr 28 '17 13:04 salomvary

@salomvary I have opened an issue with electron that is currently being resolved in order to tighten up the buttons and free up space on the TouchBar. Personally I feel as though the buttons are worth it. The keyboard (and thus the TouchBar) is more for acting rather than looking (unless you look at the keys when you type). I guess my thought process is that buttons on the touch bar are more important than displaying the title, which would already be visible in the application.

rmaes4 avatar Apr 28 '17 22:04 rmaes4

i would love to see this PR merged. Is there anything major stopping it? Also it seems as though the touch bar isn't working at all on my 2019 16" macbook pro

Impakt avatar May 12 '21 13:05 Impakt

@Impakt As this PR is quite old, it will take a bit of effort to make it work again and do some testing. Any help here would be appreciated.

salomvary avatar May 13 '21 09:05 salomvary

i actually pulled this repo and made the changes (the files that needed changing were very similar to how they were when the PR was created) on the master branch. When soundcleod has focus though the touch bar is empty. Getting the touch bar working again would be the hard part, i think adding repost would be easy.

I'm happy to test and help out as much as I can but i don't know electron or typescript that well (however been a java developer for over 20 years).

Edit: I even compared your touchbar code with the sample here in case some API had changed https://www.electronjs.org/docs/api/touch-bar

Impakt avatar May 13 '21 09:05 Impakt

I actually just got the touchbar working! i wrapped the array of touchbar controls at touchbar.js:48 with {items:[ .. array of touch bar controls .. ] }

Impakt avatar May 13 '21 10:05 Impakt