Mercurial > hg > octave-terminal
changeset 13675:028c77518fd8
Dock widgets colored with stylesheets.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 25 Sep 2011 11:44:49 +0200 |
parents | c0e66d6e3dc8 |
children | 6cf48511e735 |
files | gui/src/FilesDockWidget.cpp gui/src/HistoryDockWidget.cpp gui/src/VariablesDockWidget.cpp |
diffstat | 3 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/FilesDockWidget.cpp +++ b/gui/src/FilesDockWidget.cpp @@ -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
--- a/gui/src/HistoryDockWidget.cpp +++ b/gui/src/HistoryDockWidget.cpp @@ -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
--- a/gui/src/VariablesDockWidget.cpp +++ b/gui/src/VariablesDockWidget.cpp @@ -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