Windows support

This commit is contained in:
sarah committed 2026-10-09 14:21:42 +02:00
1 parent 9757518d8e
commit 8eb9943a30
14 files changed
+92 -17

No files matched your search

+5 -1
View File
@@ -4,7 +4,9 @@ The window and navigation; each page lives in its own *Page.py."""
import flet as ft
from BrowsePage import BrowsePage
from Core import AppName, ApplyAppearance, AssetsDir, BuildTheme, BundledFontFamily, EffectiveSettings, LoadConfig, Palette
from Core import (
AppName, ApplyAppearance, AssetsDir, BuildTheme, BundledFontFamily, EffectiveSettings, IsWindows, LoadConfig, Palette,
)
from LexiconsPage import LexiconsPage
from LibrariesPage import LibrariesPage
from Library import TagCore
@@ -40,6 +42,8 @@ def Main(Page: ft.Page) -> None:
Page.bgcolor = Palette.Base
Page.window.width = 1280
Page.window.height = 820
if IsWindows:
Page.window.icon = str(AssetsDir / "Icon.ico") # taskbar/title bar (Linux: the desktop entry)
Page.window.min_width = 900
Page.window.min_height = 560