mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 12:17:19 +02:00
26 lines
546 B
Rust
26 lines
546 B
Rust
use std::cmp;
|
|
|
|
use tui::{
|
|
buffer::Buffer,
|
|
layout::{Alignment, Rect},
|
|
style::{Modifier, Style},
|
|
text::{Span, Spans, Text},
|
|
widgets::{Block, BorderType, Borders, Clear, Paragraph, StatefulWidget, Widget},
|
|
};
|
|
|
|
#[derive(Debug, Clone, Default)]
|
|
pub struct Context {
|
|
pub name: String,
|
|
pub description: String,
|
|
pub active: String,
|
|
}
|
|
|
|
impl Context {
|
|
pub fn new(name: String, description: String, active: String) -> Self {
|
|
Self {
|
|
name,
|
|
description,
|
|
active,
|
|
}
|
|
}
|
|
}
|