From 0cf25d6c003d4d76db87fbe88b7b7263ea2f630f Mon Sep 17 00:00:00 2001 From: Waozi Date: Tue, 29 Sep 2026 21:03:15 -0300 Subject: [PATCH] Import Kryon's theme modules by their module names kryon/system_theme and kryon/theme resolve both in a --project build and in an app's module-path build with --module-path kryon=DIR, so an app that compiles KSS from source without the package map can use it. --- src/system_style.zi | 4 ++-- tests/system_style_behavior.zi | 2 +- ziran.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/system_style.zi b/src/system_style.zi index 2f13c1a..e775183 100644 --- a/src/system_style.zi +++ b/src/system_style.zi @@ -4,8 +4,8 @@ #import "kss_parser" #import "style_pack_classic" #import "style_parse" -#import "kryon/SystemTheme" -#import "kryon/Theme" +#import "kryon/system_theme" +#import "kryon/theme" using KssStatus; diff --git a/tests/system_style_behavior.zi b/tests/system_style_behavior.zi index d408a6c..9425cd2 100644 --- a/tests/system_style_behavior.zi +++ b/tests/system_style_behavior.zi @@ -1,6 +1,6 @@ #import "kryon/drawing_props" #import "system_style" -#import "kryon/SystemTheme" +#import "kryon/system_theme" Sweet :: "@define-color theme_fg_color #C3C7D1;\n@define-color theme_bg_color #161925;\n@define-color theme_base_color #181b28;\n@define-color theme_selected_bg_color #c50ed2;\n@define-color theme_selected_fg_color #fefefe;\n@define-color error_color #e6133e;\n@define-color warning_color #cc5500;\n@define-color success_color #0096b1;\n"; diff --git a/ziran.lock b/ziran.lock index 348e888..48d01aa 100644 --- a/ziran.lock +++ b/ziran.lock @@ -11,20 +11,20 @@ "url": "https://github.com/raysan5/raylib.git" }, { - "commit": "29a8d453158131c25e994c5e628e7ce2d412ef03", + "commit": "2dacc9eb7c2c023c0cc111b2c4deb210afdb4886", "dependencies": {"raylib": "p5a77c9c35110e925"}, - "id": "p63ea47daa6d3e9c3", + "id": "p83be2ed3d78fa9cf", "name": "Kryon", "ref": "master", "url": "https://github.com/kryonlabs/kryon.git" } ], "root": { - "dependencies": {"kryon": "p63ea47daa6d3e9c3"}, + "dependencies": {"kryon": "p83be2ed3d78fa9cf"}, "name": "Kss" }, "toolchain": { - "commit": "51abe2b02d10d3b2f273bf96d7249d25fa0981a9", + "commit": "18d60d0c467b5afb664e257c3bb28a9004e77f1a", "ref": "master", "url": "https://github.com/ziranlang/ziran.git" }