Commit c0cd1f06 authored by Shashank Kumar's avatar Shashank Kumar

Widget added to mention project repository

parent fc05a777
...@@ -25,6 +25,13 @@ class BackToToolsMenu(BoxLayout): ...@@ -25,6 +25,13 @@ class BackToToolsMenu(BoxLayout):
pass pass
class InvitingContributors(BoxLayout):
'''
InvitingContributors class has been imported from main.kv to display a block
which invites new contributors to the project
'''
class Tools(BoxLayout): class Tools(BoxLayout):
''' '''
Tools class to present Tools menu of Encryption Tools class to present Tools menu of Encryption
...@@ -71,6 +78,8 @@ class Tools(BoxLayout): ...@@ -71,6 +78,8 @@ class Tools(BoxLayout):
self.ids['tools_menu'].add_widget(tool_box_widget) self.ids['tools_menu'].add_widget(tool_box_widget)
self.import_tool_modules(key) self.import_tool_modules(key)
self.ids['tools_menu'].add_widget(InvitingContributors())
def import_tool_modules(self, tool_to_import): def import_tool_modules(self, tool_to_import):
''' '''
import_tool_modules try to import tool_to_import named module and also the class import_tool_modules try to import tool_to_import named module and also the class
......
...@@ -28,3 +28,32 @@ BoxLayout ...@@ -28,3 +28,32 @@ BoxLayout
font_size: dp(50) font_size: dp(50)
padding_x: dp(10) padding_x: dp(10)
halign: 'left' halign: 'left'
# To be imported inside inviting_contributorss or Tutorials of any module
<InvitingContributors>
orientation: 'vertical'
padding: (20, 20, 20, 20)
size_hint_y: None
height: 150
canvas.before:
Color
rgba: 0, 0, 0, 1
RoundedRectangle
pos: self.pos
size: self.size
Label
id: inviting_contributors_box_title
text_size: self.width, None
size: self.texture_size
text: 'You can contribute Tools or Tutorials for this application by visting [ref=https://salsa.debian.org/new-contributor-wizard-team/new-contributor-wizard][color=0000ff]New Contributor Wizard[/color][/ref]\'s repository'
markup: True
font_name: 'ui/assets/fonts/VarelaRound-Regular.ttf'
font_size: 20
line_height: 1
color: 1, 1, 1, 1
halign: 'justify'
valign: 'top'
on_ref_press:
import webbrowser
webbrowser.open(args[1])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment