From 79de92238c76f0b8a8c8a328fe40d8ec1cf91e74 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Thu, 6 Apr 2017 20:09:52 +0800 Subject: [PATCH] fix stylesheet of VOpenedListMenu --- src/vopenedlistmenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vopenedlistmenu.cpp b/src/vopenedlistmenu.cpp index a2f8471d..d1c4b75f 100644 --- a/src/vopenedlistmenu.cpp +++ b/src/vopenedlistmenu.cpp @@ -36,7 +36,9 @@ VOpenedListMenu::VOpenedListMenu(VEditWindow *p_editWin) { // Force to display separator text on Windows and macOS. setStyle(QStyleFactory::create("Fusion")); - setStyleSheet("::separator { color: #009688; height: 15px; padding-top: 5px; }"); + int separatorHeight = 20 * VUtils::calculateScaleFactor(); + QString style = QString("::separator { color: #009688; height: %1px; padding-top: 3px; }").arg(separatorHeight); + setStyleSheet(style); setToolTipsVisible(true);