Skip to content

Modern coloring design #10780

Closed
Closed

Description

@iSazonov

Summary of the new feature/enhancement

We have started to add coloring (Select-String, error ConciseView, ...) without a general design.

Coloring is very sensitive area for our eyes. MSFT has accessibility team so that we maintain our health and work with great looking Windows and Office. Today they can do little here because here is no flexibility and tools.

Direction for discussion:

  • We need to support color schemas.
  • We need to recognize terminals (features supported by terminals) in our conhost.
  • We need to have cmdlets to manage coloring and color schemas.
  • We need to have a generic support of coloring in engine/formatting subsystem.
  • We need ...

Proposed technical implementation details (optional)

The issue is for initial discussion. Then RFC is expected.

Activity

  1. added
    Issue-Discussion
    on Oct 12, 2019
  2. rkeithhill commented on Oct 12, 2019

    @rkeithhill
    Collaborator

    Yeah, this color scheme for progress info is just ... bad (really poor contrast for reading):

    image

    I'd prefer something with better contrast e.g.:

    image

  3. rkeithhill commented on Oct 12, 2019

    @rkeithhill
    Collaborator

    On a system with SupportsVirtualTerminal set to $true, I would consider not using one of the ConsoleColor indices because those can be (mis)configured for bad contrast and many (most?) folks do not know how to adjust these colors. I would use a specific set of VT 256 colors for ProgressFore/BackgroundColor. Actually, I would consider doing the same for all the PS colors (when the terminal supports it) and that is where we get into using color schemes.

  4. Jaykul commented on Feb 28, 2020

    @Jaykul
    Contributor

    Keith Hill (@rkeithhill)

    1. Why would you ignore the color scheme that the user selected for their terminal, and create a different color scheme?
    2. The VT256 colors are also customizable by the user (on most modern terminals), it's just that people do so less frequently...

    Also, see #11890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions