Changes made on UI for Desktop and Mobile Clients
This commit is contained in:
parent
4770790597
commit
7aac991c4f
11
src/main.kv
11
src/main.kv
|
@ -1,16 +1,27 @@
|
||||||
|
<CustomButton@Button>:
|
||||||
|
font_size: 26
|
||||||
<LoginScreen>:
|
<LoginScreen>:
|
||||||
|
padding: 200
|
||||||
|
spacing: 10
|
||||||
|
rows:2
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
AnchorLayout:
|
AnchorLayout:
|
||||||
TextInput:
|
TextInput:
|
||||||
id: user_input
|
id: user_input
|
||||||
|
font_size: 65
|
||||||
|
hint_text: "enter text"
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
|
spacing: 10
|
||||||
Button:
|
Button:
|
||||||
|
background_color: (1.0, 2.0, 8.0, 1.0)
|
||||||
id: sendmessage
|
id: sendmessage
|
||||||
text: 'SendMessage'
|
text: 'SendMessage'
|
||||||
on_press: root.send()
|
on_press: root.send()
|
||||||
|
|
||||||
Button:
|
Button:
|
||||||
|
background_color: (1.0, 2.0, 8.0, 1.0)
|
||||||
id: btnExit
|
id: btnExit
|
||||||
text: "Exit"
|
text: "Exit"
|
||||||
on_press: root.sayexit()
|
on_press: root.sayexit()
|
||||||
|
|
|
@ -10,7 +10,8 @@ from helper_sql import sqlExecute
|
||||||
|
|
||||||
from kivy.app import App
|
from kivy.app import App
|
||||||
from kivy.core.window import Window
|
from kivy.core.window import Window
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
# from kivy.uix.boxlayout import BoxLayout
|
||||||
|
from kivy.uix.gridlayout import GridLayout
|
||||||
|
|
||||||
import queues
|
import queues
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ import shutdown
|
||||||
statusIconColor = 'red'
|
statusIconColor = 'red'
|
||||||
|
|
||||||
|
|
||||||
class LoginScreen(BoxLayout):
|
class LoginScreen(GridLayout):
|
||||||
"""This will use for sending message to recipents from mobile client."""
|
"""This will use for sending message to recipents from mobile client."""
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
|
|
Reference in New Issue
Block a user