浏览代码

fix styles

Le Tan 4 年之前
父节点
当前提交
30a9d0ecc7

+ 2 - 0
src/core/theme.cpp

@@ -298,6 +298,8 @@ void Theme::translateScaledSize(qreal p_factor, QString &p_style)
     const int signCapturedIdx = 2;
     const int numCapturedIdx = 3;
 
+    qDebug() << "translateScaledSize of Qt style sheet" << p_factor;
+
     int pos = 0;
     QRegularExpressionMatch match;
     while (pos < p_style.size()) {

+ 1 - 1
src/data/extra/themes/moonlight/interface.qss

@@ -546,7 +546,7 @@ QTabBar::close-button:hover {
 }
 
 QTabBar::scroller {
-    width: 20px;
+    width: $20px;
 }
 
 QTabBar QToolButton {

+ 1 - 1
src/data/extra/themes/pure/interface.qss

@@ -546,7 +546,7 @@ QTabBar::close-button:hover {
 }
 
 QTabBar::scroller {
-    width: 20px;
+    width: $20px;
 }
 
 QTabBar QToolButton {

+ 1 - 1
src/widgets/viewsplit.cpp

@@ -66,7 +66,7 @@ void ViewSplit::setupUI()
 {
     // Property of QTabWidget.
     setUsesScrollButtons(true);
-    setElideMode(Qt::ElideRight);
+    setElideMode(Qt::ElideNone);
     setTabsClosable(true);
     setMovable(true);
     setDocumentMode(true);