Skip to content

Commit

Permalink
UI minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 13, 2024
1 parent d9230af commit 69c0e05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,15 +1204,18 @@ void MainWindow::setupMenuBar()

setMenuBar(mMenuBar);

const auto frictionButton = new QToolButton(this);
frictionButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
frictionButton->setPopupMode(QToolButton::InstantPopup);
const auto frictionButton = new QPushButton(this);
frictionButton->setFlat(true);
frictionButton->setIcon(QIcon::fromTheme(AppSupport::getAppID()));
frictionButton->setDefaultAction(aboutAct);
frictionButton->setText(QString("%1 %2").arg(AppSupport::getAppDisplayName(),
frictionButton->setObjectName("AboutButton");
frictionButton->setLayoutDirection(Qt::RightToLeft);
frictionButton->setText(QString("%1 %2 ").arg(AppSupport::getAppDisplayName(),
AppSupport::getAppVersion()));
frictionButton->setToolTip(QString());
frictionButton->setFocusPolicy(Qt::NoFocus);

connect(frictionButton, &QPushButton::released,
this, &MainWindow::openAboutWindow);

mMenuBar->setCornerWidget(frictionButton,
Qt::TopRightCorner);
}
Expand Down
6 changes: 6 additions & 0 deletions src/app/friction.qss
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,15 @@ QPushButton#WelcomeRecentButton:hover {
}*/

QPushButton#FlatButton,
QPushButton#AboutButton,
QToolButton#FlatButton {
background-color: none;
border: 0;
border-radius: 2%;
}

QPushButton#FlatButton,
QPushButton#AboutButton,
QToolButton#FlatButton {
border-radius: 2%;
}
Expand All @@ -323,6 +325,10 @@ QToolButton#FlatButton:hover {
border-color: rgb(104, 144, 206);
}

QPushButton#AboutButton:hover {
background-color: none;
}

QTabWidget#ThirdPartyBrowser { border: 0; }

QWidget#TimelineMenu QPushButton,
Expand Down

0 comments on commit 69c0e05

Please sign in to comment.