summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-10-20 13:03:41 (GMT)
committerSwift Review <review@swift.im>2015-10-27 08:38:54 (GMT)
commit193335248b00556f0011b7e32b148a7a2c0eefe2 (patch)
tree38e4018d41a6f13ee6fbc977b88eeefa75e5af33 /Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
parent375937b46f941a7e266b1e3aca9a95002a0483bd (diff)
downloadswift-193335248b00556f0011b7e32b148a7a2c0eefe2.zip
swift-193335248b00556f0011b7e32b148a7a2c0eefe2.tar.bz2
Change window icon to default avatar on Windows
The task bar in Windows 10 has black as the default color. The mainly black Swift application icon is hardly visible on black background. Thus this patch changes the Window icon on Windows to the default avatar icon in Swift. Test-Information: Tested on Windows 8 and Windows 10. Change-Id: I1965cf37ba5a714094cff24ab971c0fc9f9d7fe1
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.cpp')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index bb6fc31..52b17b0 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -39,8 +39,12 @@ namespace Swift {
QtUserSearchWindow::QtUserSearchWindow(UIEventStream* eventStream, UserSearchWindow::Type type, const std::set<std::string>& groups, SettingsProvider* settingsProvider) : eventStream_(eventStream), type_(type), model_(NULL), firstMultiJIDPage_(NULL), settings_(settingsProvider), searchNext_(false), supportsImpromptu_(false) {
setupUi(this);
#ifndef Q_OS_MAC
+#ifdef Q_OS_WIN32
+ setWindowIcon(QIcon(":/logo-icon-16-win.png"));
+#else
setWindowIcon(QIcon(":/logo-icon-16.png"));
#endif
+#endif
QString title;
switch(type) {
case AddContact: