From 32974a118c33d063c29ea55546d84512c5afefab Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 19 Oct 2020 11:37:50 -0400 Subject: [PATCH] Add hidpi comments, 300 bars in view at startup --- piker/ui/_style.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/piker/ui/_style.py b/piker/ui/_style.py index bb5b3fdf..24d32fea 100644 --- a/piker/ui/_style.py +++ b/piker/ui/_style.py @@ -8,9 +8,15 @@ from qdarkstyle.palette import DarkPalette # chart-wide font _font = QtGui.QFont("Hack") -# use pixel size to be cross-resolution compatible +# use pixel size to be cross-resolution compatible? _font.setPixelSize(6) +# TODO: use QScreen to determine the same physical font size +# on screen despite different displays? +# PyQt docs: https://doc.qt.io/qtforpython/PySide2/QtGui/QScreen.html +# - supposedly it's ``from QtGui import QScreen`` +# Qt forums: https://forum.qt.io/topic/43625/point-sizes-are-they-reliable/4 + _i3_rgba = QtGui.QColor.fromRgbF(*[0.14]*3 + [1]) # splitter widget config @@ -20,7 +26,7 @@ _xaxis_at = 'bottom' CHART_MARGINS = (0, 0, 2, 2) _min_points_to_show = 3 _bars_from_right_in_follow_mode = 5 -_bars_to_left_in_follow_mode = 100 +_bars_to_left_in_follow_mode = 300 _tina_mode = False