Individual build added

This commit is contained in:
ful1e5 2021-02-24 19:16:21 +05:30
parent b533b221df
commit 8b7f12db3e
2 changed files with 17 additions and 21 deletions

View file

@ -54,8 +54,6 @@ def get_config(bitmaps_dir, **kwargs) -> Dict[str, Any]:
for size in raw_x_sizes: for size in raw_x_sizes:
x_sizes.append(to_tuple(size)) x_sizes.append(to_tuple(size))
png_provider = PNGProvider(bitmaps_dir)
config: Dict[str, Any] = {} config: Dict[str, Any] = {}
for key, item in X_CURSORS_CFG.items(): for key, item in X_CURSORS_CFG.items():
@ -64,7 +62,7 @@ def get_config(bitmaps_dir, **kwargs) -> Dict[str, Any]:
hotspot: Tuple[int, int] = (x_hot, y_hot) hotspot: Tuple[int, int] = (x_hot, y_hot)
delay: int = int(item.get("delay", X_DELAY)) delay: int = int(item.get("delay", X_DELAY))
pngs = png_provider.get(key) pngs = PNGProvider(bitmaps_dir).get(key)
if not pngs: if not pngs:
raise FileNotFoundError(f"{key} not found in {bitmaps_dir}") raise FileNotFoundError(f"{key} not found in {bitmaps_dir}")

View file

@ -95,7 +95,7 @@ parser.add_argument(
args = parser.parse_args() args = parser.parse_args()
bitmaps_dir = Path(args.png_dir).absolute() bitmaps_dir = Path(args.png_dir).absolute()
name = bitmaps_dir.stem
comments = { comments = {
"Bibata-Modern-Classic": "Dark & Rounded-edge Bibata", "Bibata-Modern-Classic": "Dark & Rounded-edge Bibata",
"Bibata-Original-Classic": "Dark & Sharp-edge Bibata", "Bibata-Original-Classic": "Dark & Sharp-edge Bibata",
@ -105,14 +105,12 @@ comments = {
"Bibata-Original-Ice": "Light & Sharp-edge Bibata", "Bibata-Original-Ice": "Light & Sharp-edge Bibata",
} }
for theme in bitmaps_dir.iterdir():
name = theme.name
x_out_dir = Path(args.out_dir) / name x_out_dir = Path(args.out_dir) / name
win_out_dir = Path(args.out_dir) / f"{name}-Windows" win_out_dir = Path(args.out_dir) / f"{name}-Windows"
config = get_config( config = get_config(
theme.absolute(), bitmaps_dir,
x_sizes=args.xsizes, x_sizes=args.xsizes,
win_canvas_size=args.win_canvas_size, win_canvas_size=args.win_canvas_size,
win_size=args.win_size, win_size=args.win_size,