slight styling enhancements for panes
[case] / src / pane.cpp
index 4b192a3..34bdd6e 100644 (file)
@@ -37,14 +37,13 @@ Pane::Pane(QWidget *theCase, QWidget *parent) :
     fileList(new FileList)
 {
     QVBoxLayout *layout = new QVBoxLayout;
-    layout->setContentsMargins(3, 3, 3, 3);
+    layout->setContentsMargins(2, 1, 2, 2);
     layout->setSpacing(0);
     setLayout(layout);
 
     QHBoxLayout *topLine = new QHBoxLayout;
 
     location->setText(fileList->path());
-    layout->setSpacing(0);
 
     topLine->addWidget(location);
     topLine->addWidget(up);
@@ -76,12 +75,11 @@ const QFileInfoList Pane::selection() const {
 void Pane::paintEvent(QPaintEvent *) {
     if (active) {
         QPainter painter(this);
-        painter.setPen(palette().color(QPalette::Highlight));
+        painter.setPen(palette().highlight().color());
         QRect g = this->geometry();
-        g.moveTo(1, 1);
-        g.setWidth(g.width() - 3);
-        g.setHeight(g.height() - 3);
-        painter.drawRect(g);
+        g.moveTo(0, 0);
+        g.adjust(0, 0, -1, -1);
+        painter.drawRoundedRect(g, 3, 3);
     }
 }