Tyler Goodlet
363c7a2df2
Brighter last OHLC graphics datum by default
2023-01-10 11:09:49 -05:00
Tyler Goodlet
56c163cdd7
Make `ChartPlotWidget.default_view()` pin to L1
...
Instead of using a guess about how many x-indexes to reset the last
datum in-view to, calculate and shift the latest index such that it's
just before any L1 spread labels on the y-axis. This makes the view
placement "widget aware" and gives a much more cross-display UX.
Summary:
- add `ChartPlotWidget.pre_l1_x()` which returns a `tuple` of
x view-coord points for the absolute x-pos and length of any L1
line/labels
- make `.default_view()` only shift to see the xlast just outside
the l1 but keep whatever view range xfirst as the first datum in view
- drop `LevelLine.right_point()` since this is now just a
`.pre_l1_x()` call and can be retrieved from the line's internal chart
ref
- drop `._style.bars_from/to_..` vars since we aren't using hard coded
offsets any more
2022-04-30 11:36:23 -04:00
Tyler Goodlet
5a4c155798
Add detailed comment around DE scaling
2022-02-10 13:04:13 -05:00
wattygetlood
a5ad24f770
Additionally apply DPI scaling to font size if detected
2022-02-10 10:26:52 -05:00
Tyler Goodlet
a0034e2948
If the DE (like windohz) already scales DPI, just use that scale for font size
2022-02-10 10:26:52 -05:00
goodboy
43b39d3b6b
Merge pull request #275 from pikers/py3.10_support
...
Py3.10 support
2022-02-07 09:48:54 -05:00
Tyler Goodlet
00a90e7390
Change dpi log msg back to debug
2022-02-07 09:36:07 -05:00
Guillermo Rodriguez
82d1b85b09
Add default for multiplier var
2022-02-02 20:46:45 -03:00
Tyler Goodlet
f21c68a672
i dunno, but display scaling is wack
2022-01-25 07:49:46 -05:00
Tyler Goodlet
c1cf4c7876
New font scaling dpi heuristics (which i don't grok)
2022-01-25 07:49:46 -05:00
Tyler Goodlet
e178c18745
Please please please let this dpi scaling hack work
2022-01-25 07:49:46 -05:00
wattygetlood
cf2d258a27
Only scale down for scale < 2
2022-01-25 07:49:46 -05:00
Tyler Goodlet
ea5b55945f
Re-order grays by "lightness"
2022-01-22 19:11:25 -05:00
Tyler Goodlet
709288d034
Sway fixes that avoid weird window resizing
2021-09-06 09:28:11 -04:00
Tyler Goodlet
4d5afc2e25
Add dpi font scale getter
2021-09-06 09:28:10 -04:00
Tyler Goodlet
dc279a48c2
Move DPI / screen get logging to debug; reduce cli noise
2021-09-06 09:28:10 -04:00
Tyler Goodlet
f320f95288
Drop old hi-dpi font inches sizes
2021-06-13 23:59:02 -04:00
Tyler Goodlet
d269edc0b3
Re-org main window singleton into a new module
...
Avoids some cyclical and confusing import time stuff that we needed to get
DPI aware fonts configured from the active display. Move the main window
singleton into its own module and add a `main_window()` getter for it.
Make `current_screen()` a ``MainWindow` method to avoid so many module
variables.
2021-06-13 23:47:52 -04:00
Tyler Goodlet
ce67022e2e
Only add font size scaled down when dpi scaling > 2
2021-06-10 13:23:28 -04:00
Tyler Goodlet
62c456f8eb
Downscale fonts on scaled-down hidpi displays
2021-06-10 13:23:28 -04:00
Tyler Goodlet
193f4f945c
Flip to using scaled hi DPI detected by Qt
2021-06-10 13:23:28 -04:00
Tyler Goodlet
a9cdb94ff3
Port styling to latest `qtdarkstyle` version
2021-06-10 13:23:28 -04:00
Tyler Goodlet
ecd94ce24d
Better indexing logic?
2021-05-24 12:17:08 -04:00
Tyler Goodlet
d4395dbcbc
Make default view more zooomed in
2021-03-31 14:26:32 -04:00
Tyler Goodlet
3bd87caf4b
Hip shot: try making low dpi font sizes "just work"
2021-03-29 17:52:32 -04:00
Tyler Goodlet
07a5bf4b7c
Use low dpi inches on 96 dpi
2021-03-19 09:33:47 -04:00
Tyler Goodlet
55de079320
Add low dpi settings and different default view bars counts
2021-03-18 13:40:31 -04:00
Tyler Goodlet
a51d5c536e
Add a couple more grays
2021-03-11 21:41:13 -05:00
Tyler Goodlet
aa4a2ef64f
Bump up font size one more time
2021-02-21 11:49:27 -05:00
Tyler Goodlet
0edca84b3d
Yet another font size tweak
2021-02-11 11:48:40 -05:00
Tyler Goodlet
708ed89894
Hard code font inches
2021-02-08 07:01:26 -05:00
Tyler Goodlet
cc5af7319f
Slightly lighter sell red, try to fix screen stuff...
2021-01-22 23:02:23 -05:00
Tyler Goodlet
c1266a7a1d
Add buy/sell colors
2021-01-15 21:10:08 -05:00
Tyler Goodlet
e51670a573
Try dynamically loading screen
2021-01-15 21:10:08 -05:00
Tyler Goodlet
616a74865b
Better highlighted yellow
2021-01-03 17:23:23 -05:00
Tyler Goodlet
edbbcbf954
Add alert yellow
2021-01-03 10:39:06 -05:00
Tyler Goodlet
5d30f351af
Remove use of `tractor.run()`
2020-12-29 18:05:36 -05:00
Tyler Goodlet
db6f77481b
Stick with slightly smaller fonts
2020-12-19 16:50:54 -05:00
Tyler Goodlet
1f8f2eb8b3
Font size tweaks for low dpi
2020-12-19 16:06:54 -05:00
Tyler Goodlet
c1109ee3fb
Add license headers to pertinent files
2020-11-06 12:23:14 -05:00
Tyler Goodlet
205bedce85
Spec dpi aware font size in inches
2020-11-05 20:32:35 -05:00
Tyler Goodlet
b23e459027
Cleanup unneeded commented stuff
2020-11-02 15:43:19 -05:00
Tyler Goodlet
119196f2ff
Scale level label correctly to small(er) fonts
...
Not sure what fixed it exactly, and I guess we didn't need any relative
DPI scaling factor after all. Using the 3px margin on the level label
seems to make it look nice for any font size (i think) as well.
Gonna need some cleanup after this one.
2020-11-02 15:27:48 -05:00
Tyler Goodlet
9e7aa3f9bf
Add a dpi aware font wrapper type
2020-11-02 12:02:05 -05:00
Tyler Goodlet
20a4aed672
Update font metrics after dpi calc; facepalm.
2020-10-28 08:12:56 -04:00
Tyler Goodlet
751cca35e1
Attempt to calculate font size by DPI
2020-10-27 15:15:31 -04:00
Tyler Goodlet
ece57b2a1d
Rename our main color
2020-10-24 20:18:03 -04:00
Tyler Goodlet
8eb4344d86
More "thematic" default view values ;)
2020-10-22 20:42:46 -04:00
Tyler Goodlet
cd828db9e9
Show 24 bars to left on startup
2020-10-21 10:51:54 -04:00
Tyler Goodlet
32974a118c
Add hidpi comments, 300 bars in view at startup
2020-10-19 11:37:50 -04:00