Skip to content

Style tweaks: add 'Set on/off' action to Dispatcher#13242

Merged
hius07 merged 3 commits into
koreader:masterfrom
hius07:style-tweak-set
Feb 14, 2025
Merged

Style tweaks: add 'Set on/off' action to Dispatcher#13242
hius07 merged 3 commits into
koreader:masterfrom
hius07:style-tweak-set

Conversation

@hius07

@hius07 hius07 commented Feb 12, 2025

Copy link
Copy Markdown
Member

1

Closes #13010.


This change is Reviewable

@Frenzie Frenzie added this to the 2025.02 milestone Feb 12, 2025
Dispatcher:registerAction(ReaderStyleTweak.dispatcher_prefix..tweak_id,
{category="none", event="ToggleStyleTweak", arg=tweak_id, title=T(_("Toggle style tweak: %1"), tweak_title), rolling=true})
Dispatcher:registerAction(ReaderStyleTweak.dispatcher_prefix_set..tweak_id,
{category="string", event="ToggleStyleTweak", arg=tweak_id, title=T(_("Style tweak '%1' set"), tweak_title), rolling=true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You think it's unclear without the "set"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with "toggle". Maybe, not needed.

@hius07 hius07 merged commit 5a6fd74 into koreader:master Feb 14, 2025
@hius07 hius07 deleted the style-tweak-set branch February 14, 2025 16:53
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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: Action list/profiles: "Set" option rather than "toggle" for style tweaks

2 participants