ladybird/UI/AppKit/Interface/InfoBar.h
Jelle Raaijmakers acc9499c5d UI: Show "Disable" title in DevTools disable button
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.
2025-03-20 17:44:07 -04:00

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