mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
55d4adc614
commit
e0a7217c4b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user