refactor(ui): cleaner setup wizard and dashboard card visuals

- setup.rs: remove raw prefix/expected path labels from install view;
  hide URL input when official installer is pre-filled (show green tick
  instead), revealing an override field only when needed
- gui.rs: drop raw exe path from scan result rows; add per-state colour
  to status indicator (green=running, blue=installed, grey=not installed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-04-18 23:19:30 -07:00
parent c4587b0729
commit 2e51b2e788
2 changed files with 40 additions and 30 deletions
+12 -11
View File
@@ -775,13 +775,17 @@ fn launcher_card<'a>(
scan_results: Option<&'a Vec<(String, String)>>,
scan_busy: bool,
) -> Element<'a, Message> {
let status_label = if running {
"● Running"
let status_color = if running {
Color::from_rgb(0.4, 0.9, 0.4)
} else if installed {
"○ Installed"
Color::from_rgb(0.55, 0.75, 1.0)
} else {
"· Not installed"
Color::from_rgb(0.5, 0.5, 0.5)
};
let status_str = if running { "● Running" } else if installed { "○ Installed" } else { "· Not installed" };
let status_el: Element<Message> = text(status_str).size(12).style(move |_: &Theme| text::Style {
color: Some(status_color),
}).into();
let action: Element<Message> = {
let n = l.name.clone();
@@ -816,8 +820,8 @@ fn launcher_card<'a>(
let header = row![
text(&l.display).size(15),
text(" ").size(12),
text(status_label).size(12),
text(" ").size(12),
status_el,
version_badge,
iced::widget::horizontal_space(),
action,
@@ -867,11 +871,8 @@ fn launcher_card<'a>(
rows.push(
row![
text(" ").size(12),
text(format!("{display}")).size(12).style(|_: &Theme| text::Style {
color: Some(Color::from_rgb(0.65, 0.65, 0.65)),
}),
text(format!(" {exe}")).size(10).style(|_: &Theme| text::Style {
color: Some(Color::from_rgb(0.45, 0.45, 0.45)),
text(display).size(12).style(|_: &Theme| text::Style {
color: Some(Color::from_rgb(0.75, 0.75, 0.75)),
}),
iced::widget::horizontal_space(),
add_btn,