aristocratos / btop

A monitor of resources
Apache License 2.0
21.29k stars 652 forks source link

How to config theme on my Mac #670

Open barnett-yuxiang opened 1 year ago

barnett-yuxiang commented 1 year ago

i try

brew install btop

and here is my path files

➜  ~ tree ~/.config/btop 
/Users/crystal/.config/btop
├── btop.conf
└── themes
    ├── HotPurpleTrafficLight.theme
    ├── adapta.theme
    ├── adwaita.theme
    ├── ayu.theme
    ├── dracula.theme
    ├── dusklight.theme
    ├── elementarish.theme
    ├── everforest-dark-hard.theme
    ├── flat-remix-light.theme
    ├── flat-remix.theme
    ├── greyscale.theme
    ├── gruvbox_dark.theme
    ├── gruvbox_dark_v2.theme
    ├── gruvbox_material_dark.theme
    ├── horizon.theme
    ├── kyli0x.theme
    ├── matcha-dark-sea.theme
    ├── monokai.theme
    ├── night-owl.theme
    ├── nord.theme
    ├── onedark.theme
    ├── paper.theme
    ├── solarized_dark.theme
    ├── solarized_light.theme
    ├── tokyo-night.theme
    ├── tokyo-storm.theme
    ├── tomorrow-night.theme
    └── whiteout.theme

2 directories, 29 files

how to change a nice theme

image

not very ok

mbhutton commented 10 months ago

I had the same issue with the defaults, and it seems to be related to the truecolor = True setting not working well in Terminal.app, which doesn't seem to support 24-bit colours.

So you have 2 options:

Once that is done, the "Default" theme looks perfectly fine, but otherwise set color_theme to one of the other theme names if you prefer something else, in btop.conf.

Ideally, btop would we able to detect true colour support and toggle this automatically, but not sure how practical that would be.

Good luck!

mbhutton commented 10 months ago

Perhaps btop should be able to toggle this automatically based on the COLORTERM env variable? I.e. to use truecolor only when COLORTERM is set to truecolor?

That approach is used elsewhere, eg: https://dandavison.github.io/delta/tips-and-tricks/24-bit-color-truecolor.html