Skip to content

Commit

Permalink
ems dashboard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastirona committed Nov 5, 2023
1 parent 3e846a2 commit dcae958
Showing 1 changed file with 13 additions and 70 deletions.
83 changes: 13 additions & 70 deletions ems_dashboard.kv
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@

Label:
text: "Patient Info"
font_size: min(self.width*0.23, self.height) * 0.45
font_size: min(self.width*0.3, self.height) * 0.45
font_name: 'Roboto-Bold'
color: rgba(Colors.BLUE)





####################### name+age ##################################

GridLayout:
Expand All @@ -35,7 +31,7 @@
size_hint: (.7, .2)
pos_hint: {'x': 0.15}
text: "Name: "
font_size: min(self.width*0.3, self.height) * 0.6
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.BLUE)

Expand All @@ -44,18 +40,13 @@
size_hint: (.7, .2)
pos_hint: {'x': 0.15}
text: "Age: "
font_size: min(self.width*0.3, self.height) * 0.6
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Widget:
size_hint_y: 0.02






####################### weight+height ##################################
GridLayout:
cols: 2
Expand All @@ -65,33 +56,24 @@
id: patweight
pos_hint: {'x': 0.15}
text: "Weight: "
font_size: min(self.width*0.3, self.height) * 0.6
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
background_color: rgba(*Colors.BLUE, 0)
foreground_color: rgba(Colors.ACCENT_BLUE)

Label:
id: patheight
pos_hint: {'x': 0.15}

text: "Height: "
font_size: min(self.width*0.3, self.height) * 0.6
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Widget:
size_hint_y: 0.02











####################### BT+ID ##################################
GridLayout:
cols: 2
Expand All @@ -101,89 +83,50 @@
id: patBT
pos_hint: {'x': 0.15}
text: "Blood Type: "
font_size: min(self.width*0.3, self.height) * 0.6
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Label:
id: patID
pos_hint: {'x': 0.15}
text: "DIID: "
font_size: min(self.width*0.3, self.height) * 0.6
text: "DLID: "
font_size: min(self.width*0.2, self.height) * 0.6
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Widget:
size_hint_y: 0.02








####################### Conditions ##################################
Label:
id: patMedCond
pos_hint: {'x': 0.15}
text: "Medical Conditions: "
font_size: min(self.width*0.3, self.height) * 0.1
font_size: min(self.width*0.3, self.height) * 0.15
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Widget:
size_hint_y: 0.02








####################### Allergies ##################################
Label:
id: patAllergies
pos_hint: {'x': 0.15}
text: "Allergies: "
font_size: min(self.width*0.3, self.height) * 0.1
font_size: min(self.width*0.3, self.height) * 0.15
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)

Widget:
size_hint_y: 0.02








####################### Medications ##################################
Label:
id: patMedication
pos_hint: {'x': 0.15}
text: "Medications: "
font_size: min(self.width*0.3, self.height) * 0.1
font_size: min(self.width*0.3, self.height) * 0.15
color: rgba(Colors.BLUE)
foreground_color: rgba(Colors.ACCENT_BLUE)


















foreground_color: rgba(Colors.ACCENT_BLUE)

0 comments on commit dcae958

Please sign in to comment.