Tooltips for highlight styles

This commit is contained in:
Kovid Goyal 2020-09-10 07:53:13 +05:30
parent 94479386d9
commit fd6ed6cacb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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')