REMOVE SEPARATOR, added extra files anticipation for later
This commit is contained in:
Generated
+1
-1
@@ -172,7 +172,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "anishio"
|
||||
version = "0.1.0"
|
||||
version = "0.0.3"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"directories",
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "anishio"
|
||||
author = ["inorishio"]
|
||||
version = "0.1.0"
|
||||
authors = ["inorishio"]
|
||||
version = "0.0.3"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
# anishio
|
||||
|
||||
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
@@ -4,21 +4,25 @@ 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] {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user