mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
DolphinQt/Settings: Split setting of the user style into two functions.
This makes it so that if you just want to reload the current style (eg. on program start, or in response to a system event), you don't need to know the name of the currently selected user style. It's also more consistent with the way the 'userstyle/enabled' flag works.
This commit is contained in:
@ -57,12 +57,15 @@ public:
|
||||
void SetSystemDark(bool dark);
|
||||
bool IsSystemDark();
|
||||
bool IsThemeDark();
|
||||
void SetCurrentUserStyle(const QString& stylesheet_name);
|
||||
QString GetCurrentUserStyle() const;
|
||||
|
||||
void SetUserStyleName(const QString& stylesheet_name);
|
||||
QString GetUserStyleName() const;
|
||||
void SetUserStylesEnabled(bool enabled);
|
||||
bool AreUserStylesEnabled() const;
|
||||
|
||||
// this evaluates the current stylesheet settings and refreshes the GUI with them
|
||||
void ApplyStyle();
|
||||
|
||||
void GetToolTipStyle(QColor& window_color, QColor& text_color, QColor& emphasis_text_color,
|
||||
QColor& border_color, const QPalette& palette,
|
||||
const QPalette& high_contrast_palette) const;
|
||||
|
Reference in New Issue
Block a user