#10684 closed defect (fixed)
Fix icon scaling
Reported by: | stoecker | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.01 |
Component: | Core | Version: | |
Keywords: | icon scale | Cc: | Klumbumbus, skyper |
Description
Currently we do hard scaling of many icons to 24 or 16 pixel (preferences tabs?).
This should be a settings value, so that a user can choose "big icons" for large screen resolutions.
Attachments (2)
Change History (53)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Where does it force the icon size?
- toolbar
- menu
- mapview
- preferences
- table entries
- ...
We have many places were we use scaled images. And not all of them are proper anymore with 4k displays.
Thought I will start major rework only if I have a 4k screen :-)
comment:3 by , 10 years ago
at least preference tabs for sure:
One other thing to keep in mind about JTabbedPane objects in OS X is that they have a standard size. If you put an image in a tab, the image is scaled to fit the tab instead of the tab to the image. This standard size applies to several other Swing components as well.
I don't know what "other Swing components" are also impacted.
comment:4 by , 10 years ago
Cc: | added |
---|
by , 10 years ago
Attachment: | squareicons.png added |
---|
comment:9 by , 10 years ago
icons are stretched now to square size. See for example shop=beauty ("Schönheitssalon" in the screenshot)
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-11-02 17:58:46 Last Changed Author: Don-vip Revision: 7695 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Relative URL: ^/trunk URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-11-02 18:43:27 +0100 (Sun, 02 Nov 2014) Last Changed Rev: 7695 Identification: JOSM/1.5 (7695 de) Windows 7 32-Bit Memory Usage: 326 MB / 742 MB (101 MB allocated, but free) Java version: 1.7.0_71, Oracle Corporation, Java HotSpot(TM) Client VM VM arguments: [-Djava.security.manager, -Djava.security.policy=file:C:\Program Files\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files\josm-latest.jnlp, -Djnlpx.remove=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=256m,768m, -Djnlpx.splashport=54219, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAA==] Dataset consistency test: No problems found
follow-up: 13 comment:12 by , 10 years ago
One place used setMaxSize(), the other used setSize(). Seems my choice was the wrong one. Fixed.
BTW why is milestone 14.12 and not 14.11?
Because it wont be finished in 14.11 :-)
follow-up: 14 comment:13 by , 10 years ago
Replying to stoecker:
Because it wont be finished in 14.11 :-)
is there so much work? We still have 4 entire weeks, it's the longest development period of this year as I pushed October release sooner :)
follow-up: 15 comment:14 by , 10 years ago
Replying to Don-vip:
is there so much work? We still have 4 entire weeks, it's the longest development period of this year as I pushed October release sooner :)
- Fix overlay handling (see comment in one of the last checkins)
- Find and replace all hardcoded resizings
- At least ImageSizes.LIST type for layer and other lists is missing as 16x16, probably more types
- Add ImageProvider passthrough for styles and probably other places (or maybe ImageResource - I'm not sure yet if my new function for JosmAction should use ImageResource instead).
- test and check plugins for incompatibilities.
And all this together with the fact that I have probably no more time as of tomorrow. If this was my work then probably 2 days only. :-)
comment:15 by , 10 years ago
Replying to stoecker:
- test and check plugins for incompatibilities.
I have updated some of them in [o30806:30811].
comment:18 by , 10 years ago
Milestone: | 14.12 → 15.01 |
---|
comment:19 by , 10 years ago
Milestone: | 15.01 → 15.02 |
---|
move tickets that have not been treated this month to next milestone
comment:23 by , 10 years ago
Cc: | added |
---|---|
Keywords: | icon scale added |
comment:26 by , 10 years ago
Milestone: | 15.04 → 15.05 |
---|
comment:28 by , 10 years ago
Milestone: | 15.05 → 15.06 |
---|
comment:31 by , 10 years ago
Milestone: | 15.08 |
---|
comment:33 by , 9 years ago
Can you please enable Checkstyle in your IDE? Since r9235 it should work without any particular configuration.
follow-up: 35 comment:34 by , 9 years ago
I think in principle this ticket is done. Remaining task would be to search the core and plugin code and fix all places, where hardcoded image sizes are used.
Can you please enable Checkstyle in your IDE? Since r9235 it should work without any particular configuration.
That's impossible. I use no IDE :-)
follow-up: 37 comment:35 by , 9 years ago
comment:36 by , 9 years ago
Milestone: | → 16.01 |
---|
comment:37 by , 9 years ago
Milestone: | 16.01 |
---|
comment:39 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-up: 45 comment:43 by , 9 years ago
Replying to stoecker:
In 9251/josm:
While some icons do upscale in the toolbar, some don't. See screenshot
Food preset icon, Show ID mappaint style icon and Layer Checker mappaint style icon. (The other small icons are png)
by , 9 years ago
Attachment: | upscaling.png added |
---|
comment:44 by , 9 years ago
Milestone: | → 16.01 |
---|
Replying to Klumbumbus:
was the milestone accidentally removed in comment:37?
Yes. Parallel editing...
comment:45 by , 9 years ago
Replying to Klumbumbus:
Food preset icon, Show ID mappaint style icon and Layer Checker mappaint style icon. (The other small icons are png)
Are the small SVG toolbar entries all styles?
comment:47 by , 9 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Works with the uncleaned SVN icons, but not with cleaned ones in the jar. Strange.
comment:48 by , 9 years ago
Maybe related: see problems encountered in #12201 and how [o31865] fixed them.
If you think to people with Retina screens that won't change anything. The OSX Aqua look and feel force the icon size and we can't do anything about it except switching from icon tabs to text tabs.