athityakumar/colorls

Detect OS Dark/Light Mode?

Open

#523 opened on May 3, 2022

 (0 comments) (0 reactions) (0 assignees)Ruby (395 forks)batch import
HacktoberfestUp-For-Grabs

Repository metrics

Stars
 (5,135 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

Hi!

I love that colorls supports and comes with themes for dark/light modes, if set by the user per-usage. I noticed an issue from some time ago #165, in which a commenter suggested using ANSI colors. The way I use my terminal mostly these days is with the integrated term in VSCode, which I've set to switch theme based on my daily OS (mac/windows) dark/light cycle. Unfortunately, I don't know how to auto set colorls to use the appropriate theme based on light/dark mode.

Would it possible to either bake-in such functionality to be configured as the user wishes, or does anyone have any easy scripts or aliases or something that can take of this?

The easiest option for me or anyone else really would be to support ANSI color names within the color.yaml files, and let the terminal themes take care of the rest

  • Relevant Issues : #165 kinda
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation

Contributor guide