aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-11-10 04:59:37 +0000
committernathansmithsmith <nathansmith7@mailfence.com>2023-11-10 04:59:37 +0000
commita61e1e175ca601089a8734d694a5e37486f3189d (patch)
treea382fc99da6be78bf2ee848949e5e572fd5777af
parentc0bd1ca2348d568b7f34081b09bc4e53baaff749 (diff)
downloadyouload-a61e1e175ca601089a8734d694a5e37486f3189d.tar.gz
youload-a61e1e175ca601089a8734d694a5e37486f3189d.tar.bz2
youload-a61e1e175ca601089a8734d694a5e37486f3189d.zip
Better layout and other stuff on android
-rw-r--r--buildozer.spec4
-rw-r--r--images/icon.pngbin0 -> 41943 bytes
-rw-r--r--src/view/app.py18
3 files changed, 13 insertions, 9 deletions
diff --git a/buildozer.spec b/buildozer.spec
index 16aa7d3..8c1e3ad 100644
--- a/buildozer.spec
+++ b/buildozer.spec
@@ -47,11 +47,11 @@ requirements = python3,kivy,pytube
#presplash.filename = %(source.dir)s/data/presplash.png
# (str) Icon of the application
-#con.filename = %(source.dir)s/data/icon.png
+icon.filename = images/icon.png
# (list) Supported orientations
# Valid options are: landscape, portrait, portrait-reverse or landscape-reverse
-orientation = landscape
+orientation = portrait
# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
diff --git a/images/icon.png b/images/icon.png
new file mode 100644
index 0000000..ba0f4cb
--- /dev/null
+++ b/images/icon.png
Binary files differ
diff --git a/src/view/app.py b/src/view/app.py
index 98c7842..0fe3fa6 100644
--- a/src/view/app.py
+++ b/src/view/app.py
@@ -45,32 +45,36 @@ class YouloadApp(App):
url_and_submit.add_widget(self.submit)
# Download status.
- self.download_status = Label(text="Nothing downloading", size_hint=(0.3, 1.0))
+ self.download_status = Label(text="Nothing downloading", size_hint=(0.75, 1.0))
# Download type chooser button.
- self.download_type_button = Button(text=self.download_type_chooser.current_type, size_hint=(0.1, 1.0))
+ self.download_type_button = Button(text=self.download_type_chooser.current_type, size_hint=(0.25, 1.0))
self.download_type_button.bind(on_press=self.download_type_chooser.open)
# Folder display.
- self.folder_display = Label(text=util.get_default_download_dir(), size_hint=(0.4, 1.0))
+ self.folder_display = Label(text=util.get_default_download_dir(), size_hint=(0.75, 1.0))
# choose folder button.
- self.choose_folder_button = Button(text="Folder", size_hint=(0.2, 1.0))
+ self.choose_folder_button = Button(text="Folder", size_hint=(0.25, 1.0))
self.choose_folder_button.bind(on_press=self.choose_folder_cb)
# Info line.
info_line = BoxLayout(size_hint=(1.0, 0.1))
info_line.add_widget(self.download_status)
info_line.add_widget(self.download_type_button)
- info_line.add_widget(self.folder_display)
- info_line.add_widget(self.choose_folder_button)
+
+ info_line2 = BoxLayout(size_hint=(1.0, 0.1))
+ info_line2.add_widget(self.folder_display)
+ info_line2.add_widget(self.choose_folder_button)
+
# Info display.
- self.downloads_display = Label(text="", size_hint=(1.0, 0.8))
+ self.downloads_display = Label(text="", size_hint=(1.0, 0.7))
# Everything else (:
layout.add_widget(url_and_submit)
layout.add_widget(info_line)
+ layout.add_widget(info_line2)
layout.add_widget(self.downloads_display)
return layout