src/guiutilities.cpp

changeset 1192
317f4ce38f3f
parent 1157
1d6d244bdabd
child 1194
99085cfaeabd
--- a/src/guiutilities.cpp	Sun Mar 05 16:57:49 2017 +0200
+++ b/src/guiutilities.cpp	Sun Mar 05 20:25:22 2017 +0200
@@ -41,8 +41,8 @@
 	if (ldColor == MainColor)
 	{
 		// Use the user preferences for the main color.
-		color = m_config->mainColor();
-		color.setAlphaF(m_config->mainColorAlpha());
+		color = configuration().mainColor();
+		color.setAlphaF(configuration().mainColorAlpha());
 	}
 	else
 		color = ldColor.faceColor();
@@ -101,11 +101,11 @@
  */
 QColor GuiUtilities::mainColorRepresentation()
 {
-	QColor result = {m_config->mainColor()};
+	QColor result = {configuration().mainColor()};
 
 	if (result.isValid())
 	{
-		result.setAlpha(m_config->mainColorAlpha() * 255.f);
+		result.setAlpha(configuration().mainColorAlpha() * 255.f);
 		return result;
 	}
 	else
@@ -123,7 +123,7 @@
 {
 	QVector<ColorToolbarItem> colors;
 
-	for (QString colorName : m_config->quickColorToolbar().split(":"))
+	for (QString colorName : configuration().quickColorToolbar().split(":"))
 	{
 		if (colorName == "|")
 		{

mercurial