Add hidpi comments, 300 bars in view at startup

bar_select
Tyler Goodlet 2020-10-19 11:37:50 -04:00
parent d3dc8fb219
commit 32974a118c
1 changed files with 8 additions and 2 deletions

View File

@ -8,9 +8,15 @@ from qdarkstyle.palette import DarkPalette
# chart-wide font # chart-wide font
_font = QtGui.QFont("Hack") _font = QtGui.QFont("Hack")
# use pixel size to be cross-resolution compatible # use pixel size to be cross-resolution compatible?
_font.setPixelSize(6) _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]) _i3_rgba = QtGui.QColor.fromRgbF(*[0.14]*3 + [1])
# splitter widget config # splitter widget config
@ -20,7 +26,7 @@ _xaxis_at = 'bottom'
CHART_MARGINS = (0, 0, 2, 2) CHART_MARGINS = (0, 0, 2, 2)
_min_points_to_show = 3 _min_points_to_show = 3
_bars_from_right_in_follow_mode = 5 _bars_from_right_in_follow_mode = 5
_bars_to_left_in_follow_mode = 100 _bars_to_left_in_follow_mode = 300
_tina_mode = False _tina_mode = False