forked from qt-creator/qt-creator
QmlDesigner: Keep background color in integrated text editor
Applying a .css style overrides the text editor background color from the theme. To avoid this we cannot apply any .css on the integrated text editor or its parents: * Only apply the center widget .css to the tab bar. * Apply the scrollbar.css only to the scrollbars. Change-Id: Id9b009a208ea2830c64be8174dbb548ada692560 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
5b9450a3d3
commit
6f1d23711d
@@ -454,10 +454,6 @@ static Core::MiniSplitter *createCentralSplitter(const QList<WidgetInfo> &widget
|
||||
|
||||
SwitchSplitTabWidget *switchSplitTabWidget = new SwitchSplitTabWidget();
|
||||
|
||||
QString sheet = QString::fromUtf8(Utils::FileReader::fetchQrc(":/qmldesigner/centerwidget.css"));
|
||||
switchSplitTabWidget->setStyleSheet(Theme::replaceCssColors(sheet));
|
||||
|
||||
|
||||
foreach (const WidgetInfo &widgetInfo, widgetInfos) {
|
||||
if (widgetInfo.placementHint == widgetInfo.CentralPane)
|
||||
switchSplitTabWidget->addTab(widgetInfo.widget, widgetInfo.tabName);
|
||||
|
||||
Reference in New Issue
Block a user