Fix theme initialization

master
Jeremy HU 2022-10-29 10:49:34 +11:00
parent f2fc58c699
commit b18bf2f8eb
2 changed files with 7 additions and 0 deletions

View File

@ -269,6 +269,11 @@ DocumentWindow::DocumentWindow()
partsDocker->setWidget(m_partManageWidget);
addDockWidget(Qt::RightDockWidgetArea, partsDocker);
//QDockWidget* motionsDocker = new QDockWidget(tr("Motions"), this);
//motionsDocker->setAllowedAreas(Qt::RightDockWidgetArea);
//tabifyDockWidget(partsDocker, motionsDocker);
partsDocker->raise();
QWidget* titleBarWidget = new QWidget;

View File

@ -59,6 +59,8 @@ void Theme::initialize()
Theme::previewIconBorderSize = std::max(1, Theme::partPreviewImageSize / 20);
Theme::previewIconMargin = std::max(1, Theme::previewIconBorderSize / 2);
Theme::previewIconBorderRadius = std::max(3, Theme::partPreviewImageSize / 10);
Theme::awesome();
}
QtAwesome* Theme::awesome()