callmearta / clubhouse-desktop

An unofficial Clubhouse desktop client
Other
214 stars 38 forks source link

Scrollbar improvment #4

Closed saman closed 3 years ago

saman commented 3 years ago

I can see some scrollbars; I didn't see them before. It would be great if you manage to change them to a native-like scrollbar.

Here is a screenshot: Screenshot 2021-03-13 at 5 56 15 PM

callmearta commented 3 years ago

You see, the problem is that same source code is used for the linux version and because of that, many users would fail to scroll horizontally. So i had to let them be visible :)) If you've got any advice on how to make scrollbars better which also works on linux + windows i'll appreciate.

saman commented 3 years ago

I guess you can retrieve the OS from the os package. You might need to add the scrolls only for Linux.

See this: https://www.freecodecamp.org/news/how-to-write-os-specific-code-in-electron-bf6379c62ff6/

callmearta commented 3 years ago

Yes i know it's possible to retrieve OS. but sadly it's not possible in CSS. I might have to rewrite the component for that matter and i think there's still more important things to implement. Thank you btw

saman commented 3 years ago

Just in case, take a look at Dynamic Styling in Electron. It's possible to add a specific CSS style so that you may customize it based on OS.

callmearta commented 3 years ago

Thank you. i'll check it out.