mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Auto select custom when changing the custom link color
This commit is contained in:
parent
d18cf87693
commit
39e41aac6b
@ -201,7 +201,9 @@ def create_colors_panel(container):
|
||||
'\xa0\xa0',
|
||||
E.label(E.input(type='radio', name='link_color_type', value='custom'), _('Custom')),
|
||||
'\xa0',
|
||||
E.input(name='link', type='color', value='#000000')
|
||||
E.input(name='link', type='color', value='#000000', onclick=def (ev):
|
||||
ev.currentTarget.parentNode.querySelector('[name=link_color_type][value=custom]').checked = True
|
||||
)
|
||||
)),
|
||||
),
|
||||
E.div(style="display:flex; justify-content: flex-end; margin: 1ex 1em",
|
||||
|
Loading…
x
Reference in New Issue
Block a user