ShareDialog: softer line separator (#3737)
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 17 Nov 2015 10:58:35 +0000 (11:58 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 17 Nov 2015 11:02:20 +0000 (12:02 +0100)
src/gui/sharedialog.cpp

index 0d5f3a01a02a3c1e5eafc78b3d70424bf7c3fb85..a433d2dec83da6316d119c7ee7b5334534cbf71c 100644 (file)
@@ -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;
     }