mirror of
https://git.srhtnin.garden/sarah/SaraTag.git
synced 2026-10-14 18:38:11 +02:00
Windows support
This commit is contained in:
1 parent
9757518d8e
commit
8eb9943a30
14 files changed
+92
-17
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user