UI/AppKit: Hide button borders when the button should be invisible

On macOS Tahoe, the zoom button's border is visible when the button
itself is hidden. This feels like a macOS bug, but for now let's hide
the borders as well.
This commit is contained in:
Timothy Flynn 2025-09-16 11:51:49 -04:00 committed by Luke Wilde
parent 55d4adc614
commit e0a7217c4b

View File

@ -91,6 +91,9 @@ public:
virtual void on_visible_state_changed(WebView::Action& action) override
{
[m_control setHidden:!action.visible()];
if ([m_control isKindOfClass:[NSButton class]])
[m_control setBordered:action.visible()];
}
virtual void on_checked_state_changed(WebView::Action& action) override