main.kv 1.64 KB
Newer Older
Shashank Kumar's avatar
Shashank Kumar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
BoxLayout
    BoxLayout
        size_hint: 0.35, 1
        orientation: 'vertical'
        BigLabel
            text: 'New'
            valign: 'bottom'
        BigLabel
            text: 'Contributor'
            valign: 'middle'
        BigLabel
            text: 'Wizard'
            valign: 'top'
    BoxLayout
        size_hint: 0.65, 1
        ScreenManager
            Screen
                name: 'signup'
                SignUp
            Screen
                name: 'signin'
22
                SignIn
Shashank Kumar's avatar
Shashank Kumar committed
23 24 25 26 27 28 29 30

<BigLabel@Label>
    text_size: self.size
    size: self.texture_size
    font_name: 'ui/assets/fonts/Anton-Regular.ttf'
    font_size: dp(50)
    padding_x: dp(10)
    halign: 'left'
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

# 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])