Dagimon mega level

ani fixes

add color options for toolbar and game icons
This commit is contained in:
Megamouse 2017-07-06 11:48:06 +02:00 committed by Ivan
parent 457c2d364f
commit 1a4e1919fc
16 changed files with 196 additions and 64 deletions

View file

@ -179,6 +179,11 @@ void gui_settings::SetGamelistColVisibility(int col, bool val)
SetValue(GUI_SAVE(GUI::game_list, "Col" + QString::number(col) + "visible", show), val);
}
void gui_settings::SetCustomColor(int col, const QColor& val)
{
SetValue(GUI_SAVE(GUI::meta, "CustomColor" + QString::number(col), QColor(0, 0, 0, 0)), val);
}
void gui_settings::SaveCurrentConfig(const QString& friendlyName)
{
SetValue(GUI::m_currentConfig, friendlyName);
@ -197,6 +202,11 @@ bool gui_settings::GetGamelistColVisibility(int col)
return GetValue(GUI_SAVE(GUI::game_list, "Col" + QString::number(col) + "visible", show)).toBool();
}
QColor gui_settings::GetCustomColor(int col)
{
return GetValue(GUI_SAVE(GUI::meta, "CustomColor" + QString::number(col), QColor(255, 255, 255, 255))).value<QColor>();
}
QStringList gui_settings::GetConfigEntries()
{
QStringList nameFilter;