set ayu default for dark interface (#1174)

This commit is contained in:
Itay Cohen 2019-02-07 20:39:14 +00:00 committed by GitHub
parent 3a80b111b3
commit 9778cdf2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,6 @@ private:
void loadInitial();
// Colors
bool windowColorIsDark();
void loadBaseThemeNative();
void loadBaseThemeDark();
void loadNativeTheme();
@ -58,6 +57,7 @@ public:
void setFont(const QFont &font);
// Colors
bool windowColorIsDark();
void setLastThemeOf(const CutterQtTheme &currQtTheme, const QString& theme);
QString getLastThemeOf(const CutterQtTheme &currQtTheme) const;
const QColor getColor(const QString &name) const;

View File

@ -54,6 +54,11 @@ void WelcomeDialog::on_themeComboBox_currentIndexChanged(int index)
{
Config()->setTheme(index);
// use "ayu" as the default color theme for dark interface
if (Config()->windowColorIsDark()) {
Config()->setColorTheme("ayu");
}
// make sure that Cutter's logo changes its color according to the selected theme
ui->logoSvgWidget->load(Config()->getLogoFile());
}