diff options
author | Ken Moore <ken@pcbsd.org> | 2015-01-19 11:33:19 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-01-19 11:33:19 -0500 |
commit | d32cbbe76a003afb4bcf8930afe6849e6e036fc9 (patch) | |
tree | d7a4ab5a34471ccfb51dcdde98d45d53467b7543 /lumina-config/mainUI.cpp | |
parent | Update the theming of the Lumina desktop: (diff) | |
download | lumina-d32cbbe76a003afb4bcf8930afe6849e6e036fc9.tar.gz lumina-d32cbbe76a003afb4bcf8930afe6849e6e036fc9.tar.bz2 lumina-d32cbbe76a003afb4bcf8930afe6849e6e036fc9.zip |
Add knowledge of the new Panel theme setting to lumina-config.
Diffstat (limited to 'lumina-config/mainUI.cpp')
-rw-r--r-- | lumina-config/mainUI.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index ae4ec122..d2fc0215 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -157,6 +157,8 @@ void MainUI::setupConnections(){ connect(ui->spin_panel2_size, SIGNAL(valueChanged(int)), this, SLOT(panelValChanged()) ); connect(ui->check_panel1_hidepanel, SIGNAL(clicked()), this, SLOT(panelValChanged()) ); connect(ui->check_panel2_hidepanel, SIGNAL(clicked()), this, SLOT(panelValChanged()) ); + connect(ui->check_panel1_usetheme, SIGNAL(clicked()), this, SLOT(panelValChanged()) ); + connect(ui->check_panel2_usetheme, SIGNAL(clicked()), this, SLOT(panelValChanged()) ); connect(ui->tool_panel1_addplugin, SIGNAL(clicked()), this, SLOT(addpanel1plugin()) ); connect(ui->tool_panel1_rmplugin, SIGNAL(clicked()), this, SLOT(rmpanel1plugin()) ); connect(ui->tool_panel1_upplug, SIGNAL(clicked()), this, SLOT(uppanel1plugin()) ); @@ -442,6 +444,7 @@ void MainUI::loadCurrentSettings(bool screenonly){ ui->toolBox_panel1->setVisible(true); ui->spin_panel1_size->setValue( settings->value( PPrefix+"height",30).toInt() ); ui->check_panel1_hidepanel->setChecked( settings->value(PPrefix+"hidepanel", false).toBool() ); + ui->check_panel1_usetheme->setChecked( !settings->value(PPrefix+"customcolor",false).toBool() ); QString loc = settings->value(PPrefix+"location","top").toString().toLower(); if(loc=="top"){ ui->combo_panel1_loc->setCurrentIndex(0); } else if(loc=="bottom"){ ui->combo_panel1_loc->setCurrentIndex(1); } @@ -468,6 +471,7 @@ void MainUI::loadCurrentSettings(bool screenonly){ ui->toolBox_panel1->setVisible(false); //not initially visible ui->spin_panel1_size->setValue(30); ui->check_panel1_hidepanel->setChecked( false ); + ui->check_panel1_usetheme->setChecked( true ); ui->combo_panel1_loc->setCurrentIndex(0); //Top ui->list_panel1_plugins->clear(); ui->label_panel1_sample->setWhatsThis("rgba(255,255,255,160)"); @@ -479,6 +483,7 @@ void MainUI::loadCurrentSettings(bool screenonly){ QString PPrefix = "panel"+QString::number(cdesk)+".1/"; ui->spin_panel2_size->setValue( settings->value( PPrefix+"height",30).toInt() ); ui->check_panel2_hidepanel->setChecked( settings->value(PPrefix+"hidepanel", false).toBool() ); + ui->check_panel2_usetheme->setChecked( !settings->value(PPrefix+"customcolor",false).toBool() ); QString loc = settings->value(PPrefix+"location","top").toString().toLower(); if(loc=="top"){ ui->combo_panel2_loc->setCurrentIndex(0); } else if(loc=="bottom"){ ui->combo_panel2_loc->setCurrentIndex(1); } @@ -504,6 +509,7 @@ void MainUI::loadCurrentSettings(bool screenonly){ ui->toolBox_panel2->setVisible(false); //not initially visible ui->spin_panel2_size->setValue(30); ui->check_panel2_hidepanel->setChecked( false ); + ui->check_panel2_usetheme->setChecked( true ); ui->combo_panel2_loc->setCurrentIndex(1); //Bottom ui->list_panel2_plugins->clear(); ui->label_panel2_sample->setWhatsThis("rgba(255,255,255,160)"); @@ -590,6 +596,7 @@ void MainUI::saveCurrentSettings(bool screenonly){ settings->setValue(PPrefix+"color", ui->label_panel1_sample->whatsThis()); settings->setValue(PPrefix+"height", ui->spin_panel1_size->value()); settings->setValue(PPrefix+"hidepanel", ui->check_panel1_hidepanel->isChecked()); + settings->setValue(PPrefix+"customcolor", !ui->check_panel1_usetheme->isChecked()); int loc = ui->combo_panel1_loc->currentIndex(); if(loc==0){ settings->setValue(PPrefix+"location", "top"); } else if(loc==1){ settings->setValue(PPrefix+"location", "bottom"); } @@ -611,6 +618,7 @@ void MainUI::saveCurrentSettings(bool screenonly){ settings->setValue(PPrefix+"color", ui->label_panel2_sample->whatsThis()); settings->setValue(PPrefix+"height", ui->spin_panel2_size->value()); settings->setValue(PPrefix+"hidepanel", ui->check_panel2_hidepanel->isChecked()); + settings->setValue(PPrefix+"customcolor", !ui->check_panel2_usetheme->isChecked()); int loc = ui->combo_panel2_loc->currentIndex(); if(loc==0){ settings->setValue(PPrefix+"location", "top"); } else if(loc==1){ settings->setValue(PPrefix+"location", "bottom"); } |