fixes on linux

pull/20/head
quadrismegistus 4 years ago
parent 83440d8a68
commit 303ccee9b9

@ -58,9 +58,9 @@
<UsernameLabel>:
theme_text_color: 'Custom'
text_color: rgb(*COLOR_TEXT)
# width:'100sp'
adaptive_width: True
size_hint:0.333,None
width:'100sp'
# adaptive_width: True
size_hint:None,None
# md_bg_color:rgb(*COLOR_TEXT)
# pos_hint: {'y':1}
halign:'center'
@ -81,9 +81,9 @@
line_color_normal: rgb(*COLOR_TEXT)
current_hint_text_color: rgb(*COLOR_TEXT)
error_color:rgb(*COLOR_TEXT)
pos_hint: {'center_x':0.5,'y':0.2}
# pos_hint: {'center_x':0.5,'y':0.2}
size_hint:0.666,None
font_size:'2dp'
# font_size:'2dp'

@ -3,8 +3,9 @@ from kivymd.uix.boxlayout import MDBoxLayout
from kivymd.uix.textfield import MDTextField
from kivymd.uix.button import MDRectangleFlatButton
from kivymd.uix.label import MDLabel
from kivymd.uix.card import MDSeparator
from kivy.uix.label import Label
from main import MyLabel,rgb,COLOR_TEXT,COLOR_ICON,COLOR_ACCENT
from main import MyLabel,rgb,COLOR_TEXT,COLOR_ICON,COLOR_ACCENT,COLOR_CARD
class LoginBoxLayout(MDBoxLayout): pass
class LoginButtonLayout(MDBoxLayout): pass
@ -33,8 +34,9 @@ class LoginScreen(BaseScreen):
self.label_title.bold=True
self.label_title.markup=True
self.label_title.color=rgb(*COLOR_TEXT)
self.label_title.font_size*=1.5
# self.label_title.font_size*=1.5
self.layout.add_widget(self.label_title)
self.layout.add_widget(MDSeparator(height='100sp',color=rgb(*COLOR_CARD)))
self.label_username = UsernameLabel(text="username:")
@ -85,10 +87,11 @@ class LoginScreen(BaseScreen):
self.layout.add_widget(self.login_status)
self.label_password.font_size=32
self.label_username.font_size=32
self.login_button.font_size=22
self.register_button.font_size=22
self.label_title.font_size='22sp'
self.label_password.font_size='18sp'
self.label_username.font_size='18sp'
self.login_button.font_size='18sp'
self.register_button.font_size='18sp'

Loading…
Cancel
Save