Add a border to annotation buttons

This commit is contained in:
Kovid Goyal 2020-04-15 21:44:06 +05:30
parent 807e5f0403
commit 175282da52
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -177,6 +177,8 @@ class CreateAnnotation:
cb.style.backgroundColor = get_color('window-background') cb.style.backgroundColor = get_color('window-background')
cb.style.boxSizing = 'border-box' cb.style.boxSizing = 'border-box'
cb.style.padding = '2px' cb.style.padding = '2px'
cb.style.border = 'solid 2px currentColor'
cb.style.borderRadius = '4px'
cb.classList.add('simple-link') cb.classList.add('simple-link')
cb.addEventListener('click', def(ev): cb.addEventListener('click', def(ev):
ev.preventDefault(), ev.stopPropagation() ev.preventDefault(), ev.stopPropagation()