dsl,input,output,proc,tui: fix warnings

This commit is contained in:
🪞👃🪞 2025-06-12 19:29:12 +03:00
parent 08593571fa
commit 21832453d9
13 changed files with 19 additions and 20 deletions

View file

@ -1 +1 @@
use crate::{*, Color::*};
//use crate::{*, Color::*};

View file

@ -3,7 +3,7 @@ use crate::*;
pub struct FieldH<T, U>(pub ItemTheme, pub T, pub U);
impl<T: Content<TuiOut>, U: Content<TuiOut>> Content<TuiOut> for FieldH<T, U> {
fn content (&self) -> impl Render<TuiOut> {
let Self(ItemTheme { darkest, dark, lighter, lightest, .. }, title, value) = self;
let Self(ItemTheme { darkest, dark, lightest, .. }, title, value) = self;
row!(
Tui::fg_bg(dark.rgb, darkest.rgb, ""),
Tui::fg_bg(lightest.rgb, dark.rgb, title),
@ -16,7 +16,7 @@ impl<T: Content<TuiOut>, U: Content<TuiOut>> Content<TuiOut> for FieldH<T, U> {
pub struct FieldV<T, U>(pub ItemTheme, pub T, pub U);
impl<T: Content<TuiOut>, U: Content<TuiOut>> Content<TuiOut> for FieldV<T, U> {
fn content (&self) -> impl Render<TuiOut> {
let Self(ItemTheme { darkest, dark, lighter, lightest, .. }, title, value) = self;
let Self(ItemTheme { darkest, dark, lightest, .. }, title, value) = self;
Bsp::n(
Align::w(Tui::bg(darkest.rgb, Tui::fg(lightest.rgb, Tui::bold(true, value)))),
Fill::x(Align::w(row!(