Giter Club home page Giter Club logo

Comments (2)

green-green-avk avatar green-green-avk commented on July 22, 2024

Hmm... I just trying to imagine how could we represent some colorful text on some background...

What about a color profile checkbox that makes each color channel $C_c \mid c\in\set{R,G,B}, C_c\in[0,1]$:

  • Bright (for background): $C_{c\ \text{bright}}=C_c+\min\limits_{i\in\set{R,G,B}}(1-C_i)$
  • Dark (for foreground): $C_{c\ \text{dark}}=C_c-\min\limits_{i\in\set{R,G,B}}(C_i)$

Please, confirm.

from anotherterm.

gh-ix avatar gh-ix commented on July 22, 2024

Hey, thanks for your attention!

If I correctly understand, you are trying to solve the problem that the color 'palette' doesn't match well for terminal emulators rendering output of colorizing TUI applications on white/light background.
I'm not sure if that's the job for the terminal emulator - thought many times about it, still unsure...

I always avoided adjusting that in the terminal emulatior and kept all non bg/fg colors ANSI defaults.
(Still pending is my test to alter ANSI output at the 'server' side - I wrote a x-shell config framework which takes care about terminfo(5) and composes a uniform and correctly formatted $prompt for each (bourne/korn-like) shell e.g. - incorporating 'themes' at login-shell level seems a valid approch to me - but nobody else does/did as far as I'm aware... and I guess it will interfere with ncusres and the like...)

TUI applications often provide 'themes', and most times offer a 'light' theme, for which colorized text works well on light background. Those themes usually leave out fg/bg color, so it's a general assumption that the terminal emulator doesn't use divergent color settings.

If your formula results in well readable colorized text (I can't really imagine the look of these 'dark-composed' colors - I guess they are not very colorful in the end), it's definetly a very good option to offer via checkbox, but please make it an additional option, so that one can use white/light background without touching the rest of the palette.

Thanks a lot!

from anotherterm.

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.