1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Ladybird/AppKit: Update chrome color on theme color change

This commit is contained in:
Junior Rantila 2023-09-19 01:57:10 +02:00 committed by Andrew Kaster
parent a5b01689f1
commit 31ff752a10
4 changed files with 41 additions and 0 deletions

View file

@ -193,9 +193,13 @@ enum class IsHistoryNavigation {
{
auto* delegate = (ApplicationDelegate*)[NSApp delegate];
self.tab.titlebarAppearsTransparent = NO;
[delegate createNewTab:OptionalNone {}
fromTab:[self tab]
activateTab:Web::HTML::ActivateTab::Yes];
self.tab.titlebarAppearsTransparent = YES;
}
- (void)updateNavigationButtonStates
@ -212,7 +216,9 @@ enum class IsHistoryNavigation {
- (void)showTabOverview:(id)sender
{
self.tab.titlebarAppearsTransparent = NO;
[self.window toggleTabOverview:sender];
self.tab.titlebarAppearsTransparent = YES;
}
- (void)dumpDOMTree:(id)sender