]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/slides/slides.factor
factor: trim using lists
[factor.git] / extra / slides / slides.factor
index 89129667e52423e9ba73e4c7ac7a2b5595773067..e11c208cfb88fd7649eb85077c5465d72e333488 100644 (file)
@@ -1,32 +1,24 @@
 ! Copyright (C) 2007, 2010 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays colors fonts fry help.markup help.stylesheet
-io.styles kernel literals math math.ranges models namespaces parser
-sequences system ui ui.gadgets ui.gadgets.books ui.gadgets.panes
-ui.gestures ui.pens.gradient ui.pens.solid ;
+USING: accessors arrays colors fonts help.markup help.stylesheet
+io.styles kernel literals math models namespaces parser ranges
+sequences ui ui.gadgets ui.gadgets.books ui.gadgets.panes
+ui.gestures ui.pens.gradient ;
 IN: slides
 
 CONSTANT: stylesheet
     H{
-        { default-span-style
+        { default-style
             H{
                 { font-name $ default-sans-serif-font-name }
                 { font-size $[ default-font-size 3 * ] }
-            }
-        }
-        { default-block-style
-            H{
                 { wrap-margin $[ default-font-size 92 * ] }
             }
         }
-        { code-char-style
+        { code-style
             H{
                 { font-name $ default-monospace-font-name }
                 { font-size $[ default-font-size 3 * ] }
-            }
-        }
-        { code-style
-            H{
                 { page-color T{ rgba f 0.4 0.4 0.4 0.3 } }
             }
         }
@@ -99,7 +91,7 @@ TUPLE: slides < book ;
 : prev-page ( book -- ) -1 change-page ;
 
 : strip-tease ( data -- seq )
-    first3 2 over length [a,b] [ head 3array ] with with with map ;
+    first3 2 over length [a..b] [ head 3array ] with with with map ;
 
 SYNTAX: STRIP-TEASE:
     parse-definition strip-tease append! ;