Skip to content

Commit

Permalink
fix(layouts.big_price): slightly increase padding between logo & text
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jul 2, 2024
1 parent 22dd5f7 commit 1e213bf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tinyticker/layouts/big_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ def big_price(
if ticker.config.avg_buy_price:
sub_string += f" ({perc_change_abp(ticker, resp):+.2f}%)"

title_text = ax.set_title(
sub_string,
weight="bold",
loc="left",
fontsize=12,
)
title_text = ax.set_title(sub_string, weight="bold", loc="left", fontsize=12)
title_text.set_fontsize(
fontsize_for_size(
(
Expand Down Expand Up @@ -97,7 +92,9 @@ def big_price(
)
title_text.set_position(
(
title_text.get_position()[0] + logo_width * 1 / ax.get_position().width,
title_text.get_position()[0]
+ 1 / size[0]
+ logo_width / ax.get_position().width,
title_text.get_position()[1],
)
)
Expand Down

0 comments on commit 1e213bf

Please sign in to comment.