arsd icon indicating copy to clipboard operation
arsd copied to clipboard

how to make toolbar icon size bigger ?

Open huangyy opened this issue 2 years ago • 12 comments

In high resolution (for example 4K), the toolbar icon size look small, how to make it bigger ?

huangyy avatar May 03 '23 12:05 huangyy

you on windows or linux?

adamdruppe avatar May 03 '23 12:05 adamdruppe

win10

huangyy avatar May 03 '23 13:05 huangyy

I don't know how to do it on Windows.... need bigger icons and I think there's some in the operating system but I haven't figured out how to use them yet.

adamdruppe avatar May 03 '23 13:05 adamdruppe

I found a thing that is 50% bigger, 24x24 instead of 16x16. That is easy to swap out to at least. Still might be too small for a 4k though.

adamdruppe avatar May 03 '23 17:05 adamdruppe

Just pushed a commit to master that uses the larger size of scaling is on.

I might change it though, right now it turns on if scaling is at 125% or above, but it might be too big at 125 so maybe I should make it turn on only at 150%... if you can use master let me know how you like this,

adamdruppe avatar May 03 '23 19:05 adamdruppe

I found another solution. In win10, select EXE properties, select compatibility, click "Change high DPI settings", check "Override high DPI scaling behavior", and select "System enhancements". so, toolbar Icon size look normal. My OS is in Chinese, so I don't know if some of the text on the operating system is accurate.

huangyy avatar May 04 '23 14:05 huangyy

The new commit compiles with errors. PS D:\dev\dlang\minigui> dub --build=release --arch=x86_64 --compiler=ldc2 Starting Performing "release" build using ldc2 for x86_64. Building arsd-official:color_base 10.9.10: building configuration [library] Building arsd-official:simpledisplay 10.9.10: building configuration [normal] Building arsd-official:minigui 10.9.10: building configuration [library] C:\Users\huang\AppData\Local\dub\packages\arsd-official-10.9.10\arsd-official\minigui.d(220,8): Error: unable to read module core C:\Users\huang\AppData\Local\dub\packages\arsd-official-10.9.10\arsd-official\minigui.d(220,8): Expected 'arsd\core.d' or 'arsd\core\package.d' in one of the following import paths:

PS D:\dev\dlang\minigui> dub --build=release --arch=x86_64 --compiler=ldc2 Starting Performing "release" build using ldc2 for x86_64. Building arsd-official:color_base 10.9.10: building configuration [library] Building arsd-official:simpledisplay 10.9.10: building configuration [normal] Building arsd-official:minigui 10.9.10: building configuration [library] C:\Users\huang\AppData\Local\dub\packages\arsd-official-10.9.10\arsd-official\minigui.d(8912,11): Error: constructor arsd.simpledisplay.WindowsApiException.this(string msg, string file = __FILE__, ulong line = cast(ulong)__LINE__, Throwable next = null) is not callable using argument types (string, uint) C:\Users\huang\AppData\Local\dub\packages\arsd-official-10.9.10\arsd-official\minigui.d(8912,11): cannot pass argument GetLastError() of type uint to parameter string file = __FILE__ Error ldc2 failed with exit code 1.

huangyy avatar May 04 '23 15:05 huangyy

You must update the whole repository at once to use the new version, it depends on changes in three other files. I don't know if dub can even do it yet without a config file update.

adamdruppe avatar May 04 '23 15:05 adamdruppe

Just pushed a commit to master that uses the larger size of scaling is on.

I might change it though, right now it turns on if scaling is at 125% or above, but it might be too big at 125 so maybe I should make it turn on only at 150%... if you can use master let me know how you like this,

set "arsd-official:minigui": "~master" in dub.json to use master, but toolbar icon size looks a little small. :) screenshot: https://github.com/huangyy/myimage/blob/main/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-05-06%20002035.png

huangyy avatar May 05 '23 16:05 huangyy

Is that bigger than the old one? Just not big enough?

adamdruppe avatar May 05 '23 17:05 adamdruppe

Bigger than the old one, but not big enough.

huangyy avatar May 06 '23 01:05 huangyy

ok, i guess what i have to do is take the small one and double it. then i can take 16, 24, 32, and 48 pixel options by doubling the two i have.

gonna be a little while until i get around to it though

kinda weird the OS isn't doing it for me, the toolbar is OS provided and the icons on it are OS provided too.

adamdruppe avatar May 07 '23 11:05 adamdruppe