Client: Windows support

This commit is contained in:
sarah committed 2026-10-09 14:25:03 +02:00
1 parent de362bacd0
commit 954bf39c8f
3 files changed
+58 -7

No files matched your search

+4 -1
View File
@@ -5,6 +5,7 @@ the right."""
import os
import subprocess
import sys
from typing import Optional
import flet as ft
@@ -22,7 +23,7 @@ from Settings import ShowSettingsDialog
def _SetCursorThemeFallback() -> None:
"""GTK reads XCURSOR_THEME directly and doesn't always inherit it (shows as
'Unable to load ... from the cursor theme'). Same fix as SaraFem's."""
if os.environ.get("XCURSOR_THEME"):
if os.environ.get("XCURSOR_THEME") or sys.platform == "win32": # GTK/GNOME only
return
try:
Result = subprocess.run(["gsettings", "get", "org.gnome.desktop.interface", "cursor-theme"],
@@ -48,6 +49,8 @@ def Main(Page: ft.Page) -> None:
Page.bgcolor = Palette.Base
Page.window.width = 1180
Page.window.height = 760
if sys.platform == "win32":
Page.window.icon = str(AssetsDir / "Icon.ico") # taskbar/title bar (Linux: the desktop entry)
Page.window.min_width = 720
Page.window.min_height = 480