1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +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
set -o pipefail
version=5.0.0.rc-2
version=5.0.0.rc-3
#CONSTANTS
aid=221100
@ -316,8 +316,10 @@ check_version(){
}
download_new_version(){
local version_url="$(format_version_url)"
logger INFO "Version URL is '$version_url'"
logger INFO "$src_path"
mv "$src_path" "$src_path.old"
curl -Ls "$version_url" > "$src_path"
curl -L "$version_url" > "$src_path" 2>$debug_log
rc=$?
if [[ $rc -eq 0 ]]; then
dl_changelog

View file

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