athityakumar/colorls

Detect OS Dark/Light Mode?

開放

#523 建立於 2022年5月3日

 (0 則留言) (0 個反應) (0 位負責人)Ruby (396 個分叉)batch import
HacktoberfestUp-For-Grabs

倉庫指標

星標
 (5,135 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南