mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird/BrowserWindow: Give color scheme action group a detailed name
'group' is not very specific.
This commit is contained in:
parent
5ac5fef468
commit
edd1e770d9
Notes:
sideshowbarker
2024-07-17 07:20:57 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/edd1e770d9 Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
1 changed files with 4 additions and 4 deletions
|
@ -62,23 +62,23 @@ BrowserWindow::BrowserWindow()
|
|||
|
||||
auto* color_scheme_menu = view_menu->addMenu("&Color Scheme");
|
||||
|
||||
auto* group = new QActionGroup(this);
|
||||
auto* color_scheme_group = new QActionGroup(this);
|
||||
|
||||
auto* auto_color_scheme = new QAction("&Auto");
|
||||
auto_color_scheme->setCheckable(true);
|
||||
group->addAction(auto_color_scheme);
|
||||
color_scheme_group->addAction(auto_color_scheme);
|
||||
color_scheme_menu->addAction(auto_color_scheme);
|
||||
QObject::connect(auto_color_scheme, &QAction::triggered, this, &BrowserWindow::enable_auto_color_scheme);
|
||||
|
||||
auto* light_color_scheme = new QAction("&Light");
|
||||
light_color_scheme->setCheckable(true);
|
||||
group->addAction(light_color_scheme);
|
||||
color_scheme_group->addAction(light_color_scheme);
|
||||
color_scheme_menu->addAction(light_color_scheme);
|
||||
QObject::connect(light_color_scheme, &QAction::triggered, this, &BrowserWindow::enable_light_color_scheme);
|
||||
|
||||
auto* dark_color_scheme = new QAction("&Dark");
|
||||
dark_color_scheme->setCheckable(true);
|
||||
group->addAction(dark_color_scheme);
|
||||
color_scheme_group->addAction(dark_color_scheme);
|
||||
color_scheme_menu->addAction(dark_color_scheme);
|
||||
QObject::connect(dark_color_scheme, &QAction::triggered, this, &BrowserWindow::enable_dark_color_scheme);
|
||||
|
||||
|
|
Loading…
Reference in a new issue