Skip to content

A System monitor showing CPU and memory turns all orange when only one of them is high #645

Closed

Description

@M4n0x

What happens

A System monitor widget that shows CPU and memory side by side takes the warning colour as a whole when only one of them crosses its threshold. With CPU at 94 % and memory at 75 %, the MEM label, its value and its meter turn orange along with the CPU.

CPU at 94 % and memory at 75 %, both drawn in the warning colour

Steps to reproduce

  1. Add a System monitor widget (details on, no rules), and choose Shows → CPU and memory, or give it a layout with a CPU part and a memory part.
  2. Use a theme or widget style that colours states.warning, as newly added System monitor widgets do.
  3. Push CPU use over cpuWarning (or set CPU use in Warnings to 1 %) while memory stays under memoryWarning.

Expected

Only the blocks showing CPU take the warning colour; the memory part keeps its normal colours, and the other way round when memory is high.

Environment

  • StableBar 0.15.0
  • macOS 27.2.1
  • A two-column layout (CPU label, value and graph; MEM label, value and meter), and the built-in CPU and memory display choices.

Evidence

The same scene drawn offscreen from main, both layouts, Dark and Light:

Before, dark

Before, light

Diagnosis

systemWarning in Sources/StableBar/NativeMetrics.swift returns one data state for the widget when CPU or memory crosses its threshold, or on memory pressure or heat. widgetDataState in StyleResolution.swift hands that state to the whole widget, and every layout block resolves it through ResolvedWidgetStyle.blockStates, so nothing tells the CPU part from the memory part.

Related

Triaged by Claude Opus 5.5 via Claude Code.

Activity

  1. added
    bug
    on Nov 14, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions