浏览代码

fix stylesheet of VOpenedListMenu

Le Tan 8 年之前
父节点
当前提交
79de92238c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/vopenedlistmenu.cpp

+ 3 - 1
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);