mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +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();
|
void loadInitial();
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
bool windowColorIsDark();
|
|
||||||
void loadBaseThemeNative();
|
void loadBaseThemeNative();
|
||||||
void loadBaseThemeDark();
|
void loadBaseThemeDark();
|
||||||
void loadNativeTheme();
|
void loadNativeTheme();
|
||||||
@ -58,6 +57,7 @@ public:
|
|||||||
void setFont(const QFont &font);
|
void setFont(const QFont &font);
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
|
bool windowColorIsDark();
|
||||||
void setLastThemeOf(const CutterQtTheme &currQtTheme, const QString& theme);
|
void setLastThemeOf(const CutterQtTheme &currQtTheme, const QString& theme);
|
||||||
QString getLastThemeOf(const CutterQtTheme &currQtTheme) const;
|
QString getLastThemeOf(const CutterQtTheme &currQtTheme) const;
|
||||||
const QColor getColor(const QString &name) const;
|
const QColor getColor(const QString &name) const;
|
||||||
|
@ -54,6 +54,11 @@ void WelcomeDialog::on_themeComboBox_currentIndexChanged(int index)
|
|||||||
{
|
{
|
||||||
Config()->setTheme(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
|
// make sure that Cutter's logo changes its color according to the selected theme
|
||||||
ui->logoSvgWidget->load(Config()->getLogoFile());
|
ui->logoSvgWidget->load(Config()->getLogoFile());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user