jui-0.1.5 has been yanked.
jui is a ui set based on slint
SurrealismUI is already supported
more function coming soon
Supported components
| name | import example |
|---|---|
| Button | import { Button } from "@jui/button.slint"; |
| InputBase | import { InputBase } from "@jui/input/input_base.slint"; |
| Input | import { Input } from "@jui/input/input.slint"; |
| UnderlineInput | import { UnderlineInput } from "@jui/input/underline_input.slint"; |
| CheckBox | import { CheckBox } from "@jui/checkbox.slint"; |
| SpaceEnter | import { SpaceEnter } from "@jui/event/space_enter.slint"; |
| TouchSpaceEnter | import { TouchSpaceEnter } from "@jui/event/touch_space_enter.slint"; |
SurrealismUI example
features enable surrealism_ui, Cargo.toml file like example:
[]
= "1.3.2"
[]
= { = "0.1.5", = ["surrealism_ui"] }
use SurrealismUI in you slint file:
// support all component
// import { SButton } from "@surrealism_all";
// support single component
import { SButton } from "@surrealism/button/index.slint";
export component App inherits Window {
SButton {}
}
more SurrealismUI see: SurrealismUI wiki
if you want use alias import SurrealismUI, example for this build.rs:
use SurrealismUI;
Jui Button example
Cargo.toml file :
[]
= "1.3.2"
[]
= "0.1.5"
main.rs file :
include_modules!;
build.rs file :
view/main.slint file :
import { Button } from "@jui/button.slint";
export component App inherits Window {
min-width: 300px;
min-height: 300px;
Rectangle {
Button {
color: red;
}
}
}
More example
coming soon