Giter VIP home page Giter VIP logo

Comments (4)

AnrDaemon avatar AnrDaemon commented on July 28, 2024

MY> Steps to reproduce:
MY> nPopupColor #0000
MY> nPopupItemColor transparent
MY> nPopupItemFontColor #000
MY> Expected:
MY> black text over a transparent backgrond. nPopupItemFontColor #fff works.

Have you tried full 32-bit color specifications?

from nmodules.

stephen-zhao avatar stephen-zhao commented on July 28, 2024

Upon further investigation, it would seem that the transparencies on nPopupItemFontColor affects the transparency of the text just as nPopupItemColor does. However the transparency on nPopupItemFontColor if changed to 0, causes the text's transparency to vary based on its brightness: MY> black text over a transparent backgrond. nPopupItemFontColor #fff works.
It acts like a transparency multiplier... for what reason? (I haven't taken a look at the src code for this yet)

from nmodules.

alur avatar alur commented on July 28, 2024

It's some issue with TextAntiAliasMode. Setting it to GrayScale fixes it.

from nmodules.

alur avatar alur commented on July 28, 2024

The quote here seems relevant: http://en.wikipedia.org/wiki/ClearType#ClearType_in_DirectWrite
I think I'll switch the default mode to GrayScale for the 1.0 release.

from nmodules.

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.