src/guiutilities.cpp

changeset 1323
05b3e173c900
parent 1319
39d7a9642eea
child 1326
69a90bd2dba2
--- a/src/guiutilities.cpp	Sat Mar 24 12:09:26 2018 +0200
+++ b/src/guiutilities.cpp	Sat Mar 24 12:34:20 2018 +0200
@@ -48,8 +48,8 @@
 	if (color == MainColor)
 	{
 		// Use the user preferences for the main color.
-		truecolor = config->mainColor();
-		truecolor.setAlphaF(config->mainColorAlpha());
+		truecolor = config::mainColor();
+		truecolor.setAlphaF(config::mainColorAlpha());
 	}
 	else
 	{
@@ -114,11 +114,11 @@
  */
 QColor GuiUtilities::mainColorRepresentation()
 {
-	QColor result = {m_config->mainColor()};
+	QColor result = {config::mainColor()};
 
 	if (result.isValid())
 	{
-		result.setAlpha(m_config->mainColorAlpha() * 255.f);
+		result.setAlpha(config::mainColorAlpha() * 255.f);
 		return result;
 	}
 	else
@@ -136,7 +136,7 @@
 {
 	QVector<ColorToolbarItem> colors;
 
-	for (QString colorName : m_config->quickColorToolbar().split(":"))
+	for (QString colorName : config::quickColorToolbar().split(":"))
 	{
 		if (colorName == "|")
 		{

mercurial