Skip to content

Commit

Permalink
Add toml dependency. Update setup.py/requirements.txt. Add Descriptio…
Browse files Browse the repository at this point in the history
…n of Sentinel and link to sentinel.co in Help Screen for Foundation compliance
  • Loading branch information
freQniK committed Jul 7, 2024
1 parent c17536f commit a9f6c42
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ sentinel_protobuf==0.3.3
six==1.16.0
sniffio==1.3.1
stripe==4.2.0
toml==0.10.2
treelib==1.6.1
typing_extensions==4.10.0
Unidecode==1.3.6
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"unidecode",
"dnspython",
"bip_utils",
"toml",

# "cosmpy", # Replaced by sentinel-python-sdk + mospy

Expand All @@ -65,7 +66,7 @@
"jwcrypto"
],
package_data={
"conf": ["config/config.ini"],
"conf": ["config/config.ini", "config/dnscrypt-proxy.toml"],
"bin": ["sentinelcli", "warp-cli", "warp-svc", "tun2socks", "v2ray"],
"awoc": ["data/world.json"],
"fonts": ["Roboto-BoldItalic.ttf", "arial-unicode-ms.ttf", "mplus-2c-bold.ttf"],
Expand Down
45 changes: 43 additions & 2 deletions src/kv/meile.kv
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ WindowManager:
size_hint: (1, 1)
height: self.parent.height
MDGridLayout:
rows: 18
rows: 27
cols: 1
size_hint_y: None
size_hint_x: 1
Expand Down Expand Up @@ -2132,6 +2132,45 @@ WindowManager:
theme_text_color: "Custom"
text_color: get_color_from_hex(MeileColors.MEILE)
font_size: "12dp"

MDLabel:
font_name: "Roboto-BoldItalic"
text: "What is a Sentinel?"
size_hint_y: None
height: self.texture_size[1]
size_hint_x: 1
halign: "center"

MDLabel:
font_name: "DejaVuSans"
text: "Sentinel is a Layer-1 blockchain within the Cosmos ecosystem. It was founded in 2017, and provides privacy services, such as decentralized VPN to users both of traditional commerce and blockchain enthusiasts. It's native coin ticker is $DVPN. "
size_hint_y: None
height: self.texture_size[1]
size_hint_x: 1
pos_hint_x: .9
halign: "center"
theme_text_color: "Custom"
text_color: get_color_from_hex(MeileColors.MEILE)
font_size: "12dp"

MDBoxLayout:
size_hint_y: None
height: dp(48) # Adjust height as needed
orientation: "vertical"

MDFlatButton:
text: "Read More"
size_hint_x: None
width: self.parent.width # Full width of the parent (MDBoxLayout)
pos_hint: {'center_x': 0.5}
on_release: root.open_sentinel()
MDLabel:
MDLabel:
MDLabel:
MDLabel:
MDLabel:
MDLabel:

<FiatInterface>:
name: "fiatgateway"
title: "Re-fuel"
Expand Down Expand Up @@ -2388,4 +2427,6 @@ WindowManager:

<HyperlinkLabel>:
size_hint: None, None
text_size: self.size
text_size: self.width, None
halign: "center"
valign: "middle"
5 changes: 5 additions & 0 deletions src/ui/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,11 @@ def set_previous_screen(self):
Meile.app.root.transistion = SlideTransition(direction="right")
Meile.app.root.current = WindowNames.MAIN_WINDOW

def open_sentinel(self):
import webbrowser

webbrowser.open('https://sentinel.co')

class SettingsScreen(Screen):
MeileConfig = MeileGuiConfig()

Expand Down

0 comments on commit a9f6c42

Please sign in to comment.