mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tooltips for highlight styles
This commit is contained in:
parent
94479386d9
commit
fd6ed6cacb
@ -448,7 +448,7 @@ class EditNotesAndColors: # {{{
|
|||||||
sqbg = get_color('window-background2') if is_current else 'unset'
|
sqbg = get_color('window-background2') if is_current else 'unset'
|
||||||
item = E.div(
|
item = E.div(
|
||||||
ic, style=f'padding: 4px; background-color: {sqbg}; margin: 4px; border-radius: {ICON_SIZE_VAL/4}{ICON_SIZE_UNIT}',
|
ic, style=f'padding: 4px; background-color: {sqbg}; margin: 4px; border-radius: {ICON_SIZE_VAL/4}{ICON_SIZE_UNIT}',
|
||||||
onclick=self.change_color
|
onclick=self.change_color, title=hs.friendly_name
|
||||||
)
|
)
|
||||||
if is_current:
|
if is_current:
|
||||||
item.classList.add('current-swatch')
|
item.classList.add('current-swatch')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user