combed a bit over Config.get_default_font()
This commit is contained in:
parent
efefae4941
commit
5c656625fd
|
@ -762,20 +762,16 @@ class Config:
|
||||||
colors['hudfgcolor'] = self.supported_sites[site].hudfgcolor
|
colors['hudfgcolor'] = self.supported_sites[site].hudfgcolor
|
||||||
return colors
|
return colors
|
||||||
|
|
||||||
def get_default_font(self, site = 'PokerStars'):
|
def get_default_font(self, site='PokerStars'):
|
||||||
(font, font_size) = ("Sans", "8")
|
font = "Sans"
|
||||||
if site not in self.supported_sites:
|
font_size = "8"
|
||||||
return ("Sans", "8")
|
site = self.supported_sites.get(site, None)
|
||||||
if self.supported_sites[site].font == "":
|
if site is not None:
|
||||||
font = "Sans"
|
if site.font:
|
||||||
else:
|
font = site.font
|
||||||
font = self.supported_sites[site].font
|
if site.font_size:
|
||||||
|
font_size = site.font_size
|
||||||
if self.supported_sites[site].font_size == "":
|
return font, font_size
|
||||||
font_size = "8"
|
|
||||||
else:
|
|
||||||
font_size = self.supported_sites[site].font_size
|
|
||||||
return (font, font_size)
|
|
||||||
|
|
||||||
def get_locations(self, site = "PokerStars", max = "8"):
|
def get_locations(self, site = "PokerStars", max = "8"):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user