Closed zhangzqs closed 11 months ago
当前确实只能将发布包下载后复制到自己的slint项目的ui文件夹中使用,但预计在0.3+版本中构建类似于vite的包管理器方式直接进行使用或直接借助git clone的方式快速构建项目 内置Icon图标由IconPark支持,你可以直接使用IconPark的http形式使用图标(https://iconpark.oceanengine.com/home)
你可以配置setting.json中的Slint:Library Path方式设置路径映射
"slint.libraryPaths": {
"SurrealismUI":"E:\\Rust\\try\\surrealism-ui\\index.slint"
}
B站:https://www.bilibili.com/video/BV19w411T7kG/?spm_id_from=333.999.0.0
A package manager for creating Slint with SurrealismUI
create a project by selecting configuration items
# use default strategy to create a new project
> slimk create hello
# create a new project with a template
> slimk create hello --template slimk
> slimk create hello -t slimk
this command creates a new project but use the default strategy with no template , you will get an empty slint project
you do not need to name the project , this way will use your root directory
# no name
> slimk init
# with name
> slimk init hello
# native
> slimk list -n
# remote
> slimk list -r
# both
> slimk list -a
> slimk config --get update
> slimk config --get create
Due to the lack of an independent server, I have designed it to rely on Github. Therefore, if you are unable to connect well to Github, the initialization of SLNs is likely to display network errors
Slimk : init conf successfully!
Slimk : Downloading | Updating default template...
thread 'main' panicked at 'download failed, please check your network settings!', src\lib\core.rs:229:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
{
"natives": {
"slimk-binary": {
"id": 1701616493916,
"url": "E:\\slimk\\repo\\slimk-binary",
"note": "this is a native default template use Slint with SurrealismUI"
}
}
}