RealRaven2000 / quickFilters

Thunderbird Add-on: quickFilters
http://quickfilters.quickfolders.org/
Other
46 stars 11 forks source link

Filters List: bigger Tooltips or detailed help #237

Closed GoeWink closed 1 month ago

GoeWink commented 3 months ago

I like Quickfilters very much and use intensively. And I like the menue where I can merge and copy and so on, too. I see there are toolrips which pop up with mosue-over. That is fine, too. But I am handicpped by view and have to magnify to read little letters. Normally that works fine but the longer the text the less I can read. Following the long text the mouse-over get lost and the text is gone. So I ask for bigger letters. Or a help text with piktogram to find the right actons. Sure: Many pictograms are known but the others...? Thank you in advance

RealRaven2000 commented 3 months ago

I guess you mean the "icon only" toolbar in the filters list? I will look into it - these are determined by some built in CSS, based on the toolbarbutton XUL elements, so this is actually then a general accessibility issue that will affect any such tooltips anywhere else in the Thunderbird UI.

image

So I asked the Thunderbird developers and the general Mozilla developers (Firefox) on Matrix chat. Apparently there is a single tooltip element at the end of the DOM document:

image

so we should be able to style this with a CSS rule and increase its font size...

RealRaven2000 commented 3 months ago

Original CSS (from user agent):

tooltip {
  white-space: pre-wrap;
  color: InfoText;
  font: message-box;
  pointer-events: none;
}

I will override this with:

tooltip {
 font-size: 120%;
}

However, that didn't work, I asked and:

image

however, there seems to be another solution:

image

So I basically need to implement my own personal tooltip element and style that. WE will see...

if that doesn't work I can try a CSS only solution that injects the text using a content pseudo element ::before oder ::after (which I have done before in FiltaQuilla)

RealRaven2000 commented 2 months ago

Ok, I came up with a solution - this is a custom tooltip with different positioning and larger font. So it also works well if you have large mouse cursors (preventing [this bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1712669)). The trick is to not use the tooltiptext attribute - because then it will always use the default tooltip and then then set a tooltip attribute. The tooltip is it's on element and has a onpopupshowing event listener that extracts the custom tooltip text (I called it tooltiptext_qI)

image

test version below (restart Thunderbird to force loading the new style sheet)

quickFilters-wx-6.4pre50.zip


To install version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

Implemented: 6.4 - Published 11/04/2024