`x:` seems clean enough for a "step symbol"

fsp_feeds
Tyler Goodlet 2021-08-26 15:10:20 -04:00
parent 91fb451696
commit 942cbc2743
1 changed files with 16 additions and 6 deletions

View File

@ -518,17 +518,24 @@ def mk_fill_status_bar(
fields: FieldsForm, fields: FieldsForm,
pane_vbox: QVBoxLayout, pane_vbox: QVBoxLayout,
label_font_size: Optional[int] = None,
bar_h: int = 250, bar_h: int = 250,
) -> (QHBoxLayout, QProgressBar): ) -> (
# TODO: turn this into a composite?
QHBoxLayout,
QProgressBar,
QLabel,
QLabel,
QLabel,
):
w = fields.width() w = fields.width()
# indent = 18 # indent = 18
# bracket_val = 0.375 * 0.666 * w # bracket_val = 0.375 * 0.666 * w
# indent = bracket_val / (1 + 5/8) # indent = bracket_val / (1 + 5/8)
# TODO: once things are sized to screen # TODO: once things are sized to screen
bar_label_font_size = _font.px_size - 3 bar_label_font_size = label_font_size or _font.px_size - 5
label_font = DpiAwareFont() label_font = DpiAwareFont()
label_font._set_qfont_px_size(bar_label_font_size) label_font._set_qfont_px_size(bar_label_font_size)
@ -577,7 +584,7 @@ def mk_fill_status_bar(
bottom_label = fields.add_field_label( bottom_label = fields.add_field_label(
dedent(""" dedent("""
x = {step_size}\n x: {step_size}\n
"""), """),
font_size=bar_label_font_size, font_size=bar_label_font_size,
font_color='gunmetal', font_color='gunmetal',
@ -667,7 +674,10 @@ def mk_order_pane_layout(
# print(f'w, h: {w, h}') # print(f'w, h: {w, h}')
hbox, fill_bar, left_label, top_label, bottom_label = mk_fill_status_bar( hbox, fill_bar, left_label, top_label, bottom_label = mk_fill_status_bar(
form, pane_vbox=vbox form,
pane_vbox=vbox,
# label_font_size=font_size,
) )
# TODO: would be nice to have some better way of reffing these over # TODO: would be nice to have some better way of reffing these over
# monkey patching... # monkey patching...
@ -686,7 +696,7 @@ def mk_order_pane_layout(
|_consumers: {cons}\n |_consumers: {cons}\n
|_streams: {streams}\n |_streams: {streams}\n
"""), """),
font_size=_font.px_size - 5, font_size=_font.px_size - 4,
) )
# add feed info label # add feed info label