NSSegmentedControl backlight with a blue tint and one choice

Is there a documented way for NSSegmentedControl use trackMode NSSegmentSwitchTrackingSelectOne (i.e. select only one segment in the control) and make it visualized using the blue tint mode - we get one automatically when using NSSegmentSwitchTrackingSelectAny ?

What I'm looking for is a style similar to the one displayed in the Xcodes or Navigator toolbar:

enter image description here

Attempts so far using different styles or scrolling through the headers have not displayed anything -
a segmented control is displayed with a dark gray backlight (similar to what is seen in the Finder windows).

Any hints on how to activate the blue backlight mode are greatly appreciated.

+5
source share
1 answer

I had the same problem. I'm not sure if this is the right way to do it, but you can create two versions of each image. One for the selected and normal state. Then you can switch images after pressing the control button.

0
source

Source: https://habr.com/ru/post/1247403/


All Articles