You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add dynamic color feature based on widget values #38
I definitely like the concept. Are you thinking for certain widgets that support dynamic color that this would be on by default?
There's a lot of things to take into consideration with how the colors currently work. We've got the ability for global BG and FG overrides, powerline theme overrides, and custom color overrides (both in powerline and non-powerline modes). There's also merged items that get their background color from the item they are merged with.
If we can find a system that plays well with all these, I'd love it. If you want to take a stab at implementing it, please feel free. I don't have any major changes planned for the next few days that'll disrupt the touchpoints that this would need.
Very cool, and I definitely welcome the contribution. I'm colorblind (protanopia) so most of these themes were claude generated and then lots of back and forth to ensure some minimum contrast level and ensure they work in all color modes. Just make sure on the powerline themes that they handle wraparound properly - last color has enough contrast with the first color for statuslines that have enough widgets to wraparound the theme. And make sure to test in 16 / 256 / true color modes. It's a pain but I want it to look good for everyone no matter how they are using it.
I like the icons, I'd just say make it a toggleable thing. I had an enhancement issue planned to make the labels customizable for each item, so my thought was if someone wants an emoji or unicode symbol instead of text, we'd just let them customize the label. Just keep in mind the config file migration if there are any breaking changes, I don't want to break anyone's existing layout. If you want to go over anything in more detail, you can usually find me on Discord. There's also a new widget metadata storage system I want to migrate everything to, giving it a space in the config for a key/value store per widget instead of how most of them work now. I can discuss that in more detail if you want to chat sometime.
Hello, I'd also like to see this feature integrated. Would be very useful at least for context and usage metrics. Did you make any progress on implementing this feature?
+1 for this, I would love to have my context window bar change colour as my context goes up to remind me that i may want to compact before it auto compacts. Additionally an icon that could conditionally appear (and or flash) too based on my context level would also be great.
I would love to have an option for auto-switch colors for model names and effort-levels.
Also, it would be nice if Git Changes like (+42,-10) were colored as +42 green and -10 red.
From this thread, model names and effort levels are eric-engberg#40 and eric-engberg#2. Coloring Git Changes' +/- isn't covered. None of it is upstream yet.
Activity
sirmalloc commentedon Aug 20, 2025
I definitely like the concept. Are you thinking for certain widgets that support dynamic color that this would be on by default?
There's a lot of things to take into consideration with how the colors currently work. We've got the ability for global BG and FG overrides, powerline theme overrides, and custom color overrides (both in powerline and non-powerline modes). There's also merged items that get their background color from the item they are merged with.
If we can find a system that plays well with all these, I'd love it. If you want to take a stab at implementing it, please feel free. I don't have any major changes planned for the next few days that'll disrupt the touchpoints that this would need.
mrclrchtr commentedon Aug 20, 2025
I'm currently working on a few adjustments that I definitely want to have for myself. Among other things, I'm trying to refine the themes a little:
(And added other "Block" options)
I will take a close look at this and think I will find a good solution.
Thanks in advance for the insights!
sirmalloc commentedon Aug 20, 2025
Very cool, and I definitely welcome the contribution. I'm colorblind (protanopia) so most of these themes were claude generated and then lots of back and forth to ensure some minimum contrast level and ensure they work in all color modes. Just make sure on the powerline themes that they handle wraparound properly - last color has enough contrast with the first color for statuslines that have enough widgets to wraparound the theme. And make sure to test in 16 / 256 / true color modes. It's a pain but I want it to look good for everyone no matter how they are using it.
I like the icons, I'd just say make it a toggleable thing. I had an enhancement issue planned to make the labels customizable for each item, so my thought was if someone wants an emoji or unicode symbol instead of text, we'd just let them customize the label. Just keep in mind the config file migration if there are any breaking changes, I don't want to break anyone's existing layout. If you want to go over anything in more detail, you can usually find me on Discord. There's also a new widget metadata storage system I want to migrate everything to, giving it a space in the config for a key/value store per widget instead of how most of them work now. I can discuss that in more detail if you want to chat sometime.
ekain-fr commentedon Nov 23, 2025
Hello, I'd also like to see this feature integrated. Would be very useful at least for context and usage metrics. Did you make any progress on implementing this feature?
sirmalloc commentedon Nov 28, 2025
Add configurable context warning alerts (fixes sirmalloc#38)
Add configurable context warning alerts (fixes sirmalloc#38)
feat: add widget rules engine for conditional property overrides
feat: add widget rules engine for conditional property overrides
chrisbeardy commentedon May 21, 2026
+1 for this, I would love to have my context window bar change colour as my context goes up to remind me that i may want to compact before it auto compacts. Additionally an icon that could conditionally appear (and or flash) too based on my context level would also be great.
mdefeche commentedon Jun 3, 2026
I would also love to have this for the session usage before I start using $ from extra usage !
xkrt commentedon Jul 17, 2026
I would love to have an option for auto-switch colors for model names and effort-levels.
Also, it would be nice if Git Changes like
(+42,-10)were colored as+42green and-10red.eric-engberg commentedon Oct 9, 2026
Value colors are built in my fork, per widget, with break points you can edit or a gradient:
From this thread, model names and effort levels are eric-engberg#40 and eric-engberg#2. Coloring Git Changes'
+/-isn't covered. None of it is upstream yet.