Skip to content

Commit fad04b4

Browse files
committed
Add a link to contribute to the success view
1 parent 6daa796 commit fad04b4

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

openandroidinstaller/views/success_view.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
ElevatedButton,
1919
Row,
2020
Text,
21+
Markdown,
2122
)
2223

2324
from views import BaseView
@@ -36,11 +37,24 @@ def close_window(e):
3637
logger.success("Success! Close the window.")
3738
self.page.window_close()
3839

40+
# right view header
3941
self.right_view_header.controls = [
4042
get_title("Installation completed successfully!"),
4143
]
44+
# right view main part
45+
contribute_link = "https://github.com/openandroidinstaller-dev/openandroidinstaller#contributing"
4246
self.right_view.controls = [
43-
Text("Now your devices boots into the new OS. Have fun with it!"),
47+
Text("Now your devices boots into the new OS. Have fun with it!", style="titleSmall"),
48+
Markdown(
49+
f"""
50+
If you liked the tool, help spread the word and **share it with people** who might want to use it.
51+
52+
Also, you can consider contributing to make it better. There are a lot of different ways how you can help!
53+
54+
[How to contribute]({contribute_link})
55+
""",
56+
on_tap_link=lambda e: self.page.launch_url(e.data),
57+
),
4458
Row(
4559
[
4660
ElevatedButton(

0 commit comments

Comments
 (0)