mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Applets: Add tooltip for Clipboard History
This commit is contained in:
parent
7f02270f01
commit
4563d6da8d
Notes:
sideshowbarker
2024-07-18 08:45:38 +09:00
Author: https://github.com/brapru Commit: https://github.com/SerenityOS/serenity/commit/4563d6da8db Pull-request: https://github.com/SerenityOS/serenity/pull/8875
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ int main(int argc, char* argv[])
|
|||
applet_window->set_window_type(GUI::WindowType::Applet);
|
||||
applet_window->set_has_alpha_channel(true);
|
||||
auto& icon = applet_window->set_main_widget<GUI::ImageWidget>();
|
||||
icon.set_tooltip("Clipboard History");
|
||||
icon.load_from_file("/res/icons/16x16/edit-copy.png");
|
||||
icon.on_click = [&main_window = *main_window] {
|
||||
main_window.show();
|
||||
|
|
Loading…
Reference in a new issue