summaryrefslogtreecommitdiffstats
path: root/examples/list-themes.rs
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2020-07-12 00:34:37 +0200
committerRomain Porte <microjoe@microjoe.org>2020-07-14 10:38:23 +0200
commitfc0ca71193af110d1edd84959f25064490895569 (patch)
tree451b9c3853269e9fb54b2f21def19b4252825317 /examples/list-themes.rs
downloadplymouth-rs-fc0ca71193af110d1edd84959f25064490895569.tar.gz
plymouth-rs-fc0ca71193af110d1edd84959f25064490895569.zip
initial commit
Diffstat (limited to 'examples/list-themes.rs')
-rw-r--r--examples/list-themes.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/list-themes.rs b/examples/list-themes.rs
new file mode 100644
index 0000000..d499cb8
--- /dev/null
+++ b/examples/list-themes.rs
@@ -0,0 +1,5 @@
+use plymouth::Theme;
+
+fn main() {
+ Theme::list().unwrap().for_each(|name| println!("{}: {:?}", name, Theme::from_name(&name)));
+}