From c084e28676abd14d8aa141f15a944fc1c1fd949d Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 20 Oct 2019 08:28:41 +0930 Subject: [PATCH] Update widget icon and preview image size --- src/theme.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/theme.cpp b/src/theme.cpp index ba4c48f6..4cdaf45f 100644 --- a/src/theme.cpp +++ b/src/theme.cpp @@ -53,17 +53,15 @@ void Theme::initAwsomeBaseSizes() Theme::toolIconFontSize = fontMetrics.height(); Theme::toolIconSize = (int)(Theme::toolIconFontSize * 1.5); - Theme::miniIconFontSize = (int)(Theme::toolIconFontSize * 0.64); + Theme::miniIconFontSize = (int)(Theme::toolIconFontSize * 0.7); Theme::miniIconSize = (int)(Theme::miniIconFontSize * 1.67); Theme::partPreviewImageSize = (Theme::miniIconSize * 3); - Theme::materialPreviewImageSize = 75; - Theme::cutFacePreviewImageSize = 75; - Theme::posePreviewImageSize = 75; - Theme::motionPreviewImageSize = 75; - Theme::sidebarPreferredWidth = 200; + Theme::sidebarPreferredWidth = Theme::partPreviewImageSize * 3.7; + Theme::materialPreviewImageSize = Theme::sidebarPreferredWidth * 0.4; + Theme::cutFacePreviewImageSize = Theme::materialPreviewImageSize; + Theme::posePreviewImageSize = Theme::materialPreviewImageSize; + Theme::motionPreviewImageSize = Theme::materialPreviewImageSize; Theme::normalButtonSize = Theme::toolIconSize * 2; - - //qDebug() << "Theme::toolIconFontSize:" << Theme::toolIconFontSize; } QtAwesome *Theme::awesome()