Skip to content

Commit

Permalink
Fix data on sub cards. Remove v1.8.0 rv code. Add Disconnect button. …
Browse files Browse the repository at this point in the history
…Create Label on Map of status. Create connect_routine. Migrate to ip-api. Adjust loc of conn/disconn button. Change all Dialog bg color to BLACK
  • Loading branch information
freQniK committed May 12, 2024
1 parent d3b6725 commit ef9841a
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 329 deletions.
14 changes: 2 additions & 12 deletions src/kv/meile.kv
Original file line number Diff line number Diff line change
Expand Up @@ -193,25 +193,15 @@ WindowManager:
MDFloatLayout:
size_hint: None,.175
TooltipMDFlatButton:
tooltip_text: "Connect to Node"
#tooltip_text: "Connect to Node"
md_bg_color: get_color_from_hex("#121212")
pos_hint: {'x' : .3, 'y': .6}
pos_hint: {'x' : .4, 'y': .6}
on_release: root.connect_routine()
opacity: 1
Image:
id: connect_button
size_hint: 3,3
source: root.return_connect_button("c")
TooltipMDFlatButton:
tooltip_text: "Disconnect from Node"
#md_bg_color: get_color_from_hex("#121212")
pos_hint: {'x' : .3, 'y': .6}
on_release: root.connect_routine()
opacity: 0
Image:
id: disconnect_button
size_hint: 3,3
source: root.return_connect_button("d")


MDTextField:
Expand Down
1 change: 1 addition & 0 deletions src/typedef/konstants.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class HTTParams():
ICANHAZDNS = "icanhazip.com"
IFCONFIGDNS = "ifconfig.co"
IFCONFIGURL = "https://ifconfig.co/json"
IPAPIDNS = "ip-api.com"
IPAPI = "http://ip-api.com/json"


Expand Down
7 changes: 7 additions & 0 deletions src/ui/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
from kivymd.uix.label.label import MDLabel
from kivymd.uix.progressbar.progressbar import MDProgressBar

from conf.meile_config import MeileGuiConfig
from typedef.konstants import MeileColors

class Tab(MDBoxLayout, MDTabsBase):
pass

Expand All @@ -30,6 +33,10 @@ class SubscribeContent(BoxLayout):
def __init_ (self, price):
self.price_text = price
'''
class ProtectedLabel(MDLabel):
def get_font(self):
Config = MeileGuiConfig()
return Config.resource_path(MeileColors.QR_FONT_FACE)

class ToolTipMDIconButton(MDIconButton, MDTooltip):
pass
Expand Down
Loading

0 comments on commit ef9841a

Please sign in to comment.