]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.panes: fix tests under dark-theme.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 3 Mar 2020 23:23:18 +0000 (15:23 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 3 Mar 2020 23:23:18 +0000 (15:23 -0800)
basis/ui/gadgets/panes/panes-tests.factor

index 76b292f1ffe4023868e4a36d1c5c4e2d3b1ce6c0..8fb350e424d6e31c45eefcf3acbaee8bb46001f0 100644 (file)
@@ -2,7 +2,7 @@ USING: accessors colors fonts fry help help.markup help.stylesheet
 help.syntax help.topics inspector io io.streams.string io.styles
 kernel literals math models namespaces prettyprint see sequences
 tools.test ui.gadgets ui.gadgets.debug ui.gadgets.panes
-ui.gadgets.panes.private ;
+ui.gadgets.panes.private ui.theme ;
 IN: ui.gadgets.panes.tests
 
 : #children ( -- n ) "pane" get children>> length ;
@@ -132,22 +132,8 @@ ${
     T{ font
        { name $[ default-sans-serif-font-name ] }
        { size $[ default-font-size ] }
-       { foreground
-         T{ rgba
-            { red 0.0 }
-            { green 0.0 }
-            { blue 0.0 }
-            { alpha 1.0 }
-         }
-       }
-       { background
-         T{ rgba
-            { red 1.0 }
-            { green 1.0 }
-            { blue 1.0 }
-            { alpha 1.0 }
-         }
-       }
+       { foreground $[ text-color ] }
+       { background $[ content-background ] }
     }
 } [
     <pane> current>> smash-line [ text>> ] [ font>> ] bi