Comment 5 for bug 1506256

Revision history for this message
su_v (suv-lp) wrote :

On 2015-10-15 15:51 (+0200), mray wrote:
> @ How state gets saved?
> I would be fine with any of the solutions.

JFTR - I would not be fine with any of them:
* Data loss is a no-go.
* A modal warning dialog (with option to cancel) popping up each time the user clicks the toggle button would defeat its purpose as _quick_ toggle feature.
* Littering SVG code all over with a new custom Inkscape attribute to store last used value of 'opacity' if 'opacity' was toggled off for a selected object is not really a solution IMvHO (it seems more of a workaround to mimic a visibility toggle (display on/off) per object via the object's 'opacity' style property (semantically wrong AFAIU)).

> The "Objects" offers what I need, but it isn't within reach (As "Fill
> and Stroke" is)

Please explain the unreachability of the 'Objects' dialog.

> This defeats the point of having a *quick* A/B toggle.

If you select an object on-canvas, the list in the 'Objects' dialog scrolls to that object -> the visibility toggle button is immediately reachable with the mouse (not further away as a toggle button would be in Fill&Stroke, which would also only be active with a current selection). Additionally, the 'Objects' dialog allows to change the visibility of objects without requiring them to be selected.

> Maybe an updated proposal could be to "embed" the respective toggle from
> the "Objects" window into the "Fill and Stroke"?

AFAIU the 'Hide' toggle button (controlling the style property 'display') is _not_ in the 'Fill and Stroke' dialog for a good reason (it would easily break most basic workflows especially for new users):
* Hidden objects cannot be selected by dragging a selection frame around them; they don't show in outline view mode either.
* Hidden objects cannot be selected with keyboard shortcuts (Ctrl+A, Tab, Shift+Tab) with default preferences settings for 'Behavior > Selecting' (can be changed).
* Hidden objects can only be selected via 'Edit > XML Editor' in current stable, and in 'Objects' dialog in a future release.

The visibility toggle button per object is ok (AFAIU) in the context of the 'Objects' dialog because that dialog offers direct access to objects which are hidden from display on canvas and thus allows to toggle visibility back on for individual objects. Note that details of the current state of the 'Objects' dialog may still change (see also related threads on the devel mailing list).

Maybe such a feature request would better be discussed first outside the bug tracker (e.g. on one of the mailing lists) to get more input from other users and developers.