Advertisement
DarKnighTitan

KV_gui.kv

Jan 3rd, 2021
4,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <login_kv>:
  2.     MDBoxLayout:
  3.         orientation: "horizontal"
  4.         md_bg_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  5.         pos: self.pos
  6.         size: self.size
  7.         MDBoxLayout:
  8.            
  9.             id: box_top
  10.             adaptive_height: True
  11.             pos_hint:{'center_x': 0.5, 'center_y': 0.42}
  12.  
  13.             Image:
  14.                 source: "data/images/load main.gif"
  15.                 size_hint: 5,5
  16.                 anim_delay: 0.03
  17.     MDTextField:
  18.         id: user_name
  19.         hint_text: "Enter Username"
  20.         color_mode: "custom"
  21.         required: True
  22.         mode: "fill"
  23.         font_size: "18sp"
  24.         helper_text_mode: "on_error"
  25.         helper_text: "*REQUIRED"
  26.         current_hint_text_color: 1, 1, 1, .9
  27.         icon_right: "account"
  28.         icon_right_color: 1, 1, 1, 1
  29.         line_color_focus: 0.22352941176, 0.51764705882, 0.89411764706, 1
  30.         line_color_normal: 0.80000000000, 0.80000000000, 0.80000000000, 1
  31.         text_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  32.         fill_color: .8, .8, .8, .3
  33.         pos_hint:{'center_x': 0.5, 'center_y': 0.37}
  34.         size_hint_x: None
  35.         width:500
  36.    
  37.     MDRaisedButton:
  38.         text: '   Log in   '
  39.         pos_hint:{'center_x': 0.5, 'center_y': 0.25}
  40.         on_release: app.login_btn(root.ids.user_name.text)
  41.  
  42. <welcome_kv>:
  43.     MDBoxLayout:
  44.         orientation: "horizontal"
  45.         md_bg_color: 1, 1, 1, 1
  46.         pos: self.pos
  47.         size: self.size
  48.  
  49.     MDRaisedButton:
  50.         text: "     Let's go     "
  51.         pos_hint:{'center_x': 0.5, 'center_y': 0.35}
  52.         on_release: app.lets_go_btn()
  53.     MDBoxLayout:
  54.  
  55.         adaptive_height: True
  56.         pos_hint:{'center_x': 0.5, 'center_y': 0.6}
  57.  
  58.         Image:
  59.             source: "data/images/EMO Angel.png"
  60.             size_hint: 3,3
  61.  
  62.     MDLabel:
  63.         text: "Welcome Back"
  64.         halign: "center"
  65.         valign: "center"
  66.         font_style: 'H3'
  67.  
  68.            
  69. <blank>:
  70.     MDBoxLayout:
  71.         orientation: "horizontal"
  72.         md_bg_color: 1, 1, 1, 1
  73.         pos: self.pos
  74.         size: self.size
  75.         MDBoxLayout:
  76.            
  77.             id: box_top
  78.             adaptive_height: True
  79.             pos_hint:{'center_x': 0.5, 'center_y': 0.3}
  80.  
  81.             Image:
  82.                 source: "data/images/No_internet_B.png"
  83.                 size_hint: 6,6
  84.    
  85.     MDRaisedButton:
  86.         text: 'Retry'
  87.         font_size: "22sp"
  88.         pos_hint:{'center_x': 0.5, 'center_y': 0.25}
  89.         on_release: app.check_net_at_start()
  90.  
  91.    
  92.  
  93. <download_page>:
  94.  
  95.     MDBoxLayout:
  96.         orientation: "horizontal"
  97.         md_bg_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  98.         pos: self.pos
  99.         size: self.size
  100.         MDBoxLayout:
  101.            
  102.             id: box_top
  103.             adaptive_height: True
  104.             pos_hint:{'center_x': 0.5, 'center_y': 0.42}
  105.  
  106.             Image:
  107.                 source: "data/images/load main.gif"
  108.                 size_hint: 5,5
  109.                 anim_delay: 0.03
  110.  
  111.     MDTextField:
  112.         id: project_name
  113.         hint_text: "Enter Project name"
  114.         color_mode: "custom"
  115.         required: True
  116.         mode: "fill"
  117.         font_size: "18sp"
  118.         helper_text_mode: "on_error"
  119.         helper_text: "*REQUIRED"
  120.         current_hint_text_color: 1, 1, 1, .9
  121.         icon_right: "keyboard"
  122.         icon_right_color: 1, 1, 1, 1
  123.         line_color_focus: 0.22352941176, 0.51764705882, 0.89411764706, 1
  124.         line_color_normal: 0.80000000000, 0.80000000000, 0.80000000000, 1
  125.         text_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  126.         fill_color: .8, .8, .8, .3
  127.         pos_hint:{'center_x': 0.5, 'center_y': 0.37}
  128.         size_hint_x: None
  129.         width: 500
  130.    
  131.     MDFillRoundFlatIconButton:
  132.         text: '       Next       '
  133.         icon: "arrow-right"
  134.         pos_hint:{'center_x': 0.5, 'center_y': 0.25}
  135.         on_release: app.check_project(root.ids.project_name.text)
  136.  
  137.  
  138. <select_tree_page>:
  139.  
  140.     MDBoxLayout:
  141.         orientation: "horizontal"
  142.         md_bg_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  143.         pos: self.pos
  144.         size: self.size
  145.         MDBoxLayout:
  146.            
  147.             id: box_top
  148.             adaptive_height: True
  149.             pos_hint:{'center_x': 0.5, 'center_y': 0.42}
  150.  
  151.             Image:
  152.                 source: "data/images/load main.gif"
  153.                 size_hint: 5,5
  154.                 anim_delay: 0.03
  155.  
  156.     MDTextField:
  157.         id: project_name
  158.         hint_text: "Enter Project name"
  159.         color_mode: "custom"
  160.         required: True
  161.         mode: "fill"
  162.         font_size: "18sp"
  163.         helper_text_mode: "on_error"
  164.         helper_text: "*REQUIRED"
  165.         current_hint_text_color: 1, 1, 1, .9
  166.         icon_right: "keyboard"
  167.         icon_right_color: 1, 1, 1, 1
  168.         line_color_focus: 0.22352941176, 0.51764705882, 0.89411764706, 1
  169.         line_color_normal: 0.80000000000, 0.80000000000, 0.80000000000, 1
  170.         text_color: 0.07450980392, 0.03137254902, 0.19215686275, 1
  171.         fill_color: .8, .8, .8, .3
  172.         pos_hint:{'center_x': 0.5, 'center_y': 0.37}
  173.         size_hint_x: None
  174.         width: 500
  175.    
  176.     MDFillRoundFlatIconButton:
  177.         text: '       Next       '
  178.         icon: "arrow-right"
  179.         pos_hint:{'center_x': 0.5, 'center_y': 0.25}
  180.         on_release: app.check_project(root.ids.project_name.text)
  181.  
  182.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement