# HG changeset patch # User Jacob Dawid # Date 1316943889 -7200 # Node ID 028c77518fd81512a967a535f2e8d6fabe14d436 # Parent c0e66d6e3dc85c02ef2b258a1639cefb565ffd94 Dock widgets colored with stylesheets. diff -r c0e66d6e3dc8 -r 028c77518fd8 gui/src/FilesDockWidget.cpp --- a/gui/src/FilesDockWidget.cpp Sun Sep 25 10:52:42 2011 +0200 +++ b/gui/src/FilesDockWidget.cpp Sun Sep 25 11:44:49 2011 +0200 @@ -99,6 +99,17 @@ m_currentDirectory->setCompleter (completer); connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(215, 215, 255, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(215, 215, 255, 255)); " + " } " + ); } void diff -r c0e66d6e3dc8 -r 028c77518fd8 gui/src/HistoryDockWidget.cpp --- a/gui/src/HistoryDockWidget.cpp Sun Sep 25 10:52:42 2011 +0200 +++ b/gui/src/HistoryDockWidget.cpp Sun Sep 25 11:44:49 2011 +0200 @@ -49,6 +49,17 @@ connect (m_filterLineEdit, SIGNAL (textEdited (QString)), &m_sortFilterProxyModel, SLOT (setFilterWildcard(QString))); connect (m_historyListView, SIGNAL (doubleClicked (QModelIndex)), this, SLOT (handleDoubleClick (QModelIndex))); connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(215, 255, 215, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(215, 255, 215, 255)); " + " } " + ); } void diff -r c0e66d6e3dc8 -r 028c77518fd8 gui/src/VariablesDockWidget.cpp --- a/gui/src/VariablesDockWidget.cpp Sun Sep 25 10:52:42 2011 +0200 +++ b/gui/src/VariablesDockWidget.cpp Sun Sep 25 11:44:49 2011 +0200 @@ -68,6 +68,17 @@ m_variablesTreeWidget->setAnimated (true); connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(255, 215, 215, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(255, 215, 215, 255)); " + " } " + ); } void