Add Docker whale icon for docker images

Docker images now display with distinctive 🐋 whale icon in blue (highlight color) instead of status icons. This provides clear visual identification that these are docker images while not implying operational status.
This commit is contained in:
Christoffer Martinsson 2025-11-27 18:16:33 +01:00
parent 1be55f765d
commit 92c3ee3f2a
2 changed files with 10 additions and 5 deletions

6
Cargo.lock generated
View File

@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
[[package]]
name = "cm-dashboard"
version = "0.1.189"
version = "0.1.190"
dependencies = [
"anyhow",
"chrono",
@ -301,7 +301,7 @@ dependencies = [
[[package]]
name = "cm-dashboard-agent"
version = "0.1.189"
version = "0.1.190"
dependencies = [
"anyhow",
"async-trait",
@ -324,7 +324,7 @@ dependencies = [
[[package]]
name = "cm-dashboard-shared"
version = "0.1.189"
version = "0.1.190"
dependencies = [
"chrono",
"serde",

View File

@ -180,7 +180,7 @@ impl ServicesWidget {
};
let tree_symbol = if is_last { "└─" } else { "├─" };
// Docker images don't have status icons
// Docker images use docker whale icon
if info.service_type == "image" {
vec![
// Indentation and tree prefix
@ -188,7 +188,12 @@ impl ServicesWidget {
format!(" {} ", tree_symbol),
Typography::tree(),
),
// Service name (no icon for images)
// Docker whale icon
ratatui::text::Span::styled(
"🐋 ".to_string(),
Style::default().fg(Theme::highlight()).bg(Theme::background()),
),
// Service name
ratatui::text::Span::styled(
format!("{:<18} ", short_name),
Style::default()