From b18bf2f8eb74a778863965fc542a41abce6a5b18 Mon Sep 17 00:00:00 2001 From: Jeremy HU Date: Sat, 29 Oct 2022 10:49:34 +1100 Subject: [PATCH] Fix theme initialization --- application/sources/document_window.cc | 5 +++++ application/sources/theme.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/application/sources/document_window.cc b/application/sources/document_window.cc index 7bb1f310..b0eee73c 100644 --- a/application/sources/document_window.cc +++ b/application/sources/document_window.cc @@ -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; diff --git a/application/sources/theme.cc b/application/sources/theme.cc index 92d19142..1a7ae801 100644 --- a/application/sources/theme.cc +++ b/application/sources/theme.cc @@ -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()