projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes #542 - show identities and network settings on first start
[quassel.git]
/
src
/
qtui
/
qtuistyle.cpp
diff --git
a/src/qtui/qtuistyle.cpp
b/src/qtui/qtuistyle.cpp
index
78255dc
..
1aa2ff0
100644
(file)
--- a/
src/qtui/qtuistyle.cpp
+++ b/
src/qtui/qtuistyle.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8
by the Quassel Project *
+ * Copyright (C) 2005-0
9
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-19,12
+19,9
@@
***************************************************************************/
#include "qtuistyle.h"
***************************************************************************/
#include "qtuistyle.h"
+#include "qtuisettings.h"
-#ifndef SPUTDEV
QtUiStyle::QtUiStyle() : UiStyle("QtUiStyle") {
QtUiStyle::QtUiStyle() : UiStyle("QtUiStyle") {
-#else
-QtUiStyle::QtUiStyle() : UiStyle("QtUiStyleNew") {
-#endif
// We need to just set our internal formats; everything else is done by the base class...
// Internal message formats
// We need to just set our internal formats; everything else is done by the base class...
// Internal message formats
@@
-106,7
+103,15
@@
QtUiStyle::QtUiStyle() : UiStyle("QtUiStyleNew") {
url.setAnchor(true);
setFormat(Url, url, Settings::Default);
url.setAnchor(true);
setFormat(Url, url, Settings::Default);
-
+ QtUiStyleSettings s;
+ _highlightColor = s.highlightColor();
+ if(!_highlightColor.isValid()) _highlightColor = QColor("lightcoral");
}
QtUiStyle::~QtUiStyle() {}
}
QtUiStyle::~QtUiStyle() {}
+
+void QtUiStyle::setHighlightColor(const QColor &col) {
+ _highlightColor = col;
+ QtUiStyleSettings s;
+ s.setHighlightColor(col);
+}