diff --git a/sync_dl_gui/screens.py b/sync_dl_gui/screens.py index 61314d6..67116e5 100644 --- a/sync_dl_gui/screens.py +++ b/sync_dl_gui/screens.py @@ -31,6 +31,7 @@ import sync_dl.config as cfg import time import sys +import webbrowser from elements import Console,PlaylistList @@ -195,4 +196,10 @@ def setMusicDir(self): cfg.writeToConfig('musicDir',self.musicDir.text.strip()) - cfg.logger.info(f"Music Directory Changed") \ No newline at end of file + cfg.logger.info(f"Music Directory Changed") + + def FrontEndLink(self): + webbrowser.open('https://github.com/PrinceOfPuppers/sync-dl-gui') + + def backEndLink(self): + webbrowser.open('https://github.com/PrinceOfPuppers/sync-dl') \ No newline at end of file diff --git a/sync_dl_gui/screens/settingsScreen.kv b/sync_dl_gui/screens/settingsScreen.kv index d01324c..ff49810 100644 --- a/sync_dl_gui/screens/settingsScreen.kv +++ b/sync_dl_gui/screens/settingsScreen.kv @@ -12,9 +12,9 @@ name: "settingsScreen" musicDir:musicDir console: console - GridLayout: - cols:1 - + BoxLayout: + orientation:'vertical' + Title: text: "Settings" @@ -22,6 +22,8 @@ cols:2 padding:(gaps,gaps) spacing:(0,gaps) + size_hint_y:None + height:self.minimum_height LabelPlate: text: "Backend\nVersion" @@ -33,9 +35,6 @@ SettingTextEntry: text: root.getSyncDlVersion() use_bubble:False - #readonly:True - - LabelPlate: text: "Music\nDirectory" @@ -53,22 +52,23 @@ text: root.getMusicDir() on_text_validate: root.setMusicDir() - + + + + GridLayout: + cols:1 + padding:(gaps,0,gaps,gaps) + spacing:(0,gaps) Button: background_color:greyA text: "Apply" size_hint_y:None - size_hint_x:None - width: root.width*0.3 height: root.height*0.1 on_release: root.setMusicDir() - - ScrollView: - size_hint_y:None - height: root.height*0.1 + ScrollView: Console: scrollView:self.parent size_hint_y:None @@ -78,10 +78,36 @@ id: console + GridLayout: + cols:2 + size_hint_y:None + height:self.minimum_height + + Button: + background_color: greyA + text: "GitHub FrontEnd" + + size_hint_y:None + + height: root.height*0.1 + on_release: + root.FrontEndLink() + + Button: + background_color: greyA + text: "GitHub Backend" + + size_hint_y:None + + height: root.height*0.1 + on_release: + root.backEndLink() GridLayout: cols:1 + size_hint_y:None height: root.height*0.1 + Button: text: "Back" background_color:darkGreyA