Commit 1b1b8909 authored by Jörg Schummer's avatar Jörg Schummer Committed by Lasse Holmstedt
Browse files

QmlDesigner.ItemLibrary: adjusted style

Task-number: BAUHAUS-640
parent b7a7e997
......@@ -172,15 +172,16 @@ ItemLibrary::ItemLibrary(QWidget *parent) :
m_d->m_lineEdit->setPlaceholderText(tr("<Filter>", "Library search input hint text"));
m_d->m_lineEdit->setDragEnabled(false);
m_d->m_lineEdit->setMinimumWidth(75);
m_d->m_lineEdit->setTextMargins(0, 0, 0, 0);
m_d->m_lineEdit->setTextMargins(0, 0, 20, 0);
QWidget *lineEditFrame = new QWidget(this);
lineEditFrame->setObjectName(QLatin1String("itemLibrarySearchInputFrame"));
QGridLayout *lineEditLayout = new QGridLayout(lineEditFrame);
lineEditLayout->setMargin(2);
lineEditLayout->setSpacing(0);
lineEditLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed), 0, 0);
lineEditLayout->addWidget(m_d->m_lineEdit, 0, 1, 1, 1);
lineEditLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed), 0, 2);
lineEditLayout->addItem(new QSpacerItem(5, 3, QSizePolicy::Fixed, QSizePolicy::Fixed), 0, 0, 1, 3);
lineEditLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed), 1, 0);
lineEditLayout->addWidget(m_d->m_lineEdit, 1, 1, 1, 1);
lineEditLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed), 1, 2);
connect(m_d->m_lineEdit, SIGNAL(filterChanged(QString)), this, SLOT(setSearchFilter(QString)));
connect(m_d->m_lineEdit, SIGNAL(buttonClicked()), this, SLOT(clearLineEditFocus()));
......@@ -192,12 +193,17 @@ ItemLibrary::ItemLibrary(QWidget *parent) :
connect(tabBar, SIGNAL(currentChanged(int)),
this, SLOT(updateSearch()));
QWidget *spacer = new QWidget(this);
spacer->setObjectName(QLatin1String("itemLibrarySearchInputSpacer"));
spacer->setFixedHeight(4);
QGridLayout *layout = new QGridLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
layout->addWidget(tabBar, 0, 0, 1, 1);
layout->addWidget(lineEditFrame, 1, 0, 1, 1);
layout->addWidget(m_d->m_stackedWidget, 2, 0, 1, 1);
layout->addWidget(spacer, 1, 0);
layout->addWidget(lineEditFrame, 2, 0, 1, 1);
layout->addWidget(m_d->m_stackedWidget, 3, 0, 1, 1);
setResourcePath(QDir::currentPath());
setSearchFilter(QString());
......
......@@ -46,18 +46,19 @@ QLineEdit
selection-background-color: darkgray;
}
QLineEdit#itemLibrarySearchInput {
color: black;
QLineEdit#itemLibrarySearchInput
{
color: white;
font-size: 11px;
border: 2px solid #0F0F0F;
border-radius: 6px;
border-width: 1;
max-height: 20px;
min-height: 20px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #e0e0e0, stop: 1 #f0f0f0);
stop: 0 #2c2c2c, stop: 1 #333333);
}
QTreeView {
color: white;
selection-color: white
......@@ -143,7 +144,6 @@ QTabBar::tab:selected {
color: #3c3c3c;
}
QWidget#itemLibrarySearchInputFrame {
QWidget#itemLibrarySearchInputSpacer {
background-color: #eeeeee;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment