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

Lazily detect background color setting #61

Merged
merged 1 commit into from Feb 4, 2022
Merged

Commits on Feb 4, 2022

  1. Lazily detect background color setting

    This change prevents Lipgloss from querying the terminal's background
    color setting on init. Instead, the background color will get queried
    the first time the setting gets accessed by HasDarkBackground, and the
    result will be cached.
    
    Furthermore SetHasDarkBackground(bool) has been added, which explicitly
    sets a value and avoids the automatic detection from ever being run.
    muesli committed Feb 4, 2022
    Copy the full SHA
    a3fade1 View commit details
    Browse the repository at this point in the history