Skip to content

Commit

Permalink
Add separators to sub screen. Fix spacing on node screen and sub screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Apr 2, 2024
1 parent 3ca156b commit accd6d2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
32 changes: 19 additions & 13 deletions src/kv/meile.kv
Original file line number Diff line number Diff line change
Expand Up @@ -767,36 +767,36 @@ WindowManager:
rows: 2
size_hint_x: 1
MDGridLayout:
cols: 6
cols: 7
height: 25
adaptive_height: True
padding: [15, 25, 0, 25]

MDLabel:
text: "Moniker"
bold: True
size_hint_x: 2.1
size_hint_x: 2.5


MDLabel:
text: "Location"
bold: True
size_hint_x: 1.5
size_hint_x: 1.3

MDLabel:
text: "Protocol"
bold: True
size_hint_x: 1.2
size_hint_x: 1.5

MDLabel:
text: "Type"
bold: True
size_hint_x: 1
size_hint_x: 1.4

MDLabel:
text: "Expiration"
bold: True
size_hint_x: 2
size_hint_x: 1

TooltipMDIconButton:
icon: "earth"
Expand Down Expand Up @@ -834,17 +834,17 @@ WindowManager:
MDLabel:
text: "Moniker"
bold: True
size_hint_x: 2.1
size_hint_x: 2.3

MDLabel:
text: "Location"
bold: True
size_hint_x: 1.5
size_hint_x: 1.7

MDLabel:
text: "Speed"
bold: True
size_hint_x: 2
size_hint_x: 2.2

# MDLabel:
# text: "Status"
Expand All @@ -859,7 +859,7 @@ WindowManager:
MDLabel:
text: "Protocol"
bold: True
size_hint_x: 1.2
size_hint_x: 1.6

MDLabel:
text: "Type"
Expand Down Expand Up @@ -911,15 +911,16 @@ WindowManager:


<NodeRow>:
cols: 7
rows: 2
cols: 5
MDLabel:
padding: [10, 0, 0, 0]
text: root.moniker
markup: True
size_hint_x: 2
theme_text_color: "Custom"
font_style: "H6"
font_size: sp(14)
font_size: sp(16)
font_name: "../../src/fonts/arial-unicode-ms.ttf"
text_color: get_color_from_hex("#fcb711")

Expand All @@ -945,7 +946,12 @@ WindowManager:
markup: True
size_hint_x: 1
font_name: "../../src/fonts/arial-unicode-ms.ttf"

HSeparator:
HSeparator:
HSeparator:
HSeparator:
HSeparator:


<NodeDetails>:
rows: 2
Expand Down
2 changes: 1 addition & 1 deletion src/ui/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ def add_sub_rv_data(self, node, flagloc):

item = NodeAccordion(
node=NodeRow(
moniker=node[NodeKeys.FinalSubsKeys[1]],
moniker="[b]" + node[NodeKeys.FinalSubsKeys[1]] + "[/b]",
location=node[NodeKeys.FinalSubsKeys[5]],
protocol=node[NodeKeys.FinalSubsKeys[8]],
node_type=NodeTypeText,
Expand Down

0 comments on commit accd6d2

Please sign in to comment.