Skip to content

Commit 4b38f1b

Browse files
author
ThePBone
committed
Update settings dialog, remove deprecated options
1 parent b3eb78e commit 4b38f1b

File tree

8 files changed

+146
-374
lines changed

8 files changed

+146
-374
lines changed

config/appconfigwrapper.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ void AppConfigWrapper::setAutoFx(bool afx){
2626
appconf->setValue("apply.auto.enable",QVariant(afx));
2727
saveAppConfig();
2828
}
29-
bool AppConfigWrapper::getMuteOnRestart(){
30-
return appconf->getBool("apply.mutedreload");
31-
}
32-
void AppConfigWrapper::setMuteOnRestart(bool on){
33-
appconf->setValue("apply.mutedreload",QVariant(on));
34-
saveAppConfig();
35-
}
3629
void AppConfigWrapper::setGFix(bool f){
3730
appconf->setValue("apply.fixglava",QVariant(f));
3831
saveAppConfig();
@@ -52,24 +45,6 @@ QString AppConfigWrapper::getPath(){
5245
return QString("%1/.config/viper4linux/audio.conf").arg(QDir::homePath());
5346
return path;
5447
}
55-
void AppConfigWrapper::setStylesheet(const QString& s){
56-
appconf->setValue("theme.stylesheet",QVariant(s));
57-
m_stylehelper->SetStyle();
58-
emit styleChanged();
59-
saveAppConfig();
60-
}
61-
QString AppConfigWrapper::getStylesheet(){
62-
return appconf->getString("theme.stylesheet");
63-
}
64-
int AppConfigWrapper::getThememode(){
65-
return appconf->getInt("theme.mode");
66-
}
67-
void AppConfigWrapper::setThememode(int mode){
68-
appconf->setValue("theme.mode",QVariant(mode));
69-
m_stylehelper->SetStyle();
70-
emit styleChanged();
71-
saveAppConfig();
72-
}
7348
void AppConfigWrapper::setColorpalette(const QString& s){
7449
appconf->setValue("theme.palette",QVariant(s));
7550
m_stylehelper->SetStyle();

config/appconfigwrapper.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,10 @@ class AppConfigWrapper : public QObject
5454
bool getAutoFx();
5555
ReloadMethod getReloadMethod();
5656
void setReloadMethod(ReloadMethod mode);
57-
int getThememode();
58-
void setThememode(int mode);
5957
bool getGFix();
6058
void setGFix(bool);
61-
bool getMuteOnRestart();
62-
void setMuteOnRestart(bool on);
6359
QString getPath();
6460
void setPath(const QString& npath);
65-
QString getStylesheet();
66-
void setStylesheet(const QString&);
6761
void setTrayMode(int);
6862
int getTrayMode();
6963
void setSpectrumEnable(bool b);

dialog/palettedlg.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,16 @@ void PaletteEditor::closeWin(){
3838
this->close();
3939
}
4040
void PaletteEditor::Reset(){
41-
appconf->setCustompalette("25,25,25;53,53,53;255,255,255;42,130,218;85,85,85");
41+
appconf->setCustompalette("43,43,43;29,29,29;255,255,255;190,190,190;90,90,90");
4242
}
4343
int PaletteEditor::loadColor(int index,int rgb_index){
4444
QStringList elements = appconf->getCustompalette().split(';');
4545
if(elements.length()<5||elements[index].split(',').size()<3){
46-
if(index==0)return 25;
47-
else if(index==1)return 53;
46+
if(index==0)return 43;
47+
else if(index==1)return 29;
4848
else if(index==2)return 255;
49-
else if(index==3){
50-
if(rgb_index==0)return 42;
51-
else if(rgb_index==1)return 130;
52-
else if(rgb_index==2)return 218;
53-
}
54-
else if(index==4) return 85;
49+
else if(index==3)return 190;
50+
else if(index==4)return 90;
5551
}
5652
QStringList rgb = elements[index].split(',');
5753
return rgb[rgb_index].toInt();

0 commit comments

Comments
 (0)