fn render_item(&self, screen: &mut Screen, item: InputDialogItem) {
        let (option, y) = match item {
            InputDialogItem::Ok => ("> OK <", self.y_of_ok()),
            InputDialogItem::Cancel => ("> CANCEL <", self.y_of_cancel()),
        };
        let colors = if item == self.selected {
            self.dialog.selected_colors
        } else {
            self.dialog.unselected_colors
        };

        let style = Style::new().align(1, 2).colors(colors).top_margin(y);
        let string = tstring![option];
        screen.styled_text(&string, style);
    }
/// Renders an item/option of the input dialog.
Renders an item/option of the input dialog.
Renders an item / option of the input dialog .
fn render_item(&self, screen: &mut Screen, item: InputDialogItem) {
        let (option, y) = match item {
            InputDialogItem::Ok => ("> OK <", self.y_of_ok()),
            InputDialogItem::Cancel => ("> CANCEL <", self.y_of_cancel()),
        };
        let colors = if item == self.selected {
            self.dialog.selected_colors
        } else {
            self.dialog.unselected_colors
        };
        let style = Style::new().align(1, 2).colors(colors).top_margin(y);
        let string = tstring![option];
        screen.styled_text(&string, style);
    }
fn render_item ( & self , screen : & mut Screen , item : InputDialogItem ) { let ( option , y ) = match item { InputDialogItem :: Ok => ( " " , self . y_of_ok ( ) ) , InputDialogItem :: Cancel => ( " " , self . y_of_cancel ( ) ) , } ; let colors = if item == self . selected { self . dialog . selected_colors } else { self . dialog . unselected_colors } ; let style = Style :: new ( ) . align ( 1 , 2 ) . colors ( colors ) . top_margin ( y ) ; let string = tstring ! [ option ] ; screen . styled_text ( & string , style ) ; }
Renders an item/option of the input dialog.
Renders an item / option of the input dialog .
&self
screen
&mut Screen
item
InputDialogItem
&self
screen
&mut Screen
item
InputDialogItem