]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/gadgets/theme/theme.factor
ui.theme: updates to color scheme.
[factor.git] / basis / ui / gadgets / theme / theme.factor
index 1a764b9828358e3ec10e69c0f6bd2c1449e9ad0f..bea1fad24b79670333f1b7e63237c1b217926c14 100644 (file)
@@ -1,7 +1,10 @@
 ! Copyright (C) 2009, 2010 Slava Pestov, Joe Groff.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io.pathnames sequences ui.images ;
+USING: accessors io.pathnames sequences ui.images ui.theme ;
 IN: ui.gadgets.theme
 
 : theme-image ( name -- image-name )
     "vocab:ui/gadgets/theme/" prepend-path ".tiff" append <image-name> ;
+
+: theme-font-colors ( gadget -- gadget )
+    [ content-background >>background text-color >>foreground ] change-font ;