-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Arduino IDE on High DPI (take 2) #4376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The setting in theme.txt was a simple hack meant to eventually be replaced by a proper preference or automatic detection of the screen DPI from the operating system. |
Font size is scaled by the operating systems decoration manager / window manager while everything else is hardcoded info the IDE. Automatical detection of screen resolution would be nice, but there is no common way to do so for all kinds of operating systems and window managers. A good way could be a scaling option in preferences (e.g. a slider or drowdown in 25% steps Form 75% up to 400% or so). |
The path i chose for the toolbar bitmaps was to replace them with java code generated from SVGs using a tool somewhere on github (described in #4196) |
Each platform has a way to find out their scaling ratio, and the codebase already has the Platform class to abstract this kind of underlying API differences. |
e6d1aa1
to
17729d1
Compare
This last version includes:
Testing welcome! /cc @00alis |
You know that now that you converted the res to SVGs it is easy to generate java code for Icon subclasses?! Then you can cleanup the toolbar code (dont have to but it would help with making a Tool2 interface that would allow button contributions for eg) and eliminate batik (using it scale a handful of svgs is IMHO like moving the piano instead of getting the stool closer to the piano) |
Imagine a 15 Inc 4k (UHD) screen and 200% isn't huge. So please add some more scaling factors >200%. |
Unfortunally,it doesn't work on my surface pro 4 no matter how I change the "gui.scale" in the preferences.txt . Also , the links of the old versions doesn't work and I can't test it. |
uhm, that's really weird, have you tried to change the value from the preference panel instead of changing preference.txt? |
It is working for me, using preferences window (Windows 10). |
I change it in the panel and it works , thank you. |
I'm using Dell Inspiron 15 7548 laptop and recommended display scaling (the default one) is 250% on Windows 10. Maximum scaling is 350% on my display settings. |
17729d1
to
057ebfa
Compare
Updated the scale range up to 400% |
Icon scaling works as expected while dragging the application across multiple monitors in windows 10 |
@jem-green thanks very much for the feedback, I'll try to address these issues! |
@Sembazuru |
Ok. Sounds good. I just downloaded the most recent nightly (dated 2016-02-19T05:41) and the merge seems stable so far. |
Success! I am using Arduino 1.6.8 and can confirm that the interface scaling preference works well for me (Windows 10) Thank you! ❤️ |
What's the current story with the splash screen, toolbar icons, and the text in editor tab titles on OS X? Everything else looks nice and smooth, but those items seem to be scaled from low-res? (1.6.9) |
I'm using version 1.6.12 of the IDE under Ubuntu 16.04 and Java 1.8.0_101. When the interface scale is set to 200%, the editor window and tab (and status window) are properly sized on my display, however, the settings window, menus, and several other dialogs are still not scaled (text is very tiny). |
Windows 10 Dell XPS 15 9550 3840x2160 resolution. Generally the UI is fine and scales okay, but only once I set the scaling to 300% so the font size is easily readable. The pop-up screens are mangled and unusable, however. The window is not resizable and not all the items are rendered / or are heavily overlapped. Any ideas on how to be able to see pop-up screen like this? |
Using 1.8.8 from the windows store. Usable but not great. The menu items aren't scaled. The scaling set in the Window 10 UI isn't obeyed. All my other programs look at the scale factor I have set for that monitor, so when I drag a window from monitor to monitor, it rescales according to the scale factor of that monitor. |
Does anybody have any workaround for telling Java how much to scale the default AWT elements, or whether to scale them at all? I'm on a 125% HiDPI monitor. I have set X11's resource correctly to Is there an environment variable, Java property, or any other hack to force the AWT scaling factor, or even to disable it at all? Given the choice, I would prefer my menus to be 20% smaller, rather than 60% bigger. I tried both Related to #6472 |
found a workaround posted in #9170 |
the workaround from @s-light didn't work for me (manjaro linux with kde). The menu bars still stayed ultra small. starting arduino ide with the following command now: |
This is a follow up on @PaulStoffregen's
PR #2532(edit: wrong number) PR #2776Arduino IDE on High DPI #2532Add scaling for themed fonts and graphics (hires displays) #2776 on current masterTODO / questions:
gui.scalePercent
is now a theme preference (in theme.txt) but I'm wondering if this should really be a general preference (in preferences.txt) because screen scaling doesn't seems related to the theme