mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 01:12:45 +00:00
The "disable DevTools" button looked like a "close this notification" button to me, and although a tooltip was set, it only showed up immediately on the AppKit UI and not the Qt version. This makes the behavior of clicking the disable button a lot clearer by showing a button with "Disable" as its title.
25 lines
470 B
Objective-C
25 lines
470 B
Objective-C
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class Tab;
|
|
|
|
using InfoBarDismissed = void (^)(void);
|
|
|
|
@interface InfoBar : NSStackView
|
|
|
|
- (void)showWithMessage:(NSString*)message
|
|
dismissButtonTitle:(NSString*)title
|
|
dismissButtonClicked:(InfoBarDismissed)on_dimissed
|
|
activeTab:(Tab*)tab;
|
|
- (void)hide;
|
|
|
|
- (void)tabBecameActive:(Tab*)tab;
|
|
|
|
@end
|