FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
5.2k stars 82 forks source link

Label - Background Highlight Features #516

Closed m010-cpu closed 3 months ago

m010-cpu commented 3 months ago

Hi, Would it be possible to implement the highlight features for the background color?

Thanks in advance.

FelixKratz commented 3 months ago

You can change all colors at any time, so the highlight feature is not really needed for anything and is only implemented for texts as a shortcut. E.g. where you could do a conditional check and choose the <color> accordingly:

sketchybar --set <name> background.color=<color>
m010-cpu commented 3 months ago

You can change all colors at any time, so the highlight feature is not really needed for anything and is only implemented for texts as a shortcut. E.g. where you could do a conditional check and choose the <color> accordingly:


sketchybar --set <name> background.color=<color>

Okay thanks for your reply. How could I implement the check of highlight with a condition as you said? Thanks in advance.

FelixKratz commented 3 months ago

Here is an example from my dotfiles (only the update function): https://github.com/FelixKratz/dotfiles/blob/7cef83fc577bb8853c01d6aae66fdc6625feb761/.config/sketchybar/plugins/space.sh#L3-L12

m010-cpu commented 3 months ago

Here is an example from my dotfiles (only the update function):

https://github.com/FelixKratz/dotfiles/blob/7cef83fc577bb8853c01d6aae66fdc6625feb761/.config/sketchybar/plugins/space.sh#L3-L12

Perfect, exactly what I needed👍