1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

fix: steam deck ui

This commit is contained in:
aclist 2024-01-13 05:44:21 +09:00
parent 810f4dbdc6
commit 9847c95617
2 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.0.0.rc-2 version=5.0.0.rc-3
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -316,8 +316,10 @@ check_version(){
} }
download_new_version(){ download_new_version(){
local version_url="$(format_version_url)" local version_url="$(format_version_url)"
logger INFO "Version URL is '$version_url'"
logger INFO "$src_path"
mv "$src_path" "$src_path.old" mv "$src_path" "$src_path.old"
curl -Ls "$version_url" > "$src_path" curl -L "$version_url" > "$src_path" 2>$debug_log
rc=$? rc=$?
if [[ $rc -eq 0 ]]; then if [[ $rc -eq 0 ]]; then
dl_changelog dl_changelog

View file

@ -516,6 +516,9 @@ class ButtonBox(Gtk.Box):
self.buttons = list() self.buttons = list()
for side_button in side_buttons: for side_button in side_buttons:
button = Gtk.Button(label=side_button) button = Gtk.Button(label=side_button)
if is_steam_deck is True:
button.set_size_request(10, 10)
else
button.set_size_request(50,50) button.set_size_request(50,50)
button.set_opacity(0.6) button.set_opacity(0.6)
self.buttons.append(button) self.buttons.append(button)
@ -1483,10 +1486,8 @@ class App(Gtk.Application):
self.win = OuterWindow() self.win = OuterWindow()
# TODO: steam deck self.win.fullscreen()
# self.win.set_size_request(1280,800) #self.win.set_keep_below(True)
#self.win.fullscreen()
self.win.set_keep_below(True)
accel = Gtk.AccelGroup() accel = Gtk.AccelGroup()
accel.connect(Gdk.KEY_q, Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE, self._halt_window_subprocess) accel.connect(Gdk.KEY_q, Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE, self._halt_window_subprocess)