gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

Battery bar color displayed wrong #652

Closed mikahosh1no closed 1 year ago

mikahosh1no commented 1 year ago

Hello, thank you for creating such an excellent project. I found that the battery_bar can not display colors properly after installation. From the .tmux.conf.local file, I noticed that emoji characters are used. As far as I understand, emoji can not change colors. Should it be changed to Ascii square? like

tmux_conf_battery_bar_symbol_full="■"
tmux_conf_battery_bar_symbol_empty="□"

Env

Screenshot

2023-05-13_14-53

gpakosz commented 1 year ago

Hello @mikahosh1no 👋

It's been working for me so far

image

The stock configuration is using U+25FC and U+25FB which are from the Math Symbol category. I'll make more tests with U+25A0 and U+25A1.

As far as I understand, emoji can not change colors

Well all of U+25FC, U+25FB, U+25A0 and U+25A1 have "black" or "white" in their names and are from the Geometric Shapes block which is different from the Emoticons block which goes from U+1F600 to U+1F64F.

Can you please reach out to Alacritty folks to figure out why it doesn't change color?

mikahosh1no commented 1 year ago

I tested the same configuration with WezTerm and the colors displayed correctly. I'm trying to find the differences between the two, and I think it might be due to the font. When I use the Fira Code font, colors are not displayed correctly.

I open a issue in Fira Code https://github.com/tonsky/FiraCode/issues/1528

Thanks.

Hanaasagi commented 1 year ago

@mikahosh1no I have been using Alacritty and the Fira Code font, and I haven't encountered this issue. Did you install some emoji fonts?

2023-05-21_01-28

This electric plug symbol looks like the one in Google Noto Color Emoji. U+25FC is defined in this font, See https://github.com/googlefonts/noto-emoji/blob/934a5706f1f3dd2605c4d9b5d9162fd7f89d8702/svg/emoji_u25fc.svg?plain=1

Ref: https://emojipedia.org/electric-plug/