mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-14 15:15:02 -04:00
💝 Smooth animation
This commit is contained in:
parent
e71b23738f
commit
e4aa2ccbee
4 changed files with 17 additions and 13 deletions
|
@ -36,7 +36,7 @@ def xbuild(bitmaps_dir: LikePath, x_out_dir: Path) -> None:
|
|||
|
||||
with CursorAlias.from_bitmap(png, hotspot) as alias:
|
||||
x_cfg = alias.create(X_SIZES, delay)
|
||||
print(f"Building {x_cfg.stem} XCursor...")
|
||||
print(f"Building '{x_cfg.stem}' XCursor...")
|
||||
XCursor.create(x_cfg, x_out_dir)
|
||||
|
||||
add_missing_xcursor(x_out_dir / "cursors")
|
||||
|
@ -67,11 +67,12 @@ def wbuild(bitmaps_dir: LikePath, win_out_dir: Path) -> None:
|
|||
size = item["size"]
|
||||
win_key = item["win_key"]
|
||||
canvas_size = item["canvas_size"]
|
||||
win_delay = item["win_delay"]
|
||||
|
||||
win_cfg = alias.reproduce(size, canvas_size, position, delay=3).rename(
|
||||
win_key
|
||||
)
|
||||
print(f"Building {win_cfg.stem} Windows Cursor...")
|
||||
win_cfg = alias.reproduce(
|
||||
size, canvas_size, position, delay=win_delay
|
||||
).rename(win_key)
|
||||
print(f"Building '{win_cfg.stem}' Windows Cursor...")
|
||||
WindowsCursor.create(win_cfg, win_out_dir)
|
||||
|
||||
WindowsPackager(win_out_dir, THEME_NAME, COMMENT, AUTHOR, URL)
|
||||
|
@ -92,9 +93,12 @@ def build(bitmaps_dir: LikePath, x_out_dir: Path, win_out_dir: Path) -> None:
|
|||
size = item["size"]
|
||||
win_key = item["win_key"]
|
||||
canvas_size = item["canvas_size"]
|
||||
win_delay = item["win_delay"]
|
||||
|
||||
win_cfg = alias.reproduce(size, canvas_size, position, delay=3).rename(win_key)
|
||||
print(f"Building {win_cfg.stem} Windows Cursor...")
|
||||
win_cfg = alias.reproduce(size, canvas_size, position, delay=win_delay).rename(
|
||||
win_key
|
||||
)
|
||||
print(f"Building '{win_cfg.stem}' Windows Cursor...")
|
||||
WindowsCursor.create(win_cfg, win_out_dir)
|
||||
|
||||
config = get_config(bitmaps_dir)
|
||||
|
@ -107,7 +111,7 @@ def build(bitmaps_dir: LikePath, x_out_dir: Path, win_out_dir: Path) -> None:
|
|||
|
||||
with CursorAlias.from_bitmap(png, hotspot) as alias:
|
||||
x_cfg = alias.create(X_SIZES, delay)
|
||||
print(f"Building {x_cfg.stem} XCursor...")
|
||||
print(f"Building '{x_cfg.stem}' XCursor...")
|
||||
XCursor.create(x_cfg, x_out_dir)
|
||||
|
||||
if item.get("win_key"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue