From 4711ef55326c5acc311c407d9dfdd0eccb072de5 Mon Sep 17 00:00:00 2001 From: oxpoe Date: Tue, 13 Oct 2026 09:44:17 +0700 Subject: [PATCH] refactor(ui): nama aplikasi jadi 'IceBurg LCD' (tanpa merek vendor di UI) - judul jendela, tooltip tray, notifikasi, nama aplikasi Qt, dan deskripsi unit systemd - entri menu di install.sh + petunjuk di jendela - README: catatan bahwa UI tidak memakai merek; repo tetap menyebut merek hanya untuk menjelaskan hardware yang didukung - versi 1.3.1 --- README.md | 3 ++- install.sh | 6 +++--- packaging/gamemax-report.service | 2 +- src/gamemax_gui.py | 25 +++++++++++++------------ 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 1e74113..702269d 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,8 @@ temperature source (Tctl vs Tccd). - **Donate / GitHub buttons** in the app (window and tray menu) - **AppImage build** script (`packaging/build_appimage.sh`, PySide6 bundled) -The GUI labels are in Indonesian. +The GUI labels are in Indonesian. The app itself is named **IceBurg LCD** (no vendor brand in +the UI); the repository keeps the hardware and brand name only to describe what it supports. ## Requirements diff --git a/install.sh b/install.sh index 8bb5816..bbd0404 100755 --- a/install.sh +++ b/install.sh @@ -114,7 +114,7 @@ rm -rf "$TMP" say "4/6 memasang layanan systemd (autostart + plug and play) …" cat > "$UNIT" < "$DESKTOP_DIR/gamemax-lcd.desktop" <Pengaturan lalu klik Simpan & terapkan.") hint.setObjectName("hint") hint.setWordWrap(True) @@ -563,7 +564,7 @@ class Window(QWidget): return box = QMessageBox(self) - box.setWindowTitle("Tutup GAMEMAX LCD") + box.setWindowTitle(f"Tutup {APP_NAME}") box.setText("Sembunyikan ke tray atau keluar sepenuhnya?") box.setInformativeText("Selama tersembunyi di tray, data sensor tetap dikirim ke layar.") remember = QCheckBox("Ingat pilihan ini") @@ -846,7 +847,7 @@ class Window(QWidget): "kosong": "Layar dikosongkan (nilai nol)", "berhenti": "Pengiriman data dihentikan"} if mode != "normal" or getattr(self, "_mode_seen", False): - subprocess.run(["notify-send", "-a", "GAMEMAX LCD", "Status layar", + subprocess.run(["notify-send", "-a", APP_NAME, "Status layar", labels[mode]], capture_output=True) self._mode_seen = True dot = "🟢" if active else "⚪" @@ -945,7 +946,7 @@ class Tray: blank = bool(gr.load_config(CONFIG_PATH).get("blank")) state = ("layar kosong (nilai nol)" if blank and active else ("pengiriman dihentikan" if not active else "normal")) - self.icon.setToolTip(f"GAMEMAX LCD: {state}") + self.icon.setToolTip(f"{APP_NAME}: {state}") base = icon_path() self.icon.setIcon(dimmed_icon(base) if state != "normal" else QIcon(base)) window = getattr(self, "window", None) @@ -959,7 +960,7 @@ class Tray: self.window.raise_() self.window.activateWindow() if QSystemTrayIcon.isSystemTrayAvailable(): - self.icon.showMessage("GAMEMAX LCD", "Jendela dibuka dari permintaan kedua.", + self.icon.showMessage(APP_NAME, "Jendela dibuka dari permintaan kedua.", QSystemTrayIcon.Information, 3000) @@ -976,7 +977,7 @@ def main(): def _main(): app = QApplication(sys.argv) - app.setApplicationName("GAMEMAX LCD") + app.setApplicationName(APP_NAME) app.setStyleSheet(APP_QSS) app.setQuitOnLastWindowClosed(False) @@ -986,10 +987,10 @@ def _main(): if probe.waitForConnected(400): probe.write(b"raise") probe.waitForBytesWritten(400) - print("GAMEMAX LCD sudah berjalan — instance pertama diminta membuka jendelanya.") + print(f"{APP_NAME} sudah berjalan — instance pertama diminta membuka jendelanya.") # Beri tahu lewat notifikasi desktop juga, karena keluarnya proses kedua bisa # terlihat seperti crash saat diluncurkan dari menu. - subprocess.run(["notify-send", "-a", "GAMEMAX LCD", "Sudah berjalan", + subprocess.run(["notify-send", "-a", APP_NAME, "Sudah berjalan", "Aplikasi sudah aktif — jendelanya dibuka, cek taskbar/tray."], capture_output=True) return 0