monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.74k stars 769 forks source link

macOS: Show scroll bars if this is set system wide to "Always" #4160

Open MikeRich88 opened 1 year ago

MikeRich88 commented 1 year ago

OS: macOS 13.3.1 Steps to reproduce: First, make sure that "Show scroll bars" is set to "Always" in the system settings.

image

Now, load the monero-gui app and go to any area with scrolling. Such as transaction history, or you can go to Settings and click the Interface tab like I have done, because I did not want to show my transaction in a screenshot.

Because I made the window small not all of the settings can be seen, so it is a scrolling area - but as you can see, no scroll bar is shown despite being set to "Always".

image

selsta commented 1 year ago

monero-gui is cross platform app that doesn't use the system settings for the scrollbar.

It's possible to use macOS system APIs to check whether "Show scroll bars" is set to "Always" on startup but it will be difficult to mimic exact behaviour of native macOS apps.

MikeRich88 commented 1 year ago

It's possible to use macOS system APIs to check whether "Show scroll bars" is set to "Always" on startup but it will be difficult to mimic exact behaviour of native macOS apps.

Here is the specific API to check: https://developer.apple.com/documentation/appkit/nsscroller/1523620-preferredscrollerstyle

This would go a long way to fit monero-gui better into the macOS interface.