help.stylesheet: add back page-color and override in ui.tools.browser.
parent
c957ab876c
commit
7dd0acbf0f
|
@ -1,11 +1,10 @@
|
||||||
! Copyright (C) 2008, 2011 Slava Pestov.
|
! Copyright (C) 2008, 2011 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays assocs colors.constants debugger fry
|
USING: accessors arrays assocs debugger fry help help.home
|
||||||
help help.crossref help.home help.markup help.stylesheet
|
help.topics help.vocabs html html.streams io.directories
|
||||||
help.topics help.vocabs html html.streams io io.directories
|
|
||||||
io.encodings.binary io.encodings.utf8 io.files io.files.temp
|
io.encodings.binary io.encodings.utf8 io.files io.files.temp
|
||||||
io.pathnames io.styles kernel make math.parser memoize
|
io.pathnames kernel make math.parser memoize namespaces
|
||||||
namespaces sequences serialize splitting tools.completion vocabs
|
sequences serialize splitting tools.completion vocabs
|
||||||
vocabs.hierarchy words xml.syntax xml.writer ;
|
vocabs.hierarchy words xml.syntax xml.writer ;
|
||||||
FROM: io.encodings.ascii => ascii ;
|
FROM: io.encodings.ascii => ascii ;
|
||||||
FROM: ascii => ascii? ;
|
FROM: ascii => ascii? ;
|
||||||
|
@ -90,12 +89,7 @@ M: pathname url-of
|
||||||
[ drop help-stylesheet ]
|
[ drop help-stylesheet ]
|
||||||
[
|
[
|
||||||
[ help-navbar ]
|
[ help-navbar ]
|
||||||
[
|
[ [ print-topic ] with-html-writer ]
|
||||||
[
|
|
||||||
title-style get
|
|
||||||
{ { page-color COLOR: FactorLightTan } } assoc-union
|
|
||||||
title-style [ print-topic ] with-variable
|
|
||||||
] with-html-writer ]
|
|
||||||
bi* append
|
bi* append
|
||||||
] tri
|
] tri
|
||||||
simple-page ;
|
simple-page ;
|
||||||
|
|
|
@ -35,6 +35,7 @@ H{
|
||||||
{ font-style bold }
|
{ font-style bold }
|
||||||
{ wrap-margin 500 }
|
{ wrap-margin 500 }
|
||||||
{ foreground COLOR: gray20 }
|
{ foreground COLOR: gray20 }
|
||||||
|
{ page-color COLOR: FactorLightTan }
|
||||||
{ inset { 5 5 } }
|
{ inset { 5 5 } }
|
||||||
} title-style set-global
|
} title-style set-global
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
! Copyright (C) 2006, 2009 Slava Pestov.
|
! Copyright (C) 2006, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays classes combinators
|
USING: accessors arrays assocs classes combinators
|
||||||
combinators.short-circuit compiler.units debugger fry help
|
combinators.short-circuit compiler.units debugger fry hashtables
|
||||||
help.apropos help.crossref help.home help.markup help.stylesheet
|
help help.apropos help.crossref help.home help.markup
|
||||||
help.topics io.styles kernel locals make models namespaces
|
help.stylesheet help.topics io.styles kernel locals make models
|
||||||
sequences sets ui ui.commands ui.gadgets ui.gadgets.borders
|
namespaces sequences sets ui ui.commands ui.gadgets
|
||||||
ui.gadgets.editors ui.gadgets.glass ui.gadgets.labels
|
ui.gadgets.borders ui.gadgets.editors ui.gadgets.glass
|
||||||
ui.gadgets.panes ui.gadgets.scrollers ui.gadgets.status-bar
|
ui.gadgets.labels ui.gadgets.panes ui.gadgets.scrollers
|
||||||
ui.gadgets.theme ui.gadgets.toolbar ui.gadgets.tracks
|
ui.gadgets.status-bar ui.gadgets.theme ui.gadgets.toolbar
|
||||||
ui.gadgets.viewports ui.gadgets.worlds ui.gestures ui.pens.solid
|
ui.gadgets.tracks ui.gadgets.viewports ui.gadgets.worlds
|
||||||
ui.tools.browser.history ui.tools.browser.popups ui.tools.common
|
ui.gestures ui.pens.solid ui.tools.browser.history
|
||||||
vocabs ;
|
ui.tools.browser.popups ui.tools.common vocabs ;
|
||||||
IN: ui.tools.browser
|
IN: ui.tools.browser
|
||||||
|
|
||||||
TUPLE: browser-gadget < tool history scroller search-field popup ;
|
TUPLE: browser-gadget < tool history scroller search-field popup ;
|
||||||
|
@ -58,8 +58,11 @@ CONSTANT: next 1
|
||||||
] with-style ;
|
] with-style ;
|
||||||
|
|
||||||
: $title ( topic -- )
|
: $title ( topic -- )
|
||||||
title-style get [
|
title-style get
|
||||||
title-style get [
|
help-header-background page-color associate
|
||||||
|
assoc-union dup
|
||||||
|
[
|
||||||
|
[
|
||||||
[ ($title) ]
|
[ ($title) ]
|
||||||
[ ($navigation-path) ] bi
|
[ ($navigation-path) ] bi
|
||||||
] with-nesting
|
] with-nesting
|
||||||
|
|
Loading…
Reference in New Issue