Reload stylesheet when CSS file changes (#6331)

* Reload stylesheet when CSS file changes

---------

Co-authored-by: Tres Finocchiaro <tres.finocchiaro@gmail.com>
This commit is contained in:
Dominic Clark
2025-02-09 04:33:44 +00:00
committed by GitHub
parent 786088baec
commit cb7c6d16cb
2 changed files with 29 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
#ifndef LMMS_GUI_LMMS_STYLE_H
#define LMMS_GUI_LMMS_STYLE_H
#include <QFileSystemWatcher>
#include <QProxyStyle>
@@ -60,6 +61,7 @@ public:
private:
QImage colorizeXpm( const char * const * xpm, const QBrush& fill ) const;
void hoverColors( bool sunken, bool hover, bool active, QColor& color, QColor& blend ) const;
QFileSystemWatcher m_styleReloader;
};