#12440 closed enhancement (fixed)
Keyboard shortcuts is not really readable on Mac
Reported by: | ggeldenhuis | Owned by: | ggeldenhuis |
---|---|---|---|
Priority: | normal | Milestone: | 16.02 |
Component: | Core | Version: | |
Keywords: | macosx | Cc: |
Description (last modified by )
When adding a tag the keyboard shortcuts is difficult to make out and could be larger and better displayed.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-01-06 17:30:31 +0100 (Wed, 06 Jan 2016) Build-Date:2016-01-06 16:32:31 Revision:9329 Relative:URL: ^/trunk Identification: JOSM/1.5 (9329 en) Mac OS X 10.11.2 Memory Usage: 577 MB / 3641 MB (317 MB allocated, but free) Java version: 1.8.0_40, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Dataset consistency test: No problems found
Attachments (5)
Change History (13)
by , 9 years ago
Attachment: | Screen Shot 2016-01-24 at 18.19.53 (2).png added |
---|
by , 9 years ago
Attachment: | addtags.png added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Keywords: | macosx added |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
by , 9 years ago
Attachment: | Screen Shot 2016-01-30 at 6.45.52 PM.png added |
---|
by , 9 years ago
Attachment: | addtags-patched.png added |
---|
by , 9 years ago
Attachment: | josm-12440-1.patch added |
---|
comment:5 by , 9 years ago
I'm a noob at Java. Poking around, trying to learn stuff!
I believe I found the culprit for this in josm/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
The shortcut key symbols are wrapped in an HTML <code> element.
According to MDN: "The HTML Code Element (<code>) represents a fragment of computer code. By default, it is displayed in the browser's default monospace font."
These Key Shortcuts do not represent fragments of code, they are UI elements/symbols. Wrapping them in an element that uses a monospace font removes all of the presentational goodness that they need to be sized/spaced correctly! Perhaps the + symbols could be sized smaller or grayed because they do not represent keys, but the symbols that represent keys to be pushed should be presented full size, IMO.
I've created a patch that removes the <code>
elements and also adds some padding. Looks like this:
Not quite awesome, but definitely an improvement. Don't know how this effects rendering in Linux or Windows, but I believe it is semantically incorrect to use the <code> element regardless.
comment:6 by , 9 years ago
Milestone: | → 16.02 |
---|
comment:8 by , 9 years ago
Great work! I changed the insets to 5,5,5,5
to be in line with the components above.
can you please update to latest Java (8u72) and post a new screenshot?