Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a TrafficLightsSafeArea widget #30

Open
matthew-carroll opened this issue Jun 26, 2023 · 2 comments
Open

Create a TrafficLightsSafeArea widget #30

matthew-carroll opened this issue Jun 26, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@matthew-carroll
Copy link

matthew-carroll commented Jun 26, 2023

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: macosui/macos_ui#437

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

@Adrian-Samoticha Adrian-Samoticha added the enhancement New feature or request label Jun 26, 2023
@Adrian-Samoticha
Copy link
Member

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 Adrian-Samoticha self-assigned this Jun 26, 2023
@GroovinChip
Copy link

GroovinChip commented Jul 4, 2023

@Adrian-Samoticha this may be helpful in resolving macosui/macos_ui#371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants