]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/listener/listener.factor
ui.theme: updates to color scheme.
[factor.git] / basis / listener / listener.factor
index 067cf0636eb9c43b85b286297be9822beca7e953..5099c5ab905299966e028a2132c7c4a2a3edf44e 100644 (file)
@@ -4,7 +4,7 @@ USING: accessors colors colors.constants
 combinators.short-circuit compiler.units continuations debugger
 fry io io.styles kernel lexer literals locals math math.parser
 namespaces parser parser.notes prettyprint sequences sets
-source-files.errors system ui.gadgets.theme vocabs vocabs.loader
+source-files.errors system vocabs vocabs.loader
 vocabs.parser ;
 IN: listener
 
@@ -15,11 +15,14 @@ GENERIC# prompt. 1 ( stream prompt -- )
     manifest get current-vocab>> [ name>> "IN: " prepend ] [ "" ] if*
     auto-use? get [ " auto-use" append ] when ;
 
+SYMBOL: prompt-style
+H{
+    { background T{ rgba f 1 0.7 0.7 1 } }
+    { foreground COLOR: black }
+} prompt-style set-global
+
 M: object prompt.
-    nip H{
-        { background $ prompt-background-color }
-        { foreground $ text-color }
-    } format bl flush ;
+    nip prompt-style get-global format bl flush ;
 
 : parse-lines-interactive ( lines -- quot/f )
     [ parse-lines ] with-compilation-unit ;