moly_kit/
widgets.rs

1//! Widgets provided by this crate. You can import this in your DSL.
2//!
3//! Note: Some widgets may depend on certain feature flags.
4
5use makepad_widgets::*;
6
7mod attachment_list;
8mod attachment_view;
9mod attachment_viewer_modal;
10mod avatar;
11mod chat_lines;
12mod citation;
13pub(crate) mod citation_list;
14mod image_view;
15mod message_loading;
16mod message_markdown;
17mod message_thinking_block;
18mod slot;
19mod standard_message_content;
20mod theme_moly_kit_light;
21
22pub mod messages;
23pub use messages::*;
24
25pub mod prompt_input;
26pub use prompt_input::*;
27
28pub mod moly_modal;
29pub use moly_modal::*;
30
31pub mod realtime;
32pub use realtime::*;
33
34cfg_if::cfg_if! {
35    if #[cfg(any(feature = "async-rt", feature = "async-web"))] {
36        pub mod chat;
37        pub use chat::*;
38    }
39}
40
41pub fn live_design(cx: &mut makepad_widgets::Cx) {
42    theme_moly_kit_light::live_design(cx);
43    // Link the MolyKit theme to the MolyKit-specific theme.
44    // Currently we only have a light theme which we use as default.
45    cx.link(live_id!(moly_kit_theme), live_id!(theme_moly_kit_light));
46
47    image_view::live_design(cx);
48    attachment_view::live_design(cx);
49    moly_modal::live_design(cx);
50    attachment_viewer_modal::live_design(cx);
51    attachment_list::live_design(cx);
52    citation::live_design(cx);
53    citation_list::live_design(cx);
54    makepad_code_editor::live_design(cx);
55    message_markdown::live_design(cx);
56    message_loading::live_design(cx);
57    avatar::live_design(cx);
58    slot::live_design(cx);
59    standard_message_content::live_design(cx);
60    chat_lines::live_design(cx);
61    crate::deep_inquire::widgets::live_design(cx);
62    messages::live_design(cx);
63    prompt_input::live_design(cx);
64    chat::live_design(cx);
65    realtime::live_design(cx);
66    message_thinking_block::live_design(cx);
67}