Skip to content

Commit

Permalink
UX: restore 'Fill and Stroke' visibility state
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Jan 12, 2025
1 parent 9d56d0c commit f9e6e41
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@ void MainWindow::setupMenuBar()
connect(mViewFillStrokeAct, &QAction::triggered,
this, [this](bool triggered) {
mUI->setDockVisible("Fill and Stroke", triggered);
AppSupport::setSettings("ui", "FillStrokeVisible", triggered);
});

mTimelineWindowAct = mViewMenu->addAction(tr("Timeline in Window"));
Expand Down Expand Up @@ -1695,11 +1696,21 @@ void MainWindow::readSettings(const QString &openProject)
const bool visibleToolBarColor = AppSupport::getSettings("ui",
"ToolBarColorVisible",
true).toBool();

const bool visibleFillStroke = AppSupport::getSettings("ui",
"FillStrokeVisible",
true).toBool();

mToolBarMainAct->setChecked(visibleToolBarMain);
mToolBarColorAct->setChecked(visibleToolBarColor);
mToolbar->setVisible(visibleToolBarMain);
mColorToolBar->setVisible(visibleToolBarColor);

mViewFillStrokeAct->setChecked(visibleFillStroke);
if (!visibleFillStroke) {
mUI->setDockVisible("Fill and Stroke", false);
}

mViewFullScreenAct->blockSignals(true);
mViewFullScreenAct->setChecked(isFull);
mViewFullScreenAct->blockSignals(false);
Expand Down

0 comments on commit f9e6e41

Please sign in to comment.