Skip to content

Commit

Permalink
fix csv example
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem V. Ageev committed Jul 19, 2024
1 parent e95dbf7 commit a9df499
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
7 changes: 1 addition & 6 deletions demos/cairo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ mod model;
use {
cairo::Context,
flemish::{
app,
frame::Frame,
color_themes,
enums::Color,
prelude::*,
OnEvent, Sandbox, Settings,
app, color_themes, enums::Color, frame::Frame, prelude::*, OnEvent, Sandbox, Settings,
},
model::Model,
};
Expand Down
9 changes: 5 additions & 4 deletions demos/cairo_shadow_button/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use {
flemish::{
app,
button::Button,
color_themes,
draw,
enums::{Event, Align, Color, ColorDepth, Font, Shortcut},
color_themes, draw,
enums::{Align, Color, ColorDepth, Event, Font, Shortcut},
frame::Frame,
group::Flex,
image::RgbImage,
Expand Down Expand Up @@ -60,7 +59,9 @@ impl Sandbox for Model {
crate::cairobutton()
.with_label("@#<")
.on_event(move |_| Message::Dec);
crate::frame().with_label(&self.value()).handle(crate::popup);
crate::frame()
.with_label(&self.value())
.handle(crate::popup);
crate::cairobutton()
.with_label("@#>")
.on_event(move |_| Message::Inc);
Expand Down
2 changes: 1 addition & 1 deletion demos/calculator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl Sandbox for Model {
match message {
Message::Quit => {
let file = app::GlobalState::<String>::get().with(move |file| file.clone());
fs::write(file, rmp_serde::to_vec(&self).unwrap()).unwrap();
std::fs::write(file, rmp_serde::to_vec(&self).unwrap()).unwrap();
app::quit();
}
Message::Theme => self.theme = !self.theme,
Expand Down
2 changes: 2 additions & 0 deletions demos/dialect/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ fn info() {
written using
<a href="https://fltk-rs.github.io/fltk-rs">FLTK-RS</a>
</p>"#;
let (r, g, b) = Color::from_hex(0x2aa198).to_rgb();
app::set_color(Color::Blue, r, g, b);
let mut dialog = HelpDialog::default();
dialog.set_value(INFO);
dialog.set_text_size(16);
Expand Down
2 changes: 1 addition & 1 deletion demos/resters/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
frame::Frame,
group::Flex,
menu::Choice,
misc::{InputChoice,Progress},
misc::{InputChoice, Progress},
prelude::*,
text::{StyleTableEntry, TextBuffer, TextDisplay, WrapMode},
OnEvent, Sandbox, Settings,
Expand Down

0 comments on commit a9df499

Please sign in to comment.