Fix: Reset stylesheet before setting style
Resolves #510 Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
This commit is contained in:
		@@ -6,19 +6,14 @@
 | 
			
		||||
 | 
			
		||||
void ITheme::apply(bool)
 | 
			
		||||
{
 | 
			
		||||
    APPLICATION->setStyleSheet(QString());
 | 
			
		||||
    QApplication::setStyle(QStyleFactory::create(qtTheme()));
 | 
			
		||||
    if(hasColorScheme())
 | 
			
		||||
    {
 | 
			
		||||
    if (hasColorScheme()) {
 | 
			
		||||
        QApplication::setPalette(colorScheme());
 | 
			
		||||
    }
 | 
			
		||||
    if(hasStyleSheet())
 | 
			
		||||
    {
 | 
			
		||||
    if (hasStyleSheet())
 | 
			
		||||
        APPLICATION->setStyleSheet(appStyleSheet());
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        APPLICATION->setStyleSheet(QString());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    QDir::setSearchPaths("theme", searchPaths());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user