Modify

Opened 4 years ago

Closed 15 months ago

Last modified 15 months ago

#3409 closed defect (fixed)

Save Dialog: icons have different size

Reported by: avar Owned by: team
Priority: normal Component: Core
Version: latest Keywords:
Cc:

Description (last modified by xeen)

The dimensions & design of the new save dialog are such that it has a lot of wasted space and some of the text can't be read due to it overflowing the UI elements.

See attached screenshot.

Attachments (6)

save-dialog.png (30.6 KB) - added by avar 4 years ago.
The new save dialog
drag_headers.png (24.3 KB) - added by simon04 21 months ago.
Test.class (1.1 KB) - added by xeen 15 months ago.
The cursor is over the last cell. The "perform actions" button would be disabled, if upload was unchecked, too. If save was checked, the middle icon wouldn’t be greyed out.
wip3409.patch (44.4 KB) - added by xeen 15 months ago.
suggested patch
redesign_screen.png (24.4 KB) - added by xeen 15 months ago.
The cursor is over the last cell. The "perform actions" button would be disabled, if upload was unchecked, too. If save was checked, the middle icon wouldn’t be greyed out.
josm_cancel.png (68.6 KB) - added by Don-vip 15 months ago.

Download all attachments as: .zip

Change History (25)

Changed 4 years ago by avar

The new save dialog

comment:1 follow-up: Changed 4 years ago by Gubaer

And what would you like to have changed?

comment:2 in reply to: ↑ 1 Changed 4 years ago by avar

Replying to Gubaer:

And what would you like to have changed?

I'd like to have a dialog where all the text is readable and which doesn't take up too much space in proportion to the information it's displaying.

How exactly it should be designed I don't know. I just filed a bug to note the problem with the current one so that it's noted in the tracker.

comment:3 Changed 4 years ago by Gubaer

Anyway, if you have some kind of sketch or scribble of what your ideal dialog would look like please post it here.

comment:4 Changed 4 years ago by xeen

Not sure if that's a good idea: turn the table by 90 degrees. It uses the available space better in the common case, but might be confusing if there are two or more unsaved osm layers. On the other hand I can read timetables pretty easily so one might get used to it after having seen it a few times. Any comments on this?

comment:5 Changed 21 months ago by simon04

I wouldn't change the orientation (turn by 90°). Filenames tend to be long and when having ⩾2 layers, more space is wasted than now.

Perhaps one could combine the columns "Should upload?" and "Upload": By default, "Upload" is checked whenever "Should upload?" is yes (is that correct?). When the default is changed, a (e.g. light yellow) background color could indicate/visualize that deviation. Thus, one could drop the columns "Should upload?" and "Should save?".

Btw, funny behaviour in r4337: I can drag the column headers to the left/right, but the content does not move (see attachment:drag_headers.png).

Last edited 21 months ago by simon04 (previous) (diff)

Changed 21 months ago by simon04

comment:6 Changed 21 months ago by stoecker

I think that dragging is nearly nowhere supported in JOSM, as we stayed on Java 1.5 for a long time. Nowadays either it should be disallowed or supported correctly. The later is better, disallowing is easier :-)

Reducing columns seems useful to me.

comment:7 follow-up: Changed 21 months ago by xeen

I had a different idea on how to design this dialog, but haven't looked into it. Since you can actually edit the save-to path in the dialog itself it probably will take more than one afternoon to update the dialog. Anyway, suggested layout:

+-----------------------------------------------------------------------+
| [IC ] *some OSM Layer* /(should be uploaded)/              [X] Upload |
| [ ON] save as: /click here to choose save path/            [ ] Save   |
|                                                                       |
| [IC ] *osmlayer2* /(should be uploaded) (should be saved)/ [X] Upload |
| [ ON] save as: /home/stefan/osm/osmlayer2.osm              [X] Save   |
+-----------------------------------------------------------------------+
| [Perform sel. actions before exiting] [Exit immediately] [Cancel]     |
+-----------------------------------------------------------------------+

with /italic/ and *bold* and the entries should alternate in background or be separated by a thin line.

Last edited 21 months ago by xeen (previous) (diff)

comment:8 in reply to: ↑ 7 Changed 21 months ago by simon04

Replying to xeen:

Wow, I like your suggestion very much! It gets away from the boring table and shows all relevant information to the user (in contrast to the current solution, which hides a lot in tooltips)!

comment:9 Changed 15 months ago by xeen

  • Description modified (diff)

You can try the WIP using this jar if you do not want to build yourself: http://goo.gl/Mr2Rk

Also, now is the time to ask for features ;)

Changed 15 months ago by xeen

The cursor is over the last cell. The "perform actions" button would be disabled, if upload was unchecked, too. If save was checked, the middle icon wouldn’t be greyed out.

Changed 15 months ago by xeen

suggested patch

Changed 15 months ago by xeen

The cursor is over the last cell. The "perform actions" button would be disabled, if upload was unchecked, too. If save was checked, the middle icon wouldn’t be greyed out.

comment:10 Changed 15 months ago by xeen

I’ve implemented everything I wanted to, updated patch, screen and the test build at http://goo.gl/Mr2Rk . I’ll let it sit for a while and re-check for bugs; if none are found, I’ll commit it like suggested.

comment:11 Changed 15 months ago by xeen

  • Resolution set to fixed
  • Status changed from new to closed

In 5003/josm:

fix #3409

Changed 15 months ago by Don-vip

comment:12 Changed 15 months ago by Don-vip

  • Resolution fixed deleted
  • Status changed from closed to reopened

Nice job :) Is it just possible to fix Cancel image size ? It's a bit smaller than the other ones:


Last edited 15 months ago by Don-vip (previous) (diff)

comment:13 Changed 15 months ago by xeen

Yes, either by providing an icon with the correct dimension (24x24 instead of 16x16) or by upscaling. While latter would look decent enough I would still prefer the former as I feel uncomfy installing a hack for something trivial like this. And scaling icons should definitely not the way to go to implement it generally :)

comment:14 Changed 15 months ago by rickmastfan67

xeen, please see #7426. Thanks.

comment:15 Changed 15 months ago by xeen

  • Summary changed from New save dialog has overflowing text & wasted space to Save Dialog: icons have different size

Now I’m confused. The cancel icon *has* the correct size. It’s 24x24 Pixels and it is loaded correctly (i.e. Java says it’s 24x24). However, somewhere in between it gets resized to 20 Pixels in height and I have no idea why… it seems to work fine for the other icons, and even if I switch the icon it still gets resized. Apparently there’s some magic related to the cancel button…

comment:16 Changed 15 months ago by xeen

Okay, there’s some code which resizes all icons to 20x20 pixel… and it applies to all icons, even the larger ones. I don’t get why they don’t render resized, although they definitely should.

comment:17 Changed 15 months ago by xeen

  • Resolution set to fixed
  • Status changed from reopened to closed

In 5007/josm:

fix #3409

comment:18 Changed 15 months ago by stoecker

Hmm, why is SideButton used in that dialog? As the name says it is designed to be used in ToggleDialog on right side.

comment:19 Changed 15 months ago by xeen

I asked myself the same thing. I posted on the mailing list about this, but either it’s not yet been processed or it rejected it due to my new mail address (which isn’t subscribed).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.