mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 20:10:04 +00:00 
			
		
		
		
	Add disabling of theme file when custom theme is not selected
This commit is contained in:
		
							parent
							
								
									20b8c0da7d
								
							
						
					
					
						commit
						e16db1823d
					
				
					 1 changed files with 15 additions and 1 deletions
				
			
		|  | @ -528,10 +528,24 @@ void SettingsDialogImpl::SetupGeneralTab() | |||
|                            types::GetUiStyleName); | ||||
|    theme_.SetResetButton(self_->ui->resetThemeButton); | ||||
| 
 | ||||
|    QObject::connect( | ||||
|          self_->ui->themeComboBox, | ||||
|          &QComboBox::currentTextChanged, | ||||
|          self_, | ||||
|          [this](const QString& text) | ||||
|          { | ||||
|             types::UiStyle style = types::GetUiStyle(text.toStdString()); | ||||
|             bool themeFileEnabled = style == types::UiStyle::FusionCustom; | ||||
| 
 | ||||
|             self_->ui->themeFileLineEdit->setEnabled(themeFileEnabled); | ||||
|             self_->ui->themeFileSelectButton->setEnabled(themeFileEnabled); | ||||
|             self_->ui->resetThemeFileButton->setEnabled(themeFileEnabled); | ||||
|          }); | ||||
| 
 | ||||
|    themeFile_.SetSettingsVariable(generalSettings.theme_file()); | ||||
|    themeFile_.SetEditWidget(self_->ui->themeFileLineEdit); | ||||
|    themeFile_.SetResetButton(self_->ui->resetThemeFileButton); | ||||
|    //themeFile_.EnableTrimming();
 | ||||
|    themeFile_.EnableTrimming(); | ||||
| 
 | ||||
|    QObject::connect( | ||||
|       self_->ui->themeFileSelectButton, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak