jui-0.1.12 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"; |
| Collapse | import { Collapse } from "@jui/collapse/collapse.slint"; |
| Confirm | import { Confirm } from "@jui/message/confirm.slint"; |
| Tag | import { Tag } from "@jui/message/tag.slint"; |
| Mask | import { Mask } from "@jui/message/mask.slint"; |
| DrawerCommon | import { DrawerCommon } from "@jui/drawer/drawer_common.slint"; |
| Drawer | import { Drawer } from "@jui/drawer/drawer.slint"; |
| DrawerTop | import { DrawerTop } from "@jui/drawer/drawer_top.slint"; |
| DrawerLeft | import { DrawerLeft } from "@jui/drawer/drawer_left.slint"; |
| DrawerRight | import { DrawerRight } from "@jui/drawer/drawer_right.slint"; |
| DrawerBottom | import { DrawerBottom } from "@jui/drawer/drawer_bottom.slint"; |
Supported data
| nane | import example |
|---|---|
| Position | import { Position } from "@jui/data/position.slint"; |
SurrealismUI example
features enable surrealism_ui, Cargo.toml file like example:
[]
= "1.4.1"
[]
= { = "0.1.12", = ["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.4.1"
[]
= "0.1.12"
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