mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also sort the actions in the quick highlights preferences
This commit is contained in:
parent
ea64f851ef
commit
ce49025770
@ -126,7 +126,9 @@ def update_quick_action_table():
|
|||||||
c.style.display = 'flex'
|
c.style.display = 'flex'
|
||||||
c.style.flexWrap = 'wrap'
|
c.style.flexWrap = 'wrap'
|
||||||
current = {x: True for x in JSON.parse(c.dataset.actions)}
|
current = {x: True for x in JSON.parse(c.dataset.actions)}
|
||||||
for hs in all_styles():
|
actions = list(all_styles())
|
||||||
|
actions.pysort(key=def (a): return (a.friendly_name or '').toLowerCase();)
|
||||||
|
for hs in actions:
|
||||||
c.appendChild(E.label(
|
c.appendChild(E.label(
|
||||||
style='margin: 1ex; display: flex; align-contents: center',
|
style='margin: 1ex; display: flex; align-contents: center',
|
||||||
hs.make_swatch(E.span(), is_dark_theme()),
|
hs.make_swatch(E.span(), is_dark_theme()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user