💖 Build windows cursors

This commit is contained in:
ful1e5 2021-01-29 18:16:28 +05:30
parent 03fb3693d5
commit 7c35cc1a57
2 changed files with 4 additions and 2 deletions

View file

@ -58,7 +58,7 @@ def wbuild(bitmaps_dir: LikePath, win_out_dir: Path) -> None:
delay = item["delay"] delay = item["delay"]
with CursorAlias.from_bitmap(png, hotspot) as alias: with CursorAlias.from_bitmap(png, hotspot) as alias:
alias = alias.create(X_SIZES, delay) alias.create(X_SIZES, delay)
if item.get("win_key"): if item.get("win_key"):
position = item["position"] position = item["position"]

View file

@ -3,9 +3,11 @@
from pathlib import Path from pathlib import Path
from applbuild.generator import xbuild from applbuild.generator import xbuild, wbuild
bitmaps_dir = Path("../pngs") bitmaps_dir = Path("../pngs")
x_out_dir = Path("../themes") / "macOSBigSur" x_out_dir = Path("../themes") / "macOSBigSur"
win_out_dir = Path("../themes") / "macOSBigSur-Windows"
xbuild(bitmaps_dir, x_out_dir) xbuild(bitmaps_dir, x_out_dir)
wbuild(bitmaps_dir,win_out_dir)