Skip to content

Commit 4006952

Browse files
committed
ui/ux improvements
1 parent 2126700 commit 4006952

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/SetupWidgets.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ void setupWidgets(){
297297
board->rotates[drawing->getPageNum()] = 0;
298298
board->ratios[drawing->getPageNum()] = 100;
299299
board->updateTransform();
300+
backgroundStyleEvent();
300301
});
301302
pageLayout->addWidget(toolButtons[i+200], i / 6, i % 6, Qt::AlignCenter);
302303
i++;

src/tools/background.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ void setupBackground(){
7979
board->rotates[drawing->getPageNum()] = 0;
8080
updateRatioButtons();
8181
board->updateTransform();
82+
board->setOverlayType(CUSTOM);
83+
} else {
84+
board->setOverlayType(BLANK);
8285
}
86+
backgroundStyleEvent();
8387
floatingWidget->show();
8488
setHideMainWindow(false);
85-
board->setOverlayType(CUSTOM);
86-
backgroundStyleEvent();
8789
});
8890
set_shortcut(penButtons[CUSTOM], Qt::Key_O, Qt::AltModifier);
8991

0 commit comments

Comments
 (0)