Increase plugin window width

Increased the plugin window size and moved the buttons to the left.
This commit is contained in:
Sravan 2023-03-04 15:40:01 +05:30
parent 2ff6d49834
commit cedd1b1501

View file

@ -817,7 +817,7 @@ class PluginWindow(popup.PopupWindow):
play_sound() play_sound()
b_text_color = (0.75, 0.7, 0.8) b_text_color = (0.75, 0.7, 0.8)
s = 1.25 if _uiscale is ba.UIScale.SMALL else 1.39 if ba.UIScale.MEDIUM else 1.67 s = 1.25 if _uiscale is ba.UIScale.SMALL else 1.39 if ba.UIScale.MEDIUM else 1.67
width = 360 * s width = 400 * s
height = 120 + 100 * s height = 120 + 100 * s
color = (1, 1, 1) color = (1, 1, 1)
text_scale = 0.7 * s text_scale = 0.7 * s
@ -933,8 +933,8 @@ class PluginWindow(popup.PopupWindow):
ba.containerwidget(edit=self._root_widget, ba.containerwidget(edit=self._root_widget,
on_cancel_call=self._ok) on_cancel_call=self._ok)
open_pos_x = (350 if _uiscale is ba.UIScale.SMALL else open_pos_x = (390 if _uiscale is ba.UIScale.SMALL else
410 if _uiscale is ba.UIScale.MEDIUM else 400) 450 if _uiscale is ba.UIScale.MEDIUM else 440)
open_pos_y = (125 if _uiscale is ba.UIScale.SMALL else open_pos_y = (125 if _uiscale is ba.UIScale.SMALL else
135 if _uiscale is ba.UIScale.MEDIUM else 140) 135 if _uiscale is ba.UIScale.MEDIUM else 140)
open_button = ba.buttonwidget(parent=self._root_widget, open_button = ba.buttonwidget(parent=self._root_widget,
@ -970,8 +970,8 @@ class PluginWindow(popup.PopupWindow):
text=text, text=text,
action=lambda: ba.open_url(self.plugin.info["external_url"]), action=lambda: ba.open_url(self.plugin.info["external_url"]),
) )
open_pos_x = (400 if _uiscale is ba.UIScale.SMALL else open_pos_x = (440 if _uiscale is ba.UIScale.SMALL else
460 if _uiscale is ba.UIScale.MEDIUM else 450) 500 if _uiscale is ba.UIScale.MEDIUM else 490)
open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else
110 if _uiscale is ba.UIScale.MEDIUM else 120) 110 if _uiscale is ba.UIScale.MEDIUM else 120)
open_button = ba.buttonwidget(parent=self._root_widget, open_button = ba.buttonwidget(parent=self._root_widget,