settings_dialog: add color picker for gamelist tool icons

This commit is contained in:
Megamouse 2017-07-12 23:32:22 +02:00 committed by Ivan
parent 73bbfcb246
commit c617b17037
2 changed files with 11 additions and 3 deletions

View File

@ -703,7 +703,8 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
xgui_settings->SetValue(color, dlg.selectedColor());
}
};
connect(ui->pb_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::gl_iconColor, "Choose icon color"); });
connect(ui->pb_gl_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::gl_iconColor, "Choose gamelist icon color"); });
connect(ui->pb_gl_tool_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::gl_toolIconColor, "Choose gamelist tool icon color"); });
connect(ui->pb_tool_bar_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::mw_toolBarColor, "Choose tool bar color"); });
connect(ui->pb_tool_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::mw_toolIconColor, "Choose tool icon color"); });

View File

@ -36,7 +36,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>6</number>
</property>
<widget class="QWidget" name="coreTab">
<attribute name="title">
@ -1174,12 +1174,19 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_icon_color">
<widget class="QPushButton" name="pb_gl_icon_color">
<property name="text">
<string>Gamelist icons</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_gl_tool_icon_color">
<property name="text">
<string>Gamelist tool icons</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>