mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
Fixing up a few positions and colors for authors.
This commit is contained in:
parent
f20bfe6d08
commit
021d359ed2
2 changed files with 9 additions and 17 deletions
|
|
@ -1,12 +1,7 @@
|
||||||
{
|
{
|
||||||
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
||||||
"versions": {
|
"versions": {
|
||||||
"1.0.14": {
|
"1.0.14": null,
|
||||||
"api_version": 8,
|
|
||||||
"commit_sha": "d30e229",
|
|
||||||
"released_on": "21-04-2024",
|
|
||||||
"md5sum": "7a7a12fcfd19070f9873cf8dfaec086b"
|
|
||||||
},
|
|
||||||
"1.0.13": {
|
"1.0.13": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "2a4cb47",
|
"commit_sha": "2a4cb47",
|
||||||
|
|
|
||||||
|
|
@ -938,33 +938,30 @@ class AuthorsWindow(popup.PopupWindow):
|
||||||
position=(width * 0.1, height * 0.1))
|
position=(width * 0.1, height * 0.1))
|
||||||
self._columnwidget = bui.columnwidget(parent=self._scrollwidget,
|
self._columnwidget = bui.columnwidget(parent=self._scrollwidget,
|
||||||
border=1,
|
border=1,
|
||||||
left_border=-20 if _uiscale is babase.UIScale.SMALL else 0,
|
left_border=-15,
|
||||||
margin=0)
|
margin=0)
|
||||||
|
|
||||||
for author in self.authors_info:
|
for author in self.authors_info:
|
||||||
for key, value in author.items():
|
for key, value in author.items():
|
||||||
text = f"{key.title()}: {value if value != '' else 'Not Provided'}"
|
text = f"{key.title()}: {value if value != '' else 'Not Provided'}"
|
||||||
if key == 'name':
|
if key == 'name':
|
||||||
text = (' ' if _uiscale is babase.UIScale.SMALL else ' ') + value
|
text = value
|
||||||
bui.textwidget(parent=self._columnwidget,
|
bui.textwidget(parent=self._columnwidget,
|
||||||
size=(width * 0.8, 35 if key == 'name' else 30),
|
size=(width * 0.8, 35 if key == 'name' else 30),
|
||||||
always_highlight=True,
|
color=color if key == 'name' else (0.75, 0.7, 0.8),
|
||||||
color=color,
|
|
||||||
scale=(
|
scale=(
|
||||||
(1.0 if key == 'name' else 0.9) if _uiscale is babase.UIScale.SMALL else
|
(1.1 if key == 'name' else 0.9) if _uiscale is babase.UIScale.SMALL else
|
||||||
(1.2 if key == 'name' else 1.0)
|
(1.2 if key == 'name' else 1.0)
|
||||||
),
|
),
|
||||||
text=text,
|
text=text,
|
||||||
h_align='left',
|
h_align='center',
|
||||||
v_align='center',
|
v_align='center',
|
||||||
maxwidth=420)
|
maxwidth=420)
|
||||||
bui.textwidget(parent=self._columnwidget,
|
bui.textwidget(parent=self._columnwidget,
|
||||||
size=(width * 0.8, 30),
|
size=(width * 0.8, 30),
|
||||||
always_highlight=True,
|
always_highlight=True,
|
||||||
color=color,
|
h_align='center',
|
||||||
h_align='left',
|
v_align='center')
|
||||||
v_align='center',
|
|
||||||
maxwidth=420)
|
|
||||||
|
|
||||||
def _back(self) -> None:
|
def _back(self) -> None:
|
||||||
bui.getsound('swish').play()
|
bui.getsound('swish').play()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue