]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.theme.switching: adding some docs.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 12 May 2016 01:06:47 +0000 (18:06 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 12 May 2016 01:09:36 +0000 (18:09 -0700)
basis/ui/theme/switching/switching-docs.factor [new file with mode: 0644]

diff --git a/basis/ui/theme/switching/switching-docs.factor b/basis/ui/theme/switching/switching-docs.factor
new file mode 100644 (file)
index 0000000..1fe8d6c
--- /dev/null
@@ -0,0 +1,12 @@
+USING: help.markup help.syntax ui.theme ;
+IN: ui.theme.switching
+
+HELP: switch-theme
+{ $values { "theme" "theme" } }
+{ $description "Switch to a new theme." }
+{ $examples
+    "To switch to a " { $link light-theme } ":"
+    { $code "USING: ui.theme ui.theme.switching ;" "light-theme switch-theme" }
+    "To switch to a " { $link dark-theme } ":"
+    { $code "USING: ui.theme ui.theme.switching ;" "dark-theme switch-theme" }
+} ;