From 620c710d44aa6cb1bd949b12f1a3da262bbf2d3d Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 25 Aug 2015 14:48:44 +0200 Subject: [PATCH] Style tweaks --- src/regionsview.cpp | 4 +++- style.css | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/regionsview.cpp b/src/regionsview.cpp index acac6fb..53a4763 100644 --- a/src/regionsview.cpp +++ b/src/regionsview.cpp @@ -39,11 +39,13 @@ RegionsView::RegionsView(QWidget *parent) : View(parent) { doneButton = new QPushButton(tr("Done")); doneButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); doneButton->setDefault(true); +#ifndef APP_MAC doneButton->setProperty("custom", true); doneButton->setProperty("important", true); doneButton->setProperty("big", true); +#endif connect(doneButton, SIGNAL(clicked()), MainWindow::instance(), SLOT(goBack())); - l->addWidget(doneButton, 0, Qt::AlignCenter); + l->addWidget(doneButton, 0, Qt::AlignHCenter | Qt::AlignTop); } void RegionsView::addRegion(const YTRegion ®ion) { diff --git a/style.css b/style.css index 390b0f6..606b539 100644 --- a/style.css +++ b/style.css @@ -21,12 +21,12 @@ QStatusBar QToolButton::menu-indicator { RegionsView QPushButton[regionId] { margin: 5px; - padding: 10px; + padding: 7px 10px; text-align: left; vertical-align: middle; background-color: transparent; border: 1px solid transparent; - border-radius: 10px; + border-radius: 5px; } RegionsView QPushButton[regionId=""] { -- 2.39.5