first tabutask

This commit is contained in:
rendo 2026-02-13 16:50:37 +05:00
commit 00aa0efab9
6 changed files with 4189 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

4130
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

7
Cargo.toml Normal file
View file

@ -0,0 +1,7 @@
[package]
name = "tabutask"
version = "0.1.0"
edition = "2024"
[dependencies]
iced = "0.14.0"

5
src/date.rs Normal file
View file

@ -0,0 +1,5 @@
pub struct Date {
year: u16,
month: u8,
day: u8,
}

25
src/main.rs Normal file
View file

@ -0,0 +1,25 @@
use iced::{Element, widget::text};
pub mod date;
pub mod task;
pub fn main() -> iced::Result {
iced::application(Tabutask::default, Tabutask::update, Tabutask::view)
.title(Tabutask::title)
.run()
}
#[derive(Default)]
pub struct Tabutask;
pub enum Message {}
impl Tabutask {
pub fn title(&self) -> String {
"Tabutask".to_string()
}
pub fn update(&mut self, message: Message) {}
pub fn view(&self) -> Element<'_, Message> {
text!("Test").into()
}
}

21
src/task.rs Normal file
View file

@ -0,0 +1,21 @@
use crate::date::Date;
pub struct Task {
date: Date,
description: String,
size: TaskSize,
priority: Option<Priority>,
}
pub enum TaskSize {
Small,
Medium,
Big,
Large,
}
pub enum Priority {
Low,
High,
Special,
}