NOISSUE add bright theme to complement the dark theme
Same style, different colors.
This commit is contained in:
		@@ -107,6 +107,8 @@ SET(MULTIMC_SOURCES
 | 
			
		||||
	InstanceWindow.cpp
 | 
			
		||||
 | 
			
		||||
	# GUI - themes
 | 
			
		||||
	themes/BrightTheme.cpp
 | 
			
		||||
	themes/BrightTheme.h
 | 
			
		||||
	themes/DarkTheme.cpp
 | 
			
		||||
	themes/DarkTheme.h
 | 
			
		||||
	themes/ITheme.h
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@
 | 
			
		||||
#include "themes/ITheme.h"
 | 
			
		||||
#include "themes/SystemTheme.h"
 | 
			
		||||
#include "themes/DarkTheme.h"
 | 
			
		||||
#include "themes/BrightTheme.h"
 | 
			
		||||
 | 
			
		||||
#include <iostream>
 | 
			
		||||
#include <QDir>
 | 
			
		||||
@@ -1010,6 +1011,7 @@ void MultiMC::initThemes()
 | 
			
		||||
	};
 | 
			
		||||
	insertTheme(new SystemTheme());
 | 
			
		||||
	insertTheme(new DarkTheme());
 | 
			
		||||
	insertTheme(new BrightTheme());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void MultiMC::setApplicationTheme(const QString& name)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										43
									
								
								application/themes/BrightTheme.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								application/themes/BrightTheme.cpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,43 @@
 | 
			
		||||
#include "BrightTheme.h"
 | 
			
		||||
 | 
			
		||||
QString BrightTheme::id()
 | 
			
		||||
{
 | 
			
		||||
	return "bright";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QString BrightTheme::name()
 | 
			
		||||
{
 | 
			
		||||
	return QObject::tr("Bright");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QString BrightTheme::qtTheme()
 | 
			
		||||
{
 | 
			
		||||
	return "Fusion";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QPalette BrightTheme::colorScheme()
 | 
			
		||||
{
 | 
			
		||||
	QPalette brightPalette;
 | 
			
		||||
	brightPalette.setColor(QPalette::Window, QColor(239,240,241));
 | 
			
		||||
	brightPalette.setColor(QPalette::WindowText, QColor(49,54,59));
 | 
			
		||||
	brightPalette.setColor(QPalette::Base, QColor(252,252,252));
 | 
			
		||||
	brightPalette.setColor(QPalette::AlternateBase, QColor(239,240,241));
 | 
			
		||||
	brightPalette.setColor(QPalette::ToolTipBase, QColor(49,54,59));
 | 
			
		||||
	brightPalette.setColor(QPalette::ToolTipText, QColor(239,240,241));
 | 
			
		||||
	brightPalette.setColor(QPalette::Text,  QColor(49,54,59));
 | 
			
		||||
	brightPalette.setColor(QPalette::Button, QColor(239,240,241));
 | 
			
		||||
	brightPalette.setColor(QPalette::ButtonText, QColor(49,54,59));
 | 
			
		||||
	brightPalette.setColor(QPalette::BrightText, Qt::red);
 | 
			
		||||
	brightPalette.setColor(QPalette::Link, QColor(41, 128, 185));
 | 
			
		||||
 | 
			
		||||
	brightPalette.setColor(QPalette::Highlight, QColor(61, 174, 233));
 | 
			
		||||
	brightPalette.setColor(QPalette::HighlightedText, QColor(239,240,241));
 | 
			
		||||
	return brightPalette;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
QString BrightTheme::appStyleSheet()
 | 
			
		||||
{
 | 
			
		||||
	return QString();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								application/themes/BrightTheme.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								application/themes/BrightTheme.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "ITheme.h"
 | 
			
		||||
 | 
			
		||||
class BrightTheme: public ITheme
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
	virtual ~BrightTheme() {}
 | 
			
		||||
 | 
			
		||||
	QString qtTheme() override;
 | 
			
		||||
	QString id() override;
 | 
			
		||||
	QString name() override;
 | 
			
		||||
	QString appStyleSheet() override;
 | 
			
		||||
	QPalette colorScheme() override;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user