Page 1 of 1

Formats - add separator after most used formats

Posted: Thu Nov 02, 2023 8:29 am
by user0
XnViewMP 1.6.1 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Formats dropdown
it is does not look nice when there are 2 lists joined togeter without any delimiter

Suggestion
add separator after most used formats
(shows only if ☑ 'Show most used format at begining' in Settings > Formats > Saving)

most_used_formats_add_separator.png
most_used_formats_add_separator.png (7.47 KiB) Viewed 2249 times



Related

Re: Formats - add separator after most used formats

Posted: Thu Nov 02, 2023 8:43 am
by cday
+1 with slightly bolder separator.

Re: Formats - add separator after most used formats

Posted: Thu Nov 02, 2023 5:45 pm
by XnTriq
I support this request.

Re: Formats - add separator after most used formats

Posted: Thu Nov 02, 2023 11:14 pm
by ckit
Supported but are BMP and TIFF still commonly used?

Re: Formats - add separator after most used formats

Posted: Fri Nov 03, 2023 6:44 am
by cday
ckit wrote: Thu Nov 02, 2023 11:14 pm Supported but are BMP and TIFF still commonly used?
The formats displayed can be selected in Tools > Settings... > Formats > Saving tab -- Show most used formats at beginning ... :D

Re: Formats - add separator after most used formats

Posted: Sun Nov 05, 2023 3:18 pm
by xnview
not very easy to do. User can select separator

Re: Formats - add separator after most used formats

Posted: Sat Feb 03, 2024 5:27 am
by user0
xnview wrote: Sun Nov 05, 2023 3:18 pm not very easy to do. User can select separator
are you sure?

there is special function available:
QComboBox::insertSeparator
https://www.mimec.org/blog/qcombobox-with-separator wrote:In version 4.4 of Qt a long awaited feature was added to the QComboBox widget. It is now possible to create separator items, which are drawn as thin, gray lines and cannot be selected. Before 4.4 it was necessary to create a custom item delegate, and also to add a few hacks in order to correctly calculate the height of the popup list and to make it impossible to select the separator using up and down arrow keys. Now we can simply use the insertSeparator method.

example:
How to add separator in between the item of ComboBox
insertSeparator.png
insertSeparator.png (1.98 KiB) Viewed 1557 times

Re: Formats - add separator after most used formats

Posted: Mon Feb 05, 2024 2:56 pm
by xnview
the save as dialog (Windows) doesn't use Qt