From 56065fe95968459c9b507715e87971c4c13ce2d5 Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 17 Mar 2022 01:02:31 -0300 Subject: Add graphics information to example --- examples/system_information/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'examples/system_information/src/main.rs') diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs index 95f57ac0..eac76212 100644 --- a/examples/system_information/src/main.rs +++ b/examples/system_information/src/main.rs @@ -102,6 +102,16 @@ impl Application for Example { ) )); + let graphics_adapter = Text::new(format!( + "Graphics adapter: {}", + information.graphics_adapter + )); + + let graphics_backend = Text::new(format!( + "Graphics backend: {}", + information.graphics_backend + )); + Column::with_children(vec![ system_name.into(), system_kernel.into(), @@ -109,6 +119,8 @@ impl Application for Example { cpu_brand.into(), cpu_cores.into(), memory_total.into(), + graphics_adapter.into(), + graphics_backend.into(), ]) .into() } -- cgit