From b3247dd2e8733781371bf82d972792066500d99b Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 5 Jul 2024 07:31:30 +0800 Subject: [PATCH] - fix: Scroll bar arrow size not correct in the dark themes. --- NEWS.md | 1 + RedPandaIDE/widgets/darkfusionstyle.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index c8bb1c7b..852eefe6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ Red Panda C++ Version 3.2 - Change: The way to calcuate astyle path. + - fix: Scroll bar arrow size not correct in the dark themes. Red Panda C++ Version 3.1 diff --git a/RedPandaIDE/widgets/darkfusionstyle.cpp b/RedPandaIDE/widgets/darkfusionstyle.cpp index 73490401..cd83401f 100644 --- a/RedPandaIDE/widgets/darkfusionstyle.cpp +++ b/RedPandaIDE/widgets/darkfusionstyle.cpp @@ -98,7 +98,7 @@ static qreal calcDpi() { } static qreal calcDpiScaled(qreal value, qreal dpi) { - return value*96/dpi; + return value*dpi/96; } }