QmlDesigner: Remove outputpane-style.css

There is no need to style the ouputpane apart from
the scrollbar.

Change-Id: I3dcd98e403dace1de243c0254408c353ebcb3db2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2016-07-13 15:10:27 +02:00
parent 580c7606c4
commit cdcdde4dc1
3 changed files with 3 additions and 62 deletions

View File

@@ -1,58 +0,0 @@
QWidget {
background-color: #363636;
border: none;
}
QTabWidget::pane {
background-color: #363636;
border: none;
}
QAbstractScrollArea {
background-color: #363636;
border: none;
}
QPlainTextEdit {
background-color: #ababab;
border: none;
}
QTabBar {
font: bold;
}
QTabBar::tab {
border-image: none;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
min-width: 80px;
height: 22px;
margin-top: 2px;
margin-bottom: -1px;
padding-left: 2px;
padding-right: 4px;
font-size: 11px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #3c3c3c, stop: 1 #444444);
color: #ababab;
}
QTabBar::tab:hover {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #3c3c3c, stop: 1 #666666);
}
QTabBar::tab:selected {
border: none;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #EEEEEE, stop: 1 #ababab);
color: #3c3c3c;
}

View File

@@ -4,6 +4,5 @@
<file>stylesheet.css</file> <file>stylesheet.css</file>
<file>scrollbar.css</file> <file>scrollbar.css</file>
<file>formeditorstylesheet.css</file> <file>formeditorstylesheet.css</file>
<file>outputpane-style.css</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@@ -24,6 +24,7 @@
****************************************************************************/ ****************************************************************************/
#include "styledoutputpaneplaceholder.h" #include "styledoutputpaneplaceholder.h"
#include "theming.h"
#include <utils/fileutils.h> #include <utils/fileutils.h>
@@ -36,9 +37,8 @@ namespace Internal {
StyledOutputpanePlaceHolder::StyledOutputpanePlaceHolder(Core::Id mode, QSplitter *parent) StyledOutputpanePlaceHolder::StyledOutputpanePlaceHolder(Core::Id mode, QSplitter *parent)
: Core::OutputPanePlaceHolder(mode, parent) : Core::OutputPanePlaceHolder(mode, parent)
{ {
QByteArray sheet = Utils::FileReader::fetchQrc(":/qmldesigner/outputpane-style.css"); QByteArray sheet = Utils::FileReader::fetchQrc(":/qmldesigner/scrollbar.css");
sheet += Utils::FileReader::fetchQrc(":/qmldesigner/scrollbar.css"); m_customStylesheet = Theming::replaceCssColors(QString::fromUtf8(sheet));
m_customStylesheet = QString::fromUtf8(sheet);
} }
void StyledOutputpanePlaceHolder::childEvent(QChildEvent *event) void StyledOutputpanePlaceHolder::childEvent(QChildEvent *event)