REMOVE SEPARATOR, added extra files anticipation for later

This commit is contained in:
2026-04-20 00:00:44 +02:00
parent 1eaf3b06d5
commit a7a052c7af
9 changed files with 32 additions and 14 deletions
Generated
+1 -1
View File
@@ -172,7 +172,7 @@ dependencies = [
[[package]] [[package]]
name = "anishio" name = "anishio"
version = "0.1.0" version = "0.0.3"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"directories", "directories",
+2 -2
View File
@@ -1,7 +1,7 @@
[package] [package]
name = "anishio" name = "anishio"
author = ["inorishio"] authors = ["inorishio"]
version = "0.1.0" version = "0.0.3"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
+15 -1
View File
@@ -1,3 +1,17 @@
# anishio # anishio
A redesign of the TUI ani-cli as a GUI Rust app cross-platform compatible 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
+13 -9
View File
@@ -4,22 +4,26 @@ use eframe::egui;
pub struct AniShio {} pub struct AniShio {}
impl 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() Self::default()
} }
} }
impl eframe::App for AniShio { impl eframe::App for AniShio {
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) { fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
egui::CentralPanel::default() egui::Panel::left("sidebar")
.frame(egui::Frame::NONE.fill(egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80))) .resizable(false)
.show_inside(ui, |ui| { .show_separator_line(false)
ui.heading( .show_inside(ui, |ui| ui.label(egui::RichText::new("AniShio").size(28.0)));
egui::RichText::new("AniShio") egui::CentralPanel::default().show_inside(ui, |ui| {
.color(egui::Color32::BLACK) ui.group(|ui| {
.size(28.0), ui.label("Title name");
)
}); });
});
} }
fn clear_color(&self, _visuals: &egui::Visuals) -> [f32; 4] { fn clear_color(&self, _visuals: &egui::Visuals) -> [f32; 4] {
egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80).to_normalized_gamma_f32() egui::Color32::from_rgba_unmultiplied(163, 136, 219, 80).to_normalized_gamma_f32()
View File
+1 -1
View File
@@ -7,7 +7,7 @@ fn main() -> eframe::Result {
let mut window = eframe::NativeOptions::default(); let mut window = eframe::NativeOptions::default();
window.viewport = egui::ViewportBuilder::default() window.viewport = egui::ViewportBuilder::default()
.with_title("AniShio") .with_title("AniShio")
.with_app_id("AniShioID") .with_app_id("anishio")
.with_inner_size([400.0, 300.0]) .with_inner_size([400.0, 300.0])
.with_min_inner_size([400.0, 300.0]) .with_min_inner_size([400.0, 300.0])
.with_resizable(true) .with_resizable(true)
View File
View File
View File