archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
927 stars 267 forks source link

Support for Very High Resolution Monitors (4K) #832

Closed pcmanning closed 2 years ago

pcmanning commented 2 years ago

Support for High Resolution Monitors - I have a 4K monitor (3840 x 2160) - this results in much of the Archi interface being very small - specifically the palette and ribbon/toolbar - ideally a size consistent with other Windows Apps?

image
Phillipus commented 2 years ago

Icons will appear smaller if your display is set to 150% (or 125%). See #757

pcmanning commented 2 years ago

150% is the (Windows) recommended size in Display settings for my monitor 100% is tiny (effectively Archi is in this mode anyway), 200% is way too large and effectively losing "real estate" for bigger diagrams - 150% is fine for all normal use in all other apps.

Noting that I have a Surface book (3000 x 2000) driving the main 4K monitor, so 200% is recommended on that and means the two screens aren't too dissimilar is scale, but since my monitor is the primary display Archi starts up seeing 150% as the display magnification and selects small icons? If I start Archi up "undocked" it see 200% in the Surface and pulls in the 2x icons - redock it stays running with 2x icons on the 4K monitor and it looks better - at least for the palette - toolbar still a bit small

Maybe a manual override for the Palette/Toolbar icon size and a set of 4x icons (toolbar only?) to add to the 2x options would be sufficient without going down the rabbit hole for full scaling - have no idea how hard/easy/portable that is.

image
Phillipus commented 2 years ago

4x icons are not supported in the Eclipse framework.

I think that perhaps the (Eclipse) toolbar is of a fixed height. I'm not aware of any changes I can make to the code to make it any bigger.

pcmanning commented 2 years ago

I brief search on Eclipse itself and they seem to have their own issues with scaling - supports "integer" scaling 100%, 200% but not 150% etc (which look like integers to me, but hey!) - but an override in Archi to ignore the monitor default would be useful?

Phillipus commented 2 years ago

but an override in Archi to ignore the monitor default would be useful?

Not possible. Toolbar rendering is internal to Eclipse.

pcmanning commented 2 years ago

Seems Eclipse need to get it working - came across this from 2020 as a work around - you'd hope that a real fix exists?

https://developers.perfectomobile.com/display/TT/Legacy+%7C+Solution+for+Eclipse+with+High+Resolution+laptops

Phillipus commented 2 years ago

You could try the workaround there, renaming the manifest to "Archi.exe.manifest"?

jbsarrodie commented 2 years ago

but an override in Archi to ignore the monitor default would be useful?

Not possible. Toolbar rendering is internal to Eclipse.

In Archi, no, but in Windows, yes. You can edit app shortcut properties and fix the scaling. See this: https://www.windowscentral.com/how-change-high-dpi-settings-classic-apps-windows-10-april-2018-update (you should try "System (enhanced)". in addition to what is described in this page, note that in recent version of Windows, you can event override the scaling itself)

pcmanning commented 2 years ago

Tried a few options with the App Scaling settings, which has helped toolbar and palette - I think it's using the 2x icons - so that's much more usable - so happy with that.

But adding the manifest file (regardless of the reg setting 1 or 0!) the toolbar gets garbled - presume this due to a difference between Eclipse and Archi icon resources? Anyway not needed with the App Scaling trick working... Thx

image
Phillipus commented 2 years ago

OK, thanks for reporting back. If the app scaling works, I'll close this issue.

jbsarrodie commented 2 years ago

I'll close this issue.

Wait....

@pcmanning Could you please describe your workaround a bit more (which setting, screenshot...) here or, best, in a wiki page ?

pcmanning commented 2 years ago

on "Properties" for the program archi.exe in C:\Program Files\Archi. Select Compatibility Tab, Change Settings for All Users (presume would work for logged in user too?) - "Change high DPI settings" - I went with this set of options....

image