mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -46,7 +46,7 @@ def papirus(config, layout):
|
|||||||
layout['status'] = {
|
layout['status'] = {
|
||||||
'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)),
|
'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)),
|
||||||
'font': fonts.Medium,
|
'font': fonts.Medium,
|
||||||
'max': (layout['width'] - layout['status'][0]) // 6
|
'max': (layout['width'] - layout['status']['pos'][0]) // 6
|
||||||
}
|
}
|
||||||
return layout
|
return layout
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ def oledhat(config, layout):
|
|||||||
layout['status'] = {
|
layout['status'] = {
|
||||||
'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)),
|
'pos': (int(layout['width'] / 2) - 15, int(layout['height'] * .15)),
|
||||||
'font': fonts.Medium,
|
'font': fonts.Medium,
|
||||||
'max': (layout['width'] - layout['status'][0]) // 6
|
'max': (layout['width'] - layout['status']['pos'][0]) // 6
|
||||||
}
|
}
|
||||||
return layout
|
return layout
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ def waveshare(config, layout):
|
|||||||
layout['status'] = {
|
layout['status'] = {
|
||||||
'pos': (125, 20),
|
'pos': (125, 20),
|
||||||
'font': fonts.Medium,
|
'font': fonts.Medium,
|
||||||
'max': (layout['width'] - layout['status'][0]) // 6
|
'max': (layout['width'] - layout['status']['pos'][0]) // 6
|
||||||
}
|
}
|
||||||
return layout
|
return layout
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user