mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
Terminal: Use a gear icon for the "Settings" menu
This commit is contained in:
parent
1689cc0b00
commit
a71e411b27
1 changed files with 2 additions and 2 deletions
|
@ -167,17 +167,17 @@ int main(int argc, char** argv)
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
|
|
||||||
auto app_menu = make<GMenu>("Terminal");
|
auto app_menu = make<GMenu>("Terminal");
|
||||||
app_menu->add_action(GAction::create("Settings...",
|
app_menu->add_action(GAction::create("Settings...", load_png("/res/icons/gear16.png"),
|
||||||
[&settings_window, terminal, &config](const GAction&) {
|
[&settings_window, terminal, &config](const GAction&) {
|
||||||
if (!settings_window)
|
if (!settings_window)
|
||||||
settings_window = create_settings_window(*terminal, config)->make_weak_ptr();
|
settings_window = create_settings_window(*terminal, config)->make_weak_ptr();
|
||||||
settings_window->show();
|
settings_window->show();
|
||||||
settings_window->move_to_front();
|
settings_window->move_to_front();
|
||||||
}));
|
}));
|
||||||
|
app_menu->add_separator();
|
||||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) {
|
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) {
|
||||||
dbgprintf("Terminal: Quit menu activated!\n");
|
dbgprintf("Terminal: Quit menu activated!\n");
|
||||||
GApplication::the().quit(0);
|
GApplication::the().quit(0);
|
||||||
return;
|
|
||||||
}));
|
}));
|
||||||
menubar->add_menu(move(app_menu));
|
menubar->add_menu(move(app_menu));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue