feat: change src layout and write license infos

This commit is contained in:
2026-09-08 22:13:59 +08:00
parent e0d6aa63e6
commit 36adf8029a
9 changed files with 87 additions and 27 deletions
@@ -20,7 +20,7 @@ def register(ctx: AuroraContext) -> None:
ctx.register(
"nostd/application/org.sarasachipworkshop.picture",
(
SvgSource("app", "sarasacw-picture", "app-frame.svg"),
SvgSource("apps", "sarasacw-picture-frame.svg"),
TempArtSource("image-jpeg.png"),
NewArtSource(),
FdArtSink(FdContext.Applications, "org.sarasachipworkshop.picture"),
@@ -32,7 +32,7 @@ def register(ctx: AuroraContext) -> None:
ctx.register(
"nostd/application/notepad",
(
BlenderSource("app", "notepad.blend"),
BlenderSource("apps", "notepad.blend"),
TempArtSink("notepad.png"),
WinArtSink(WinCategory.Application, "notepad"),
),
@@ -13,19 +13,11 @@ from ..assemblicon.lowlevel.artproc import (
def register(ctx: AuroraContext) -> None:
ctx.register(
"component/image-base",
(
SvgSource("component", "image-base.svg"),
TempArtSink("component", "image-base.png"),
),
build_image_base_icon,
)
ctx.register(
"nostd/mimetype/image-jpeg",
(
TempArtSource("component", "image-base.png"),
BitmapSource("ext", "bitmap", "Niinsaare_järv.jpg"),
BitmapSource("bitmap", "Niinsaare_järv.jpg"),
TempArtSink("image-jpeg.png"),
FdArtSink(FdContext.MimeTypes, "image-jpeg"),
WinArtSink(WinCategory.Extension, "jpg"),
@@ -37,13 +29,6 @@ def register(ctx: AuroraContext) -> None:
IMAGE_INNER_RECT = Rectangle(Point(20 * 4, 52 * 4), Point(236 * 4, 204 * 4))
def build_image_base_icon(
env: AuroraEnvironment, src: SvgSource, sink: TempArtSink
) -> None:
src.pull_to_temp(env, sink)
def build_image_jpeg_icon(
env: AuroraEnvironment,
base_src: TempArtSource,
@@ -11,9 +11,9 @@ def register(ctx: AuroraContext) -> None:
ctx.register(
"std/action/go-[previous|down|next|up]",
(
SvgSource("component", "go-base.svg"),
SvgSource("component", "go-inner-shining.svg"),
SvgSource("component", "go-inner.svg"),
SvgSource("go-base.svg"),
SvgSource("go-inner-shining.svg"),
SvgSource("go-inner.svg"),
FdArtSink(FdContext.Actions, "go-previous"),
FdArtSink(FdContext.Actions, "go-down"),
FdArtSink(FdContext.Actions, "go-next"),
@@ -18,6 +18,14 @@ def register(ctx: AuroraContext) -> None:
),
build_generic_background,
)
ctx.register(
"component/image-base",
(
SvgSource("component", "image-base.svg"),
TempArtSink("component", "image-base.png"),
),
build_image_base_icon,
)
ctx.register(
"component/triangles",
(
@@ -59,6 +67,12 @@ def build_generic_background(
src.pull_to_temp(env, sink)
def build_image_base_icon(
env: AuroraEnvironment, src: SvgSource, sink: TempArtSink
) -> None:
src.pull_to_temp(env, sink)
def build_triangle_icons(
env: AuroraEnvironment,
tri_src: SvgSource,