Collection module: Separate expanding/collapsing from selecting#20284
Collection module: Separate expanding/collapsing from selecting#20284deekayhd wants to merge 3 commits intodarktable-org:masterfrom
Conversation
|
So IIUC we're trying to make single click work like double click? And again IIUC we're "guessing" where the widgets are going to be and we're not even sure that it will survive a CSS modification? My thoughts
|
I would say we are tying to make the widget work like it is expected by a user to work (compared to other software).
The basic indentation can be read from the GTK framework. My understanding is that the size of the separator has a fixed value in the framework, as well, but it is not exposed directly. And yes, it seems that it can be changed by css. This is also the critical point I see.
Sure, there probably are good reasons why it was implemented as it is, but unfortunately, there is no explanation I could find.
Could you please explain what you mean by level and nested hierarchies?
Agreed, this is critical. And I think that the fix only works and should be merged if the relevant parameters can somehow be derived from the framework. Again, I am hoping for input. Who would be an expert for GTK among the core developers? |
Single folder imports versus recursive imports.
So, maybe it's a documentation problem? Use the proper click sequence based on your filmroll organization? |
Maybe, but you can still run into the issue, if you use not only film rolls with single folder import, but additionally also other parameters, like folders, hierarchical tags, etc. for the selection of collections. |
I suppose that could be true. I've been using it for a lot of years and haven't had any problems. |
This is a proposal for issue #19452.
In the collection module, clicking on a row both selects all images in the clicked hierarchy branch and expands/collapses the hierarchy tree. As a consequence, when navigating to a row deep down in the hierarchy, all images in the hierarchy above are unnecessarily loaded to the light table, especially when the setting "use single click in the collections module" is active. The expected behavior is that expanding and selecting are separated: Clicking the expander triangle only expands/collapses the level, and clicking on the row text only selects the images.
The idea in this fix is to determine from the click position, if the click was on the expander or anywhere else in the row.
Due to the indentation of lower hierarchy levels, the expander area in a row is not fixed. Thus, the indentation is calculated from the hierarchy depth and the basic indentation.
The behavior changes as follows:
For the calculation of the indentation I assume a hard-coded expander width in pixels. I do not know if this value could be determined at runtime, as it may be changed by css customization.
closes #19452