diff options
author | 2022-03-17 01:02:31 -0300 | |
---|---|---|
committer | 2022-04-26 18:58:54 -0300 | |
commit | 56065fe95968459c9b507715e87971c4c13ce2d5 (patch) | |
tree | 3a5096cb759a8ecde3ed1b03850a2005c51eeb50 /examples/system_information | |
parent | 75281d2b8574ffdab6573bd37b8ac501b59f046d (diff) | |
download | iced-56065fe95968459c9b507715e87971c4c13ce2d5.tar.gz iced-56065fe95968459c9b507715e87971c4c13ce2d5.tar.bz2 iced-56065fe95968459c9b507715e87971c4c13ce2d5.zip |
Add graphics information to example
Diffstat (limited to 'examples/system_information')
-rw-r--r-- | examples/system_information/src/main.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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() } |