Skip to content

Commit 1e9b051

Browse files
vkconfig: Clean up tray icon
Change-Id: Icf6f228c4c39b48d2a1875c82be2d28f5eb334ec
1 parent e5e9554 commit 1e9b051

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

vkconfig_gui/mainwindow.cpp

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,18 @@ void MainWindow::UpdateUI_Status() {
114114
{
115115
QAction *tray_restore_action = new QAction("&Show Vulkan Configurator UI", this);
116116
tray_restore_action->setIcon(QIcon(":/resourcefiles/vkconfig-on.png"));
117+
QFont font = tray_restore_action->font();
118+
font.setBold(true);
119+
tray_restore_action->setFont(font);
117120
this->connect(tray_restore_action, &QAction::triggered, this, &MainWindow::OnTrayActionShow);
118121
menu->addAction(tray_restore_action);
119-
120-
QAction *tray_quit_action = new QAction("&Quit Vulkan Configurator", this);
121-
tray_quit_action->setIcon(::Get(configurator.current_theme_mode, ::ICON_EXIT));
122-
this->connect(tray_quit_action, &QAction::triggered, qApp, &QCoreApplication::quit);
123-
menu->addAction(tray_quit_action);
124122
}
125123

126124
{
127125
menu->addSeparator();
128-
129126
const bool enabled_layers = configurator.layers_override_enabled && configurator.GetExecutableScope() != EXECUTABLE_PER;
130127

131-
QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configurations:", this);
128+
QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configuration:", this);
132129
tray_override_layers->setCheckable(true);
133130
tray_override_layers->setChecked(enabled_layers);
134131

@@ -159,7 +156,6 @@ void MainWindow::UpdateUI_Status() {
159156

160157
{
161158
menu->addSeparator();
162-
163159
const bool enabled_physical_devices =
164160
configurator.driver_override_enabled && configurator.driver_override_mode == DRIVER_MODE_SINGLE;
165161

@@ -204,6 +200,19 @@ void MainWindow::UpdateUI_Status() {
204200
menu->addAction(tray_override_loader_log);
205201
}
206202

203+
{
204+
menu->addSeparator();
205+
menu->addSeparator();
206+
207+
QAction *tray_quit_action = new QAction("&Quit Vulkan Configurator", this);
208+
tray_quit_action->setIcon(::Get(configurator.current_theme_mode, ::ICON_EXIT));
209+
QFont font = tray_quit_action->font();
210+
font.setBold(true);
211+
tray_quit_action->setFont(font);
212+
this->connect(tray_quit_action, &QAction::triggered, qApp, &QCoreApplication::quit);
213+
menu->addAction(tray_quit_action);
214+
}
215+
207216
if (this->_tray_icon != nullptr) {
208217
delete this->_tray_icon;
209218
}

0 commit comments

Comments
 (0)