src/guiutilities.cpp

changeset 986
525921eae58c
parent 978
4603d8fd063e
child 1012
413ecd6b9801
--- a/src/guiutilities.cpp	Sun Sep 06 03:17:29 2015 +0300
+++ b/src/guiutilities.cpp	Sun Sep 06 04:48:58 2015 +0300
@@ -80,4 +80,15 @@
 		box->setItemData (row, it.key().index());
 		++row;
 	}
-}
\ No newline at end of file
+}
+
+QColor GuiUtilities::mainColorRepresentation()
+{
+	QColor col (m_config->mainColor());
+
+	if (not col.isValid())
+		return QColor (0, 0, 0);
+
+	col.setAlpha (m_config->mainColorAlpha() * 255.f);
+	return col;
+}

mercurial