]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/gadgets/status-bar/status-bar.factor
ui.theme: updates to color scheme.
[factor.git] / basis / ui / gadgets / status-bar / status-bar.factor
index db1c80579a72a1c0922d3633b77753e1fa998def..73b763c59f234b6f3d685c90dd1c5081f9d5d532 100644 (file)
@@ -3,12 +3,9 @@
 USING: accessors calendar colors.constants fonts kernel models
 models.arrow models.delay sequences summary ui
 ui.gadgets.borders ui.gadgets.labels ui.gadgets.tracks
-ui.gadgets.worlds ui.pens.solid ui.private ;
+ui.gadgets.worlds ui.pens.solid ui.private ui.theme ;
 IN: ui.gadgets.status-bar
 
-CONSTANT: status-bar-background COLOR: FactorDarkSlateBlue
-CONSTANT: status-bar-foreground COLOR: white
-
 : status-bar-font ( -- font )
     sans-serif-font clone
     status-bar-background >>background
@@ -25,7 +22,9 @@ CONSTANT: status-bar-foreground COLOR: white
 
 : open-status-window ( gadget title/attributes -- )
     ?attributes f <model> >>status <world>
-    dup status>> <status-bar> f track-add
+    dup status>> <status-bar> 
+    { 7 2 } <filled-border> status-bar-background <solid> >>interior
+    f track-add
     open-world-window ;
 
 : show-summary ( object gadget -- )