piker/piker
Gud Boi 3a515afccd Use `get_fonts()`, add `show_txt` flag to gap annots
Switch `.tsp._annotate.markup_gaps()` to use new
`.ui._style.get_fonts()` API for font size calc on client side and add
optional `show_txt: bool` flag to toggle gap duration labels (with
default `False`).

Also,
- replace `sgn` checks with named bools: `up_gap`, `down_gap`
- use `small_font.px_size - 1` for gap label font sizing
- wrap text creation in `if show_txt:` block
- update IPC handler to use `get_fonts()` vs direct `_font` import

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-01-28 16:30:41 -05:00
..
accounting accounting.calc: `.error()` on bad txn-time fields.. 2026-01-07 14:05:23 -05:00
brokers .ib.feed: trim bars frame to `start_dt` 2026-01-27 17:37:25 -05:00
clearing `_ems`: tolerate and warn on already popped execs 2026-01-07 13:41:07 -05:00
cli Flip (back) `pikerd` to use TCP by default 2026-01-06 23:34:32 -05:00
data Port `.data._web_bs` stuff to strict-EGs 2026-01-06 22:27:58 -05:00
fsp Adjust to `trio`'s strict eg nurseries throughout! 2026-01-06 22:27:58 -05:00
service Port `.cli` & `.service` to latest `tractor` registry APIs 2026-01-06 22:27:58 -05:00
storage Mv `markup_gaps()` to new `.tsp._annotate` mod 2026-01-21 23:52:12 -05:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Use `get_fonts()`, add `show_txt` flag to gap annots 2026-01-28 16:30:41 -05:00
ui Use `get_fonts()`, add `show_txt` flag to gap annots 2026-01-28 16:30:41 -05:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py `.config.get_app_dir()`: link to `click`'s orig impl on GH 2026-01-06 19:33:23 -05:00
log.py Group bcast errors as `Sampler.bcast_errors` 2025-02-21 16:24:54 -05:00
types.py Impl a sane (with nesting) `.types.Struct.pformat()` 2024-01-17 15:50:27 -05:00