macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

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

Open driftwoodstudio opened this issue 10 months ago • 1 comments

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

driftwoodstudio avatar Mar 04 '25 02:03 driftwoodstudio

Yeah, not all components listen to the accent color right now.

Adrian-Samoticha avatar May 23 '25 20:05 Adrian-Samoticha