From a3b95e332e9b2d19683445a9c06b621d1ba268ab Mon Sep 17 00:00:00 2001 From: agilob Date: Sun, 2 Nov 2014 23:26:23 +0000 Subject: [PATCH] style for qlineedit in status panel --- src/mainwindow.ui | 6 +++--- src/widget/widget.cpp | 6 ++++-- ui/window/statusPanel.css | 10 +++++++++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 05688a100..c9d082b56 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -397,7 +397,7 @@ QSplitter:handle{ - + 0 @@ -1034,7 +1034,7 @@ QSplitter:handle{ 0 0 284 - 401 + 399 @@ -1757,7 +1757,7 @@ QSplitter:handle{ 0 0 775 - 19 + 21 diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index f1e9f261d..e96f7753c 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -121,8 +121,8 @@ void Widget::init() profilePicture = new MaskablePixmapWidget(this, QSize(40, 40), ":/img/avatar_mask.png"); profilePicture->setPixmap(QPixmap(":/img/contact_dark.png")); profilePicture->setClickable(true); - ui->horizontalLayout_3->insertWidget(0, profilePicture); - ui->horizontalLayout_3->insertSpacing(1, 7); + ui->myProfile->insertWidget(0, profilePicture); + ui->myProfile->insertSpacing(1, 7); ui->mainContent->setLayout(new QVBoxLayout()); ui->mainHead->setLayout(new QVBoxLayout()); @@ -139,6 +139,8 @@ void Widget::init() ui->mainHead->setStyleSheet(Style::getStylesheet(":ui/settings/mainHead.css")); ui->mainContent->setStyleSheet(Style::getStylesheet(":ui/settings/mainContent.css")); + + ui->statusHead->setStyleSheet(Style::getStylesheet(":/ui/window/statusPanel.css")); contactListWidget = new FriendListWidget(); ui->friendList->setWidget(contactListWidget); diff --git a/ui/window/statusPanel.css b/ui/window/statusPanel.css index 4683bc15a..2c1ac8ae7 100644 --- a/ui/window/statusPanel.css +++ b/ui/window/statusPanel.css @@ -1,4 +1,12 @@ -#statusPanel +QLineEdit +{ + background: none; + background-color: @darkGrey; + color: #fff; + border: 0px solid gray; +} + +#statusPanel { background-color: @darkGrey; }