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 @@ def add_color(self, hs, at_start):
sqbg = get_color('window-background2') if is_current else 'unset'
item = E.div(
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:
item.classList.add('current-swatch')