Git Product home page Git Product logo

Comments (7)

Infocatcher avatar Infocatcher commented on August 22, 2024

Unfortunately system colors aren't good too: only gray variants on Windows and may be not compatible with non-default themes.

from private_tab.

Infocatcher avatar Infocatcher commented on August 22, 2024

With 17afdcf commit for bright default text will be used following style:

#privateTab-tooltip-isPrivateTabLabel {
    color: currentColor;
    text-decoration: underline;
    -moz-text-decoration-color: currentColor;
    -moz-text-decoration-style: dashed;
}

Test version: private_tab-0.1.1pre15-fx-sm.xpi

from private_tab.

ssokolow avatar ssokolow commented on August 22, 2024

My mistake. I didn't mean to specifically say that system colours should always be used. What I meant but didn't communicate properly was that, if the theme decides to use system-provided colors, the tooltips should follow along to avoid this kind of breakage.

The test version is perfectly readable though the "(private tab)" label isn't as eye-grabbing with only a dashed underline.

(Hence why I suggested using bold to replace the blue colour. It'd look good and be simpler than the alternative: Using colour theory to generate candidate foreground colors that complement the background color, calculating the luminosity contrast ratio of each, and then picking one with a ratio of at least 5:1.)

from private_tab.

Infocatcher avatar Infocatcher commented on August 22, 2024

I'm not sure about bold text... Some theme may use it. And bold text appearance is font-dependent.
Also I think, that underline is mere specific and more likely will not be used in themes.

About alternative. I really won't use complex things for simple features. Here may be background images or background gradients...

So, I think, this fix is good approach. :)
And may be easily corrected using userChrome.css – not so easily as using some options, but better than nothing.

Really here is another issue: missing options for private tabs appearance. But many users asks about "something instead of underline". And this is problem with themes compatibility. Only underline and changed icons from example styles looks good in most themes. But I prefer original icons.

from private_tab.

Infocatcher avatar Infocatcher commented on August 22, 2024

So, can I close this issue? :)

from private_tab.

ssokolow avatar ssokolow commented on August 22, 2024

Yeah. My only concern with the underline is that it might not be as eye-grabbing as intended. If you're OK with that, then the test version is perfect.

from private_tab.

Infocatcher avatar Infocatcher commented on August 22, 2024

OK, I tested, and bold + underline looks not so bad. :)

from private_tab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.