Modify

Opened 3 years ago

Last modified 3 years ago

#21208 new enhancement

Align text and center icons in lists in preference dialogs

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report preferences center icon align text list Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Open tagging preset preferences
  2. Take a look at list of available presets

What is the expected result?

Icons on the left are centered and the text is aligned

What happens instead?

Icons are not centered and text is not aligned:

screenshot of tagging preset available list

Please provide any additional information below. Attach a screenshot if possible.

Tagging presets and map paint styles available lists plus both sides of toolbar preferences are affected. I am not sure about validator rules.

The presets have a similar problem, see #21207.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-08-06 01:22:18 +0200 (Fri, 06 Aug 2021)
Revision:18126
Build-Date:2021-08-06 01:31:59
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18126 en) Linux Debian GNU/Linux 10 (buster)
Memory Usage: 169 MB / 256 MB (5 MB allocated, but free)
Java version: 11.0.12+7-post-Debian-2deb10u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Desktop environment: GNOME

Plugins:
+ flatlaf (35799)
+ tagging-preset-tester (35640)

Attachments (1)

josm_tagging_preset_pref_unaligned_list.jpg (27.8 KB ) - added by skyper 3 years ago.
screenshot of tagging preset available list

Download all attachments as: .zip

Change History (5)

by skyper, 3 years ago

screenshot of tagging preset available list

comment:1 by gaben, 3 years ago

Description: modified (diff)

comment:2 by skyper, 3 years ago

Description: modified (diff)

comment:3 by gaben, 3 years ago

I experimented a bit. The problem is that each row has an icon with a 16x16 pixel dimension, and the icons sometimes don't have a 1:1 aspect ratio. JOSM resizing functions respect aspect ratio but unfortunately don't pad with transparent pixels to fit the given area.

Another issue is the layout, it is a single column solution so there is no "centering" whatsoever possible.

Last edited 3 years ago by gaben (previous) (diff)

comment:4 by skyper, 3 years ago

Maybe tables without border/cell lines as layout work better.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to skyper.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.