Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve hostname colorization #475

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Sep 20, 2019

  1. Fix getOppositeColor

    The function getOppositeColor in color_compliment.py
    did not work properly. It was mixing value ranges
    from 0-1 and ranges from 0-255
    ultravail committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    19c2962 View commit details
    Browse the repository at this point in the history
  2. Optimize dark theme colorize for hostname

    When hostname colorization is enabled, then a
    random number is being generated for the foreground
    color of the hostname and the opposite color is
    being calculated for the background color.
    
    When running in a shell with dark background color
    it typically looks better if the background color
    of the hostname is "bright". So I introduced an
    option in the configuration named "hostname.dark"
    that (when set to true) picks the brighter of the
    two colors for the hostname as the background color.
    ultravail committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    589b33c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    02e2ee6 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2021

  1. Fix getOppositeColor

    The initial fix unnecessarily divided RGB values by 255
    ultravail authored Mar 6, 2021
    Configuration menu
    Copy the full SHA
    4a4184b View commit details
    Browse the repository at this point in the history