From 24cc3bd1462dd63926e72e2369d1fbcd4d3b3340 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 15:45:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Implement=20KibaTV=20?= =?UTF-8?q?Welcome=20Tool=20with=20Zenity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Populates the `kiba-welcome` script with a functional Zenity menu. - Implements the "Discovery Loop Pattern" for informational dialogs. - Sets standard window dimensions (450x500) and window icon. - Adds keyboard shortcut advertisements for Meta+T, Meta+S, Meta+W, and Meta+A. - Installs Kiba logo to `/usr/share/pixmaps/` for system-wide compatibility. - Updates Palette's journal with UX learnings. Signed-off-by: Jules Agent Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com> --- .Jules/palette.md | 7 +++++++ scripts/kibatv-build.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .Jules/palette.md diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 0000000..27352a2 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,7 @@ +## 2025-05-15 - [Discovery Loop Pattern in Zenity Menus] +**Learning:** In looping Zenity selection menus (like `kiba-welcome`), primary terminal actions (e.g., system installation) must include a `break` to exit the tool, while informational dialogs (shortcuts, documentation) should be backgrounded with `&` to ensure the menu loop remains responsive and does not block on the dialog closure. +**Action:** Always background informational Zenity actions and ensure a clear exit path for primary system tasks. + +## 2025-05-15 - [Standardizing Zenity UI Dimensions] +**Learning:** To ensure visual consistency and adequate space for list descriptions across different resolutions in KibaTV, a default window size of `--width=450 --height=500` is preferred for Zenity list menus. +**Action:** Use standard 450x500 dimensions for main Zenity application menus in this repository. diff --git a/scripts/kibatv-build.sh b/scripts/kibatv-build.sh index d52b28d..7df58b6 100755 --- a/scripts/kibatv-build.sh +++ b/scripts/kibatv-build.sh @@ -99,6 +99,43 @@ EOF # -- Welcome Tool ----------------------------------------------------- install -dm755 "$pkgdir/usr/bin" cat > "$pkgdir/usr/bin/kiba-welcome" << 'EOF' +#!/bin/sh +# KibaTV Welcome Tool + +while true; do + CHOICE=$(zenity --list --title="Welcome to KibaTV" \ + --width=450 --height=500 \ + --window-icon="/usr/share/pixmaps/kiba-logo.png" \ + --column="Action" --column="Description" \ + "🚀 Install KibaTV" "Permanently install KibaTV to your device" \ + "🛍️ App Store" "Browse and install applications" \ + "🖥️ Terminal (Meta+T)" "Open the Konsole terminal emulator" \ + "⌨️ Shortcuts" "View system keyboard shortcuts" \ + "📖 Documentation" "Read the KibaTV user guide" \ + --hide-header) + + case "$CHOICE" in + "🚀 Install KibaTV") + pkexec calamares + break + ;; + "🛍️ App Store") + kstore & + ;; + "🖥️ Terminal (Meta+T)") + konsole & + ;; + "⌨️ Shortcuts") + zenity --info --title="Keyboard Shortcuts" --width=400 --text="KibaTV Keyboard Shortcuts:\n\nMeta+T: Terminal\nMeta+S: Search\nMeta+W: Overview\nMeta+A: Quick Settings" --icon-name=keyboard & + ;; + "📖 Documentation") + xdg-open https://github.com/WolfTech-Innovations/Kiba/wiki & + ;; + *) + break + ;; + esac +done EOF chmod +x "$pkgdir/usr/bin/kiba-welcome" @@ -366,6 +403,7 @@ EOF LOGO_B64 base64 -d "$TMPFILE_APK" > "$pkgdir/usr/share/kibatv/logo.png" rm "$TMPFILE_APK" + install -Dm644 "$pkgdir/usr/share/kibatv/logo.png" "$pkgdir/usr/share/pixmaps/kiba-logo.png" cp "$pkgdir/usr/share/kibatv/logo.png" \ "$pkgdir/usr/share/plymouth/themes/kibatv-spinner/logo.png" }