diff options
author | Saturneric <[email protected]> | 2021-07-12 09:03:12 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-12 09:03:12 +0000 |
commit | 4ada913c515cf090c65d9d155aa9880a50501591 (patch) | |
tree | 72043033991b643a2cce437f22497a961d73a745 /src/ui/widgets/FilePage.cpp | |
parent | Update Documents; Update UI (diff) | |
download | GpgFrontend-4ada913c515cf090c65d9d155aa9880a50501591.tar.gz GpgFrontend-4ada913c515cf090c65d9d155aa9880a50501591.zip |
Project structure adjustment;
Project configuration adjustment;
Add version detection;
UI interface improvements;
Introduce JSON processing library;
Update Documents;
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/FilePage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/widgets/FilePage.cpp b/src/ui/widgets/FilePage.cpp index e330eb68..65755509 100644 --- a/src/ui/widgets/FilePage.cpp +++ b/src/ui/widgets/FilePage.cpp @@ -50,11 +50,15 @@ FilePage::FilePage(QWidget *parent) : QWidget(parent) { upLevelButton = new QPushButton(); connect(upLevelButton, SIGNAL(clicked(bool)), this, SLOT(slotUpLevel())); + QString buttonStyle = "QPushButton{border:none;background-color:rgba(255, 255, 255,100);}"; + + auto upPixmap = QPixmap(":up.png"); upPixmap = upPixmap.scaled(18, 18, Qt::KeepAspectRatio, Qt::SmoothTransformation); QIcon upButtonIcon(upPixmap); upLevelButton->setIcon(upButtonIcon); upLevelButton->setIconSize(upPixmap.rect().size()); + upLevelButton->setStyleSheet(buttonStyle); refreshButton = new QPushButton("Refresh"); connect(refreshButton, SIGNAL(clicked(bool)), this, SLOT(slotGoPath())); @@ -67,6 +71,7 @@ FilePage::FilePage(QWidget *parent) : QWidget(parent) { QIcon updateButtonIcon(updatePixmap); goPathButton->setIcon(updateButtonIcon); goPathButton->setIconSize(updatePixmap.rect().size()); + goPathButton->setStyleSheet(buttonStyle); pathEdit = new QLineEdit(); pathEdit->setText(dirModel->rootPath()); @@ -75,7 +80,7 @@ FilePage::FilePage(QWidget *parent) : QWidget(parent) { menuLayout->addWidget(upLevelButton); menuLayout->setStretchFactor(upLevelButton, 1); menuLayout->addWidget(pathEdit); - menuLayout->setStretchFactor(pathEdit, 8); + menuLayout->setStretchFactor(pathEdit, 10); menuLayout->addWidget(goPathButton); menuLayout->setStretchFactor(goPathButton, 1); // menuLayout->addWidget(refreshButton); |