Skip to content

Commit

Permalink
More UI stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 14, 2024
1 parent b158c05 commit 6bbc9fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,6 @@ void MainWindow::setupMenuBar()
frictionButton->setFlat(true);
frictionButton->setIcon(QIcon::fromTheme(AppSupport::getAppID()));
frictionButton->setObjectName("AboutButton");
frictionButton->setLayoutDirection(Qt::RightToLeft);
frictionButton->setText(QString("%1 %2 ").arg(AppSupport::getAppDisplayName(),
AppSupport::getAppVersion()));
frictionButton->setFocusPolicy(Qt::NoFocus);

connect(frictionButton, &QPushButton::released,
Expand Down
4 changes: 4 additions & 0 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ int main(int argc, char *argv[])
}
#endif

splash.raise();
splash.showMessage(QObject::tr("Loading User Interface ..."),
Qt::AlignLeft | Qt::AlignBottom, Qt::white);

const QString openProject = argc > 1 ? argv[1] : QString();
MainWindow w(document,
actions,
Expand Down
4 changes: 4 additions & 0 deletions src/ui/widgets/colortoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ void ColorToolBar::showContextMenu(const QPoint &pos)

const bool horiz = orientation() == Qt::Horizontal;

const auto act = menu.addAction(QIcon::fromTheme("color"), windowTitle());
act->setEnabled(false);
menu.addSeparator();

menu.addAction(QIcon::fromTheme(horiz ? "pivot-align-left" : "pivot-align-top"),
tr(horiz ? "Align Left" : "Align Top"), this, [this](){
mLeftSpacerAct->setVisible(false);
Expand Down

0 comments on commit 6bbc9fd

Please sign in to comment.