macos_window_utils.dart icon indicating copy to clipboard operation
macos_window_utils.dart copied to clipboard

Create a TrafficLightsSafeArea widget

Open matthew-carroll opened this issue 2 years ago • 2 comments

This library has TitlebarSafeArea, which pushes content down below the title bar.

I'm displaying tabs in the title bar area and I need the tabs to avoid the traffic lights, but not by pushing the content down. Instead, I need to push the content to the right of the traffic lights, but remain at the top of the screen.

Consider offering a TrafficLightsSafeArea for this purpose. Or, consider adding a property to TitlebarSafeArea that toggles between pushing content down, vs pushing content away from the traffic lights within the title bar.

I filed an equivalent issue in macos_ui before seeing that this package already has a TitlebarSafeArea: https://github.com/macosui/macos_ui/issues/437

I'll let the maintainers hash out where that belongs.

matthew-carroll avatar Jun 26 '23 09:06 matthew-carroll

This may, in fact, be possible by retrieving the frame of the traffic light buttons to get their positions. I’ll look into this on occasion.

Adrian-Samoticha avatar Jun 26 '23 12:06 Adrian-Samoticha

~~@Adrian-Samoticha this may be helpful in resolving https://github.com/macosui/macos_ui/issues/371~~

GroovinChip avatar Jul 04 '23 17:07 GroovinChip