Add color role for Splitter
This commit is contained in:
parent
8f499af8f8
commit
9cce414d22
@ -49,14 +49,13 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client, QWidget *parent)
|
|||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
, client_(client)
|
, client_(client)
|
||||||
{
|
{
|
||||||
// setStyleSheet("background-color: #fff;");
|
|
||||||
|
|
||||||
topLayout_ = new QHBoxLayout(this);
|
topLayout_ = new QHBoxLayout(this);
|
||||||
topLayout_->setSpacing(0);
|
topLayout_->setSpacing(0);
|
||||||
topLayout_->setMargin(0);
|
topLayout_->setMargin(0);
|
||||||
|
|
||||||
auto splitter = new Splitter(this);
|
auto splitter = new Splitter(this);
|
||||||
splitter->setHandleWidth(0);
|
splitter->setHandleWidth(1);
|
||||||
|
splitter->setStyleSheet("QSplitter::handle { background-color: palette(base); }");
|
||||||
|
|
||||||
topLayout_->addWidget(splitter);
|
topLayout_->addWidget(splitter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user