From a4d8376c20b4d944118cbf55834a9376d3713ec1 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 29 Sep 2019 22:18:38 +0800 Subject: [PATCH] look'n'feel tweaks --- bottombuttongroup.cpp | 4 ++-- graphicsview.cpp | 2 +- mainwindow.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bottombuttongroup.cpp b/bottombuttongroup.cpp index bcbb632..bab9677 100644 --- a/bottombuttongroup.cpp +++ b/bottombuttongroup.cpp @@ -15,8 +15,8 @@ BottomButtonGroup::BottomButtonGroup(QWidget *parent) "border: 1px solid gray;" "border-top-left-radius: 10px;" "border-top-right-radius: 10px;" - "border-bottom: none;" - "background-color:rgba(0,0,0,180)" + "border-style: none;" + "background-color:rgba(0,0,0,120)" "}" "QPushButton {" "background-color:rgba(225,255,255,0);" diff --git a/graphicsview.cpp b/graphicsview.cpp index d028303..6885b98 100644 --- a/graphicsview.cpp +++ b/graphicsview.cpp @@ -15,7 +15,7 @@ GraphicsView::GraphicsView(QWidget *parent) setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setResizeAnchor(QGraphicsView::AnchorUnderMouse); - setStyleSheet("background-color: rgba(0, 0, 0, 180);" + setStyleSheet("background-color: rgba(0, 0, 0, 220);" "border-radius: 3px;"); setAcceptDrops(true); } diff --git a/mainwindow.cpp b/mainwindow.cpp index 20b11ed..88c00d4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -21,7 +21,7 @@ MainWindow::MainWindow(QWidget *parent) : { this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint); this->setAttribute(Qt::WA_TranslucentBackground, true); - this->setMinimumSize(610, 410); + this->setMinimumSize(710, 530); m_fadeOutAnimation = new QPropertyAnimation(this, "windowOpacity"); m_fadeOutAnimation->setDuration(300);