Skip to content

MacosSlider.color defaults to blue, rather than system accent color #562

Open
@driftwoodstudio

Description

@driftwoodstudio

Description

MacosSlider.color property defaults to this.color = CupertinoColors.systemBlue when not specified, rather than defaulting to system accent color. This seems to be generally inconsistent with behavior of other macos_ui controls such as MacosCheckbox that use MacosThemeData.accentColor.

Changing the default to

this.color = MacosTheme.of(context).primaryColor

produces the desired behavior, though a more complex construction my be preferred depending on assumptions about availability of a MacosTheme.

Steps To Reproduce

MacosSlider(
  value: value,
  min: min,
  max: max,
  onChanged: onChangedHandler,
);
Image

Expected behavior

Use current system accent color, as in this example from a system with accent color set to green:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions