Allow adjusting the font size of tk popups

This commit is contained in:
Pavle Portic 2023-06-15 19:41:34 +02:00
parent d03e6307f5
commit 37b5646d65
No known key found for this signature in database
GPG key ID: 66AD4BA646FBC0D2
8 changed files with 28 additions and 20 deletions

View file

@ -276,6 +276,15 @@ class Config(util.store.Store):
def interval(self, default=1):
return util.format.seconds(self.get("interval", default))
"""Returns the global popup menu font size
:return: popup menu font size
:rtype: int
"""
def popup_font_size(self, default=12):
return util.format.asint(self.get("popup_font_size", default))
"""Returns whether debug mode is enabled
:return: True if debug is enabled, False otherwise