mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
IRCClient: Add some more toolbar actions. Starting to look nice.
This commit is contained in:
parent
3a3aa74b2e
commit
2b6cf37d20
Notes:
sideshowbarker
2024-07-19 15:02:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2b6cf37d208
@ -59,9 +59,26 @@ void IRCAppWindow::setup_widgets()
|
||||
printf("FIXME: Implement part action\n");
|
||||
});
|
||||
|
||||
auto whois_action = GAction::create("Whois user", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/irc-whois.rgb", { 16, 16 }), [] (auto&) {
|
||||
printf("FIXME: Implement whois action\n");
|
||||
});
|
||||
|
||||
auto open_query_action = GAction::create("Open query", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/irc-open-query.rgb", { 16, 16 }), [] (auto&) {
|
||||
printf("FIXME: Implement open-query action\n");
|
||||
});
|
||||
|
||||
auto close_query_action = GAction::create("Close query", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/irc-close-query.rgb", { 16, 16 }), [] (auto&) {
|
||||
printf("FIXME: Implement close-query action\n");
|
||||
});
|
||||
|
||||
auto* toolbar = new GToolBar(widget);
|
||||
toolbar->add_action(join_action.copy_ref());
|
||||
toolbar->add_action(part_action.copy_ref());
|
||||
toolbar->add_separator();
|
||||
toolbar->add_action(whois_action.copy_ref());
|
||||
toolbar->add_action(open_query_action.copy_ref());
|
||||
toolbar->add_action(close_query_action.copy_ref());
|
||||
|
||||
|
||||
auto* horizontal_container = new GWidget(widget);
|
||||
printf("horizontal_widget: %s{%p}\n", horizontal_container->class_name(), horizontal_container);
|
||||
|
BIN
Base/res/icons/16x16/irc-close-query.png
Normal file
BIN
Base/res/icons/16x16/irc-close-query.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 370 B |
BIN
Base/res/icons/16x16/irc-close-query.rgb
Normal file
BIN
Base/res/icons/16x16/irc-close-query.rgb
Normal file
Binary file not shown.
BIN
Base/res/icons/16x16/irc-open-query.png
Normal file
BIN
Base/res/icons/16x16/irc-open-query.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 342 B |
BIN
Base/res/icons/16x16/irc-open-query.rgb
Normal file
BIN
Base/res/icons/16x16/irc-open-query.rgb
Normal file
Binary file not shown.
BIN
Base/res/icons/16x16/irc-whois.png
Normal file
BIN
Base/res/icons/16x16/irc-whois.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 338 B |
BIN
Base/res/icons/16x16/irc-whois.rgb
Normal file
BIN
Base/res/icons/16x16/irc-whois.rgb
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user