Hi-DPI / scaling support in all components #2
Comments
Hi, any updates om this issue? |
So far the closest I can get to this setup is to explicitly bump up the default font size used by Substance, but I don't think that it's a correct recreation of it. Would it be possible to create a small sample on your machine that creates a JFrame with a single JButton on it - under one of Substance's look and feels. Then, print out the following values: SubstanceSizeUtils.getControlFontSize I think that under that 200% DPI setting the second value should be exactly twice that of the first one. If that's indeed so, then it'll give me a place to start from to scale the icons on command buttons. |
Playing with the system preference for display resolution on my Mac doesn't show any issues. I think it's scaling the entire UI after it's been drawn by the app, so everything scales up and down. |
Hi,
When I print these values I get the following results (200%):
Ctrl front size -> 24
Component font size -> 24
Regards,
Erling
Fra: Kirill Grouchnikov [mailto:notifications@github.com]
Sendt: torsdag 13. april 2017 22.37
Til: kirill-grouchnikov/flamingo <flamingo@noreply.github.com>
Kopi: Erling Fagerlie <erling@shiplog.no>; Comment <comment@noreply.github.com>
Emne: Re: [kirill-grouchnikov/flamingo] Hi-DPI / scaling support in all components (#2)
So far the closest I can get to this setup is to explicitly bump up the default font size used by Substance, but I don't think that it's a correct recreation of it.
Would it be possible to create a small sample on your machine that creates a JFrame with a single JButton on it - under one of Substance's look and feels. Then, print out the following values:
SubstanceSizeUtils.getControlFontSize
SubstanceSizeUtils.getComponentFontSize(yourButton)
I think that under that 200% DPI setting the second value should be exactly twice that of the first one. If that's indeed so, then it'll give me a place to start from to scale the icons on command buttons.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKDkjm38Xlk21_BQAvE6pnvC3g4-tSSAks5rvoeFgaJpZM4Lxfat>.
|
Scale icons in command buttons Scale some of the visuals in ribbon
The just uploaded 5.2-dev drop of Flamingo and 7.1-dev drops of Substance and Substance Flamingo should be the first major step towards high-DPI awareness of Flamingo components. This is not fully done, as there are some hard-coded pixel values around. Will take a few more iterations, but in general this is ready for preliminary testing. |
Hi,
It looks much better – thanks!
Regards,
Erling Fagerlie
Fra: Kirill Grouchnikov [mailto:notifications@github.com]
Sendt: onsdag 19. april 2017 02.58
Til: kirill-grouchnikov/flamingo <flamingo@noreply.github.com>
Kopi: Erling Fagerlie <erling@shiplog.no>; Comment <comment@noreply.github.com>
Emne: Re: [kirill-grouchnikov/flamingo] Hi-DPI / scaling support in all components (#2)
The just uploaded 5.2-dev drop of Flamingo and 7.1-dev drops of Substance and Substance Flamingo should be the first major step towards high-DPI awareness of Flamingo components.
This is not fully done, as there are some hard-coded pixel values around. Will take a few more iterations, but in general this is ready for preliminary testing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKDkjlhwA7Y7a2YnhYOZ5hu0cTVJNRX_ks5rxVwWgaJpZM4Lxfat>.
|
* High-DPI support for ribbon galleries and collapsed ribbon bands tracked in kirill-grouchnikov/flamingo#2 * Correct visuals for rollover animation on flat command buttons tracked in kirill-grouchnikov/flamingo#6
Closing as of the latest drops of Flamingo and Substance Flamingo plugin. If you see anything not respecting high DPI mode, please file as separate issue(s). |
There's a whole bunch of issues in a lot of Flamingo components when the runtime font sizes are large. This is just one such example of relying on hard-coded sizes for preferred width and / or height.
While it's worth considering providing this support for all core look-and-feels, if that proves to be too much work, such support will only be provided in the Substance Flamingo plugin.
From a very cursory look, there's a bunch of hard-coded values for
In addition:
The text was updated successfully, but these errors were encountered: