From 761cf1a5ddaa3e8e5ce772860b873c6f5393357a Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 3 Mar 2020 15:23:18 -0800 Subject: [PATCH] ui.gadgets.panes: fix tests under dark-theme. --- basis/ui/gadgets/panes/panes-tests.factor | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/basis/ui/gadgets/panes/panes-tests.factor b/basis/ui/gadgets/panes/panes-tests.factor index 76b292f1ff..8fb350e424 100644 --- a/basis/ui/gadgets/panes/panes-tests.factor +++ b/basis/ui/gadgets/panes/panes-tests.factor @@ -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 ] } } } [ current>> smash-line [ text>> ] [ font>> ] bi