mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
set ayu default for dark interface (#1174)
This commit is contained in:
parent
3a80b111b3
commit
9778cdf2d6
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user