Skip to content

Gesture manager and Profiles: improve Dispatcher actions menu#13078

Merged
hius07 merged 7 commits into
koreader:masterfrom
hius07:actions-menu
Jan 26, 2025
Merged

Gesture manager and Profiles: improve Dispatcher actions menu#13078
hius07 merged 7 commits into
koreader:masterfrom
hius07:actions-menu

Conversation

@hius07

@hius07 hius07 commented Jan 16, 2025

Copy link
Copy Markdown
Member

(1) Actions menu: ask to remove several actions when choosing Default, Pass through or Nothing. Closes #10534.

01

(2) "Arrange actions" is available iff number of actions is greater than 1.
Actions are always ordered, in the order of adding until manual sorting, hence no checkbox in the menu.

02

(3) Remove "QuickMenu" header for gestures. Closes #12827.

03

(4) QuickMenu separators can be set in the Sorting widget (via SortWidget checkboxes). Closes #13056.

04

05

06

(5) Other minor fixes in actions menu appearance.


This change is Reviewable

@Commodore64user

Commodore64user commented Jan 16, 2025

Copy link
Copy Markdown
Member

It's looks good (as far as the screenshots go) but why don't you apply those [applicable] changes to hotkeys as well? The way I see it; gestures, profiles and hotkeys are “The Three Musketeers”

Not too sure about using check boxes to indicate insertion of a separator, seems more like activating/deactivating the action.

@mergen3107

Copy link
Copy Markdown
Contributor

It looks like a checkbox means "place separator after this item"

@hius07

hius07 commented Jan 16, 2025

Copy link
Copy Markdown
Member Author

I don't want to blow up the SortWidget for this special usecase.
Checkbox means separator after the item.

@jonnyl2

jonnyl2 commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

Also closes #10534 👍

@poire-z

poire-z commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

Not too sure about using check boxes to indicate insertion of a separator, seems more like activating/deactivating the action.
Checkbox means separator after the item.

Not intuitive at all :/
I guess QuickMenu is an advanced features and people read here and will know about it, so it's ok.
But may be our CheckBox/CheckMark could have an option underscore_container so it appears as an underscore instead of a rounded square - with the checkbox above it. It would then be a little bit more intuitive that
"Checkbox Checked underline means separator after the item"

@Commodore64user

Commodore64user commented Jan 16, 2025

Copy link
Copy Markdown
Member

There is a poor-man's [different] approach here #13056 (comment), it works, i can't upload the link with the diff atm but could later.

@Frenzie

Frenzie commented Jan 16, 2025

Copy link
Copy Markdown
Member

It does indeed look more like enable/disable without explicitly deleting. Another potential thought in line with what @poire-z wrote ("an option underscore_container so it appears as an underscore instead of a rounded square"), is that perhaps you could actively add a separate/underline under the item when you check it.

@hius07

hius07 commented Jan 16, 2025

Copy link
Copy Markdown
Member Author

07

@Frenzie

Frenzie commented Jan 16, 2025

Copy link
Copy Markdown
Member

To me just a regular checkbox is fine.

@poire-z

poire-z commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

image

Can't say I'm fond of that :) but neither of the checkboxes. No other idea...

@Commodore64user

Copy link
Copy Markdown
Member

this is what I have @hius07 https://github.com/koreader/koreader/compare/master...Commodore64user:sort-sep?expand=1

if you like what you see, I can PR it and you could take it from there. Of course I am completely biased here, but I think this is the right way to do it. ;)

@mergen3107

Copy link
Copy Markdown
Contributor

@Commodore64user
Your link above took me to a "Create new Pull request" page

@Commodore64user

Copy link
Copy Markdown
Member

you should be able to see the diff, can you not?

@mergen3107

Copy link
Copy Markdown
Contributor

I see this
image

Maybe because I am on mobile

@mergen3107

Copy link
Copy Markdown
Contributor

Ah, sorry. My bad

GitHub on Safari has been acting up so badly recently.

That page above apparently needs 30-60 seconds to load fully.

Also, usual "compare" page never gets loaded anymore, so frustrating

@hius07

hius07 commented Jan 17, 2025

Copy link
Copy Markdown
Member Author

08

@Frenzie

Frenzie commented Jan 17, 2025

Copy link
Copy Markdown
Member

I like it. Clarity may not be ideal (maybe it's just underlined to show it's selected) but it sure beats the other options.

@jonnyl2

jonnyl2 commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

A small wording change could make it clearer: "Arrange actions, add QuickMenu separators". Because the separators are not really arranged. (And the last checkbox is not really needed.)

@Commodore64user

Copy link
Copy Markdown
Member

That looks better, yes, and it's far less over-engineered (guilty). I agree with Frenzie that the checkboxes (and ticks) are not needed, and with Jonny about the wording change.

@hius07

hius07 commented Jan 18, 2025

Copy link
Copy Markdown
Member Author

Also overriding #12866, thanks @thialfi17.

@hius07

hius07 commented Jan 18, 2025

Copy link
Copy Markdown
Member Author

Tapping on a checkbox toggles it (along with long-pressing on an item).

@Commodore64user

Copy link
Copy Markdown
Member

402350755-6b8724bf-328e-42e9-a7d3-6d5c823081f1

that looks quite nice, no checkbox (although you could still tap that area to toggle the separator) and lower the rule just a bit so it looks a little less like un underline. long-press is great too as it would work nicely on NT.

@hius07 hius07 merged commit 9bcd096 into koreader:master Jan 26, 2025
@hius07 hius07 deleted the actions-menu branch January 26, 2025 09:10
@hius07 hius07 added this to the 2025.01 milestone Jan 26, 2025
Commodore64user pushed a commit to Commodore64user/KOReader_fork that referenced this pull request Jan 27, 2025
@Commodore64user

Copy link
Copy Markdown
Member

this method is somehow broken on NT, no matter where you try to add a separator, it will only add it to the first item in the list. Similarly, if you go to manage dictionaries, and try to untick any dictionary in position n > 1, only and always the very first will get unticked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: QuickMenu with separators FR: Remove quick menu header FR: Warning message in gesture manager before removal of multiple actions

6 participants