Skip to content

Commit 4057b0d

Browse files
committed
Use left-top anchor for text in themes
1 parent 259435c commit 4057b0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/display.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def display_static_text(self):
139139
background_color=config.THEME_DATA['static_text'][text].get("BACKGROUND_COLOR", (255, 255, 255)),
140140
background_image=_get_full_path(config.THEME_DATA['PATH'],
141141
config.THEME_DATA['static_text'][text].get("BACKGROUND_IMAGE",
142-
None))
142+
None)),
143+
anchor="lt"
143144
)
144145

145146

library/stats.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def display_themed_value(theme_data, value, min_size=0, unit=''):
9494
font_size=theme_data.get("FONT_SIZE", 10),
9595
font_color=theme_data.get("FONT_COLOR", (0, 0, 0)),
9696
background_color=theme_data.get("BACKGROUND_COLOR", (255, 255, 255)),
97-
background_image=get_theme_file_path(theme_data.get("BACKGROUND_IMAGE", None))
97+
background_image=get_theme_file_path(theme_data.get("BACKGROUND_IMAGE", None)),
98+
anchor="lt"
9899
)
99100

100101

0 commit comments

Comments
 (0)