fmt
This commit is contained in:
parent
bc0377c499
commit
d1bcb4f9b4
|
@ -1,4 +1,4 @@
|
||||||
use crate::{Filename, Layout, theme::*};
|
use crate::{theme::*, Filename, Layout};
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ops::Not;
|
use std::ops::Not;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{platform, script_bridge, Filename, Layout, theme::*};
|
use crate::{platform, script_bridge, theme::*, Filename, Layout};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use zoon::*;
|
use zoon::*;
|
||||||
|
|
||||||
|
@ -85,8 +85,7 @@ impl HeaderPanel {
|
||||||
Label::new()
|
Label::new()
|
||||||
.s(Padding::new().x(20).y(10))
|
.s(Padding::new().x(20).y(10))
|
||||||
.s(Background::new().color_signal(
|
.s(Background::new().color_signal(
|
||||||
hovered_signal
|
hovered_signal.map_bool(|| COLOR_MEDIUM_SLATE_BLUE, || COLOR_SLATE_BLUE),
|
||||||
.map_bool(|| COLOR_MEDIUM_SLATE_BLUE, || COLOR_SLATE_BLUE),
|
|
||||||
))
|
))
|
||||||
.s(Align::new().left())
|
.s(Align::new().left())
|
||||||
.s(RoundedCorners::all(15))
|
.s(RoundedCorners::all(15))
|
||||||
|
@ -226,9 +225,7 @@ impl HeaderPanel {
|
||||||
.attr("spellcheck", "false")
|
.attr("spellcheck", "false")
|
||||||
.style("resize", "vertical")
|
.style("resize", "vertical")
|
||||||
})
|
})
|
||||||
.placeholder(
|
.placeholder(Placeholder::new("FW.say_hello()").s(Font::new().color(COLOR_LIGHT_BLUE)))
|
||||||
Placeholder::new("FW.say_hello()").s(Font::new().color(COLOR_LIGHT_BLUE)),
|
|
||||||
)
|
|
||||||
.label_hidden("command editor panel")
|
.label_hidden("command editor panel")
|
||||||
.text_signal(script_signal)
|
.text_signal(script_signal)
|
||||||
.on_change(clone!((script, command_result) move |text| {
|
.on_change(clone!((script, command_result) move |text| {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{platform, script_bridge, Filename, theme::*};
|
use crate::{platform, script_bridge, theme::*, Filename};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use wellen::GetItem;
|
use wellen::GetItem;
|
||||||
use zoon::*;
|
use zoon::*;
|
||||||
|
@ -122,8 +122,7 @@ impl WaveformPanel {
|
||||||
Label::new()
|
Label::new()
|
||||||
.s(Padding::new().x(20).y(10))
|
.s(Padding::new().x(20).y(10))
|
||||||
.s(Background::new().color_signal(
|
.s(Background::new().color_signal(
|
||||||
hovered_signal
|
hovered_signal.map_bool(|| COLOR_MEDIUM_SLATE_BLUE, || COLOR_SLATE_BLUE),
|
||||||
.map_bool(|| COLOR_MEDIUM_SLATE_BLUE, || COLOR_SLATE_BLUE),
|
|
||||||
))
|
))
|
||||||
.s(Align::new().left())
|
.s(Align::new().left())
|
||||||
.s(RoundedCorners::all(15))
|
.s(RoundedCorners::all(15))
|
||||||
|
|
Loading…
Reference in a new issue