diff --git a/Cargo.lock b/Cargo.lock index ff4cfe8..00ffdf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -172,7 +172,7 @@ dependencies = [ [[package]] name = "anishio" -version = "0.1.0" +version = "0.0.3" dependencies = [ "anyhow", "directories", diff --git a/Cargo.toml b/Cargo.toml index 6ea1d39..c37095d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "anishio" -author = ["inorishio"] -version = "0.1.0" +authors = ["inorishio"] +version = "0.0.3" edition = "2024" [dependencies] diff --git a/README.md b/README.md index 2ef03b5..e170fd8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # anishio -A redesign of the TUI ani-cli as a GUI Rust app cross-platform compatible \ No newline at end of file +A redesign of the TUI ani-cli as a GUI Rust app cross-platform compatible + +# Status + +What does the code have? + +- Window: + - Minimum width/height + - Start width/height +- Background: + - Color + - Transparency or Opacity +- Text: + - Color + - Size diff --git a/src/app.rs b/src/app.rs index 427fd00..9073580 100644 --- a/src/app.rs +++ b/src/app.rs @@ -4,22 +4,26 @@ use eframe::egui; pub struct AniShio {} impl AniShio { - pub fn new(_cc: &eframe::CreationContext<'_>) -> Self { + pub fn new(cc: &eframe::CreationContext<'_>) -> Self { + let mut visuals = egui::Visuals::dark(); // or ::light() + visuals.panel_fill = egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80); + visuals.override_text_color = Some(egui::Color32::BLACK); + cc.egui_ctx.set_visuals(visuals); Self::default() } } impl eframe::App for AniShio { fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) { - egui::CentralPanel::default() - .frame(egui::Frame::NONE.fill(egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80))) - .show_inside(ui, |ui| { - ui.heading( - egui::RichText::new("AniShio") - .color(egui::Color32::BLACK) - .size(28.0), - ) + egui::Panel::left("sidebar") + .resizable(false) + .show_separator_line(false) + .show_inside(ui, |ui| ui.label(egui::RichText::new("AniShio").size(28.0))); + egui::CentralPanel::default().show_inside(ui, |ui| { + ui.group(|ui| { + ui.label("Title name"); }); + }); } fn clear_color(&self, _visuals: &egui::Visuals) -> [f32; 4] { egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80).to_normalized_gamma_f32() diff --git a/src/download.rs b/src/download.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/main.rs b/src/main.rs index b8019e7..47b66e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ fn main() -> eframe::Result { let mut window = eframe::NativeOptions::default(); window.viewport = egui::ViewportBuilder::default() .with_title("AniShio") - .with_app_id("AniShioID") + .with_app_id("anishio") .with_inner_size([400.0, 300.0]) .with_min_inner_size([400.0, 300.0]) .with_resizable(true) diff --git a/src/players.rs b/src/players.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/views/mod.rs b/src/views/mod.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/views/player.rs b/src/views/player.rs new file mode 100644 index 0000000..e69de29