SearchBar Control Grays Out On Enter - maui

On MAUI RC1 I'm seeing that when I type some characters in a SearchBar control and press Enter, the screen grays out, and then doesn't revert to it's normal color.
I've added a simple example above - you can see the background at the top of the screen is white, but the part of the screen that contains the search bar has the gray filter. I'm just wondering if it's supposed to add that light gray filter on top of the content, and if so, how do you make it clear back out?

Related

how to remove the black border in the toggle button when appeared in it is clicked?

enter image description here
I tried to remove that black border that appear when I clicked the toggle button, but I cant find the solution, Im using bootstrap5, please give me a solution
Just use "shadow-none" class on button and it will remove it.

Unity - Change current Toggle's selected color only when clicking on toggle from the same group

I have a menu with 4 toggles (belonging to the same group), and I'm trying to make it so that when I click on Toggle #1, it goes from white to yellow (this part is easy, Color tint transition on Toggle component), but I'd also like for the toggle to STAY yellow as long as another toggle hasn't been clicked.
This part is hard, because the "selected" color of the Color Tint transition goes back to "normal" every time I click anywhere else than Toggle #1, including anywhere on the screen.
Demonstration of toggle clicks (sorry about watermark
I've tried a couple solutions using scripts, event triggers and such, but It never truly works as intended, and I like the transition effects between states that the Color Tint transition brings.
Thanks in advance for your answers, and have a nice day !

How can I implement the native macOS screenshot mouse behavior?

I'm implementing a screenshotting app that captures a portion of the screen. I'm currently:
listening for a keyboard shortcut
drawing a transparent view on top of the entire screen
having the user click and drag to select an area inside of that view
screenshotting the coordinates inside of that bounding area.
Here's an example of what it looks like (the transparent view is tinted blue):
This works, but it causes the mouse to stop focusing on whatever it was previously focusing on. In other words, if I'm hovering over a tooltip and I hit the screenshot shortcut, the tooltip vanishes before I have a chance to screenshot it.
It looks like macOS's own screenshot command does not have this problem. If I hover over a date in StackOverflow in order to see the time tooltip, I can press Cmd+Shift+4 and screenshot it pretty easily:
If I try and do the same thing with my own code, the tooltip vanishes after I render my transparent view, even if I haven't moved my mouse.
Is Apple doing something specific to maintain the focus state of the mouse that I could be doing? Alternatively, should I somehow take advantage of Apple's own screenshotting flow myself inside of this app? If it helps, I'm currently using CGWindowListCreateImage to actually take the screenshot.

How to remove the white box around the NSButton checkbox when disabled?

Update:
I have added a demo on my Github to demonstrate the problem: https://github.com/houmie/CocoaPlayground
Build and start the app, then click on the menu symbol as shown below.
There is not much code to this. Adding a NSButton with Style Check and Type Switch into IB.
In IB it looks fine. But starting the app there is a white box appearing around the disabled checkbox. The background is obviously grey hence it shows.
Is there a way to remove/override that?

Make Button NOT change title color when pressed

I can't find any other question on how to prevent this, and nothing I've tried is working perfectly.
I want to make it so the title color of the text on my button is ALWAYS white (I will do some other styling to make this look good still).
But, every time I press on the button, the title color changes from white to grey. How can I stop this? Preferably in the storyboard file instead of programmatically.
Images for illustration:
Not pressed:
Pressed:
Select -> Type: Custom in Attributes ispector