mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
This commit is contained in:
parent
34070de5f7
commit
fd26b12955
18 changed files with 243 additions and 194 deletions
|
|
@ -48,8 +48,10 @@ macro_rules! def_sizes_iter {
|
|||
#[cfg(feature = "vst3")] mod vst3; #[cfg(feature = "vst3")] pub use self::vst3::*;
|
||||
|
||||
pub fn button_2 <'a> (
|
||||
key: impl Content<TuiOut> + 'a, label: impl Content<TuiOut> + 'a, editing: bool,
|
||||
) -> impl Content<TuiOut> + 'a {
|
||||
key: impl Render<TuiOut> + 'a,
|
||||
label: impl Render<TuiOut> + 'a,
|
||||
editing: bool,
|
||||
) -> impl Render<TuiOut> + 'a {
|
||||
let key = Tui::fg_bg(Tui::orange(), Tui::g(0), Bsp::e(
|
||||
Tui::fg(Tui::g(0), "▐"),
|
||||
Bsp::e(key, Tui::fg(Tui::g(96), "▐"))
|
||||
|
|
@ -58,16 +60,12 @@ pub fn button_2 <'a> (
|
|||
Tui::bold(true, Bsp::e(key, label))
|
||||
}
|
||||
|
||||
pub fn button_3 <'a, K, L, V> (
|
||||
key: K,
|
||||
label: L,
|
||||
value: V,
|
||||
pub fn button_3 <'a> (
|
||||
key: impl Render<TuiOut> + 'a,
|
||||
label: impl Render<TuiOut> + 'a,
|
||||
value: impl Render<TuiOut> + 'a,
|
||||
editing: bool,
|
||||
) -> impl Content<TuiOut> + 'a where
|
||||
K: Content<TuiOut> + 'a,
|
||||
L: Content<TuiOut> + 'a,
|
||||
V: Content<TuiOut> + 'a,
|
||||
{
|
||||
) -> impl Render<TuiOut> + 'a {
|
||||
let key = Tui::fg_bg(Tui::orange(), Tui::g(0),
|
||||
Bsp::e(Tui::fg(Tui::g(0), "▐"), Bsp::e(key, Tui::fg(if editing {
|
||||
Tui::g(128)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue