feat: «Jail Launcher» al menú/dock, autoscroll consola i puja a 1.0.4
This commit is contained in:
@@ -57,7 +57,7 @@ if [ "$OS" = "darwin" ]; then
|
||||
--standalone \
|
||||
--macos-create-app-bundle \
|
||||
--macos-app-icon="$ICON_ICNS" \
|
||||
--macos-app-name=jlauncher \
|
||||
--macos-app-name="Jail Launcher" \
|
||||
--macos-app-version="$VERSION" \
|
||||
--macos-signed-app-name=com.jailgames.jlauncher \
|
||||
--company-name=jailgames \
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 89 KiB |
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
"""jlauncher — lanzador de juegos jailgames."""
|
||||
|
||||
__version__ = "1.0.3"
|
||||
__version__ = "1.0.4"
|
||||
|
||||
@@ -16,6 +16,7 @@ from .ui.theme import apply_theme
|
||||
def main() -> int:
|
||||
app = QApplication(sys.argv)
|
||||
app.setApplicationName("jlauncher")
|
||||
app.setApplicationDisplayName("Jail Launcher")
|
||||
icon_path = app_icon_path()
|
||||
if icon_path is not None:
|
||||
app.setWindowIcon(QIcon(str(icon_path)))
|
||||
|
||||
@@ -36,7 +36,7 @@ WINDOW_TITLE = f"© 2026 {APP_NAME} — JailDesigner"
|
||||
|
||||
CONSOLE_HEIGHT = 150 # alçada de la consola desplegada (px)
|
||||
CONSOLE_ANIM_MS = 220 # durada de l'animació de desplegar/replegar
|
||||
CONSOLE_IDLE_MS = 4000 # marge sense activitat abans de replegar en mode auto
|
||||
CONSOLE_IDLE_MS = 3000 # marge sense activitat abans de replegar en mode auto
|
||||
|
||||
CONSOLE_SHOW = "show"
|
||||
CONSOLE_AUTO = "auto"
|
||||
@@ -293,13 +293,12 @@ class MainWindow(QMainWindow):
|
||||
name.setFont(nf)
|
||||
name.setStyleSheet("color: #7c4dff;")
|
||||
lay.addWidget(name)
|
||||
lay.addSpacing(4)
|
||||
lay.addSpacing(2)
|
||||
|
||||
# Versió en cursiva i atenuada.
|
||||
ver = QLabel(f"Versió {__version__}", alignment=Qt.AlignCenter)
|
||||
# Versió: petita i atenuada, just davall del nom (estil macOS).
|
||||
ver = QLabel(f"v{__version__}", alignment=Qt.AlignCenter)
|
||||
vf = ver.font()
|
||||
vf.setItalic(True)
|
||||
vf.setPointSize(vf.pointSize() + 1)
|
||||
vf.setPointSize(vf.pointSize() - 1)
|
||||
ver.setFont(vf)
|
||||
ver.setStyleSheet("color: #8a8a8a;")
|
||||
lay.addWidget(ver)
|
||||
@@ -463,7 +462,13 @@ class MainWindow(QMainWindow):
|
||||
# --------------------------------------------------------------- helpers
|
||||
|
||||
def _log(self, text: str) -> None:
|
||||
# Autoscroll intel·ligent: només seguim el final si la barra ja hi estava.
|
||||
# Si l'usuari ha pujat a llegir una línia anterior, no l'arrosseguem avall.
|
||||
bar = self.log_view.verticalScrollBar()
|
||||
at_bottom = bar.value() >= bar.maximum() - 4
|
||||
self.log_view.appendPlainText(text)
|
||||
if at_bottom:
|
||||
bar.setValue(bar.maximum())
|
||||
# En mode auto, qualsevol línia desplega la consola; si no hi ha cap worker
|
||||
# actiu (p.ex. un missatge solt), arrenca el compte enrere per replegar-la.
|
||||
if self.settings.console_mode == CONSOLE_AUTO:
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "jlauncher"
|
||||
version = "1.0.3"
|
||||
version = "1.0.4"
|
||||
description = "Lanzador de juegos jailgames: clona, compila y ejecuta repos Gitea"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user