[ci] auto-format

This commit is contained in:
Loup-Garou911XD 2024-04-21 12:31:31 +00:00 committed by github-actions[bot]
parent dc433ef4f1
commit fc5a7f1c89

View file

@ -1031,11 +1031,12 @@ class PluginWindow(popup.PopupWindow):
# Author # Author
text = 'by ' + ', '.join([author["name"] for author in self.plugin.info["authors"]]) text = 'by ' + ', '.join([author["name"] for author in self.plugin.info["authors"]])
author_text_control_btn = bui.buttonwidget(parent=self._root_widget, author_text_control_btn = bui.buttonwidget(parent=self._root_widget,
position=(width * 0.49 - (len(text)*14/2), pos - 10), position=(width * 0.49 -
size=(len(text)*14, 20), (len(text)*14/2), pos - 10),
label='', size=(len(text)*14, 20),
texture=bui.gettexture("empty"), label='',
on_activate_call=lambda: AuthorsWindow(self.plugin.info["authors"], self._root_widget)) texture=bui.gettexture("empty"),
on_activate_call=lambda: AuthorsWindow(self.plugin.info["authors"], self._root_widget))
bui.textwidget(parent=self._root_widget, bui.textwidget(parent=self._root_widget,
position=(width * 0.49 - (len(text)*14/2), pos - 10), position=(width * 0.49 - (len(text)*14/2), pos - 10),
size=(len(text)*14, 20), size=(len(text)*14, 20),
@ -1046,7 +1047,7 @@ class PluginWindow(popup.PopupWindow):
color=(0.45, 0.36, 0.46), color=(0.45, 0.36, 0.46),
maxwidth=width * 0.9, maxwidth=width * 0.9,
draw_controller=author_text_control_btn, draw_controller=author_text_control_btn,
) )
pos -= 35 pos -= 35
# status = bui.textwidget(parent=self._root_widget, # status = bui.textwidget(parent=self._root_widget,
# position=(width * 0.49, pos), size=(0, 0), # position=(width * 0.49, pos), size=(0, 0),
@ -1095,18 +1096,18 @@ class PluginWindow(popup.PopupWindow):
if to_draw_button1: if to_draw_button1:
button1 = bui.buttonwidget(parent=self._root_widget, button1 = bui.buttonwidget(parent=self._root_widget,
position=( position=(
width * ( width * (
0.1 if self.plugin.is_installed and has_update else 0.1 if self.plugin.is_installed and has_update else
0.25 if self.plugin.is_installed else 0.25 if self.plugin.is_installed else
0.4), pos), 0.4), pos),
size=button_size, size=button_size,
on_activate_call=button1_action, on_activate_call=button1_action,
color=b1_color, color=b1_color,
textcolor=b_text_color, textcolor=b_text_color,
button_type='square', button_type='square',
text_scale=1, text_scale=1,
label=button1_label) label=button1_label)
if self.plugin.is_installed: if self.plugin.is_installed:
bui.buttonwidget(parent=self._root_widget, bui.buttonwidget(parent=self._root_widget,
@ -1121,15 +1122,15 @@ class PluginWindow(popup.PopupWindow):
if has_update: if has_update:
button1 = bui.buttonwidget(parent=self._root_widget, button1 = bui.buttonwidget(parent=self._root_widget,
position=(width * 0.7, pos), position=(width * 0.7, pos),
size=button_size, size=button_size,
on_activate_call=button3_action, on_activate_call=button3_action,
color=b3_color, color=b3_color,
textcolor=b_text_color, textcolor=b_text_color,
autoselect=True, autoselect=True,
button_type='square', button_type='square',
text_scale=1, text_scale=1,
label=button3_label) label=button3_label)
bui.containerwidget(edit=self._root_widget, bui.containerwidget(edit=self._root_widget,
on_cancel_call=self._cancel, on_cancel_call=self._cancel,
selected_child=button1) selected_child=button1)