From e0f54428d09aca4867152d1bdd7d00c280c43db3 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 17 Nov 2015 11:58:35 +0100 Subject: [PATCH] ShareDialog: softer line separator (#3737) --- src/gui/sharedialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index 0d5f3a01a..a433d2dec 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -83,9 +83,16 @@ ShareDialog::ShareDialog(AccountPtr account, const QString &sharePath, const QSt _userGroupWidget = new ShareUserGroupWidget(account, sharePath, localPath, resharingAllowed, this); _ui->shareWidgetsLayout->addWidget(_userGroupWidget); + QFrame *hline = new QFrame(this); hline->setFrameShape(QFrame::HLine); + QPalette p = palette(); + // Make the line softer: + p.setColor(QPalette::Foreground, QColor::fromRgba((p.color(QPalette::Foreground).rgba() & 0x00ffffff) | 0x50000000)); + hline->setPalette(p); _ui->shareWidgetsLayout->addWidget(hline); + + autoShare = false; }