Skip to content

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

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

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions