GUI: Allow greying out dummy ListWidget entries
|Reported by:||fingolfin||Owned by:||lordhoto|
It would be nice if ListWidget would allow marking select entries as "dummy" or "fake". Let me explain: Consider a list of savestates as in the GMM (global main menu). It lists all available save slots, together with a brief description of the save state in it. If there is no state stored in the slot, no description is drawn. But sometimes, a user saves a state without entering a description. In the past, we would draw the corresponding slot exactly like an empty slot. Bad. We fixed this by displaying a dummy description ("Untitled savestate") for savestates with an empty desc. (See also patch #2832247.)
Problem: These fake descs are not distinguishable from a real desc with the same content (a rather hypothetical issue, I admit). But still, it's annoying that fake names look the same as regular names. In another context, this could become a real problem.
Thus, it would be nice if one could tell ListWidget that an entry is fake. In response, ListWidget would draw that item with e.g. gray text instead of black text (the exact color would ideally be themeable). When in edit mode, then trying to edit an entry with such a fake entry would actually display the empty string for editing. I.e. if you select a fake entry, and enter edit mode, then instead of letting you edit the string "Untitled savestate" (or whatever else is used), it would act as if you were editing an entry with empty content. If you end editing with an empty entry again, nothing would happen; but if you end editing with something non-empty, the entry would loose its "fake" state.
This change would result in a more consistent user experience, I believe. Unfortunately, it would be a tad difficult to implement cleanly with the current theme code.
Ticket imported from: #2834637. Ticket imported from: feature-requests/549.