Skip to content

Commit

Permalink
vkconfig: Clean up UI item names
Browse files Browse the repository at this point in the history
Change-Id: Ia31ce1864821988e9d80f9a29bb06c2bc8781965
  • Loading branch information
christophe-lunarg committed Feb 12, 2025
1 parent f5a4533 commit 5683f10
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 33 deletions.
6 changes: 3 additions & 3 deletions vkconfig_gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ void MainWindow::closeEvent(QCloseEvent *event) {
alert.setDefaultButton(QMessageBox::Ok);
alert.setCheckBox(new QCheckBox("Do not show again."));

QPalette palette, palette_saved = this->ui->settings_keep_running->palette();
QPalette palette, palette_saved = this->ui->preferences_keep_running->palette();
palette.setColor(QPalette::WindowText, QColor(Qt::red));
this->ui->settings_keep_running->setPalette(palette);
this->ui->preferences_keep_running->setPalette(palette);

this->ui->tab_widget->setCurrentIndex(TAB_PREFERENCES);

Expand All @@ -299,7 +299,7 @@ void MainWindow::closeEvent(QCloseEvent *event) {
configurator.Set(HIDE_MESSAGE_USE_SYSTEM_TRAY);
}

this->ui->settings_keep_running->setPalette(palette_saved);
this->ui->preferences_keep_running->setPalette(palette_saved);

if (ret_val == QMessageBox::Cancel) {
event->ignore(); // Not closing the window
Expand Down
52 changes: 46 additions & 6 deletions vkconfig_gui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -174,6 +175,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -323,6 +325,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -429,6 +432,7 @@
<font>
<family>Arial</family>
<pointsize>9</pointsize>
<weight>50</weight>
<italic>true</italic>
<bold>false</bold>
</font>
Expand Down Expand Up @@ -459,6 +463,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -506,6 +511,7 @@
<font>
<family>Arial</family>
<pointsize>9</pointsize>
<weight>50</weight>
<italic>true</italic>
<bold>false</bold>
</font>
Expand Down Expand Up @@ -723,6 +729,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -993,6 +1000,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1247,6 +1255,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1442,6 +1451,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1459,6 +1469,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1486,6 +1497,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1509,6 +1521,7 @@
<font>
<family>Consolas</family>
<pointsize>9</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1550,6 +1563,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1578,6 +1592,7 @@
<font>
<family>Consolas</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -1644,6 +1659,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand All @@ -1669,6 +1685,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1692,6 +1709,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1718,6 +1736,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand All @@ -1743,6 +1762,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1766,6 +1786,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1789,6 +1810,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1815,6 +1837,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand All @@ -1840,6 +1863,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1863,6 +1887,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1886,6 +1911,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1909,6 +1935,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1932,6 +1959,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1955,6 +1983,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -1981,6 +2010,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand All @@ -2006,6 +2036,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -2050,11 +2081,12 @@
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_24">
<item>
<widget class="QGroupBox" name="diagnostic_group_box_settings">
<widget class="QGroupBox" name="preferences_group_box_settings">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -2078,11 +2110,12 @@
<number>5</number>
</property>
<item>
<widget class="QCheckBox" name="settings_keep_running">
<widget class="QCheckBox" name="preferences_keep_running">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -2092,11 +2125,12 @@
</widget>
</item>
<item>
<widget class="QCheckBox" name="settings_layer_dev_mode">
<widget class="QCheckBox" name="preferences_layer_dev_mode">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -2128,6 +2162,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -2140,18 +2175,19 @@
</widget>
</item>
<item>
<widget class="QLineEdit" name="settings_vk_home_text">
<widget class="QLineEdit" name="preferences_vk_home_text">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="settings_vk_home_browse">
<widget class="QPushButton" name="preferences_vk_home_browse">
<property name="maximumSize">
<size>
<width>32</width>
Expand All @@ -2162,6 +2198,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -2275,7 +2312,7 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="settings_reset">
<widget class="QPushButton" name="preferences_reset">
<property name="toolTip">
<string>Resetting Vulkan Configurator to default...</string>
</property>
Expand Down Expand Up @@ -2380,6 +2417,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand All @@ -2406,6 +2444,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down Expand Up @@ -2448,6 +2487,7 @@
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
Expand Down
Loading

0 comments on commit 5683f10

Please sign in to comment.