diff --git a/sbapp/main.py b/sbapp/main.py index cd3b576..9a3479f 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -838,6 +838,8 @@ class SidebandApp(MDApp): webbrowser.open("https://unsigned.io/sideband") self.root.ids.information_scrollview.effect_cls = ScrollEffect + self.root.ids.information_logo.icon = self.sideband.asset_dir+"/rns_256.png" + info = "This is Sideband v"+__version__+" "+__variant__+", on RNS v"+RNS.__version__+"\n\nHumbly build using the following open components:\n\n - [b]Reticulum[/b] (MIT License)\n - [b]LXMF[/b] (MIT License)\n - [b]KivyMD[/b] (MIT License)\n - [b]Kivy[/b] (MIT License)\n - [b]Python[/b] (PSF License)"+"\n\nGo to [u][ref=link]https://unsigned.io/sideband[/ref][/u] to support the project.\n\nThe Sideband app is Copyright (c) 2022 Mark Qvist / unsigned.io\n\nPermission is granted to freely share and distribute binary copies of Sideband v"+__version__+" "+__variant__+", so long as no payment or compensation is charged for said distribution or sharing.\n\nIf you were charged or paid anything for this copy of Sideband, please report it to [b]license@unsigned.io[/b].\n\nTHIS IS EXPERIMENTAL SOFTWARE - USE AT YOUR OWN RISK AND RESPONSIBILITY" self.root.ids.information_info.text = info self.root.ids.information_info.bind(on_ref_press=link_exec) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 9203db0..651b4e8 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -99,6 +99,9 @@ class SidebandCore(): elif RNS.vendor.platformutils.is_darwin(): core_path = os.path.abspath(__file__) self.asset_dir = core_path.replace("/sideband/core.py", "/assets") + elif RNS.vendor.platformutils.get_platform() == "linux": + core_path = os.path.abspath(__file__) + self.asset_dir = core_path.replace("/sideband/core.py", "/assets") else: self.asset_dir = plyer.storagepath.get_application_dir()+"/sbapp/assets" diff --git a/sbapp/ui/layouts.py b/sbapp/ui/layouts.py index 5b06b45..cb59cde 100644 --- a/sbapp/ui/layouts.py +++ b/sbapp/ui/layouts.py @@ -751,11 +751,22 @@ MDNavigationLayout: text_size: self.width, None height: self.texture_size[1] - MDIconButton: + MDBoxLayout: + orientation: "vertical" + size_hint_y: None + size_hint_x: None + height: dp(256) + width: dp(256) + spacing: dp(0) + padding: [dp(0), dp(0), dp(0), dp(0)] pos_hint: {"center_x": .5, "center_y": .5} - icon: "assets/rns_256.png" - icon_size: "256dp" - + + MDIcon: + pos_hint: {"center_x": .5, "center_y": .5} + id: information_logo + font_size: "256dp" + width: dp(256) + height: dp(256) MDScreen: name: "map_screen"