1 ! Copyright (C) 2005, 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: assocs colors colors.constants fry io.styles kernel
4 math namespaces sequences ;
7 SYMBOL: default-span-style
9 { font-name "sans-serif" }
12 } default-span-style set-global
14 SYMBOL: default-block-style
17 } default-block-style set-global
21 { foreground COLOR: DodgerBlue4 }
23 } link-style set-global
25 SYMBOL: emphasis-style
26 H{ { font-style italic } } emphasis-style set-global
29 H{ { font-style bold } } strong-style set-global
33 { font-name "sans-serif" }
37 { foreground COLOR: gray20 }
38 { page-color COLOR: FactorLightTan }
40 } title-style set-global
42 SYMBOL: help-path-style
46 { table-border COLOR: FactorLightTan }
47 } help-path-style set-global
51 { font-name "sans-serif" }
54 { foreground COLOR: FactorDarkSlateBlue }
55 } heading-style set-global
57 SYMBOL: subsection-style
59 { font-name "sans-serif" }
62 } subsection-style set-global
66 { font-name "monospace" }
68 { foreground COLOR: DarkOrange4 }
69 } snippet-style set-global
71 SYMBOL: code-char-style
73 { font-name "monospace" }
75 } code-char-style set-global
79 { page-color COLOR: FactorLightTan }
82 } code-style set-global
87 { foreground COLOR: DarkOrange4 }
88 } output-style set-global
92 { font-name "monospace" }
93 { foreground COLOR: DodgerBlue4 }
94 } url-style set-global
98 { page-color COLOR: gray90 }
99 { border-color COLOR: red }
102 } warning-style set-global
104 SYMBOL: deprecated-style
106 { page-color COLOR: gray90 }
107 { border-color COLOR: red }
110 } deprecated-style set-global
112 SYMBOL: table-content-style
115 } table-content-style set-global
119 { table-gap { 5 5 } }
120 { table-border COLOR: FactorTan }
121 } table-style set-global
124 H{ { table-gap { 10 2 } } } list-style set-global
127 "• " bullet set-global
129 : adjust-help-font-size ( delta -- )
133 default-span-style title-style heading-style
134 subsection-style snippet-style code-char-style
136 ] dip '[ get-global [ _ + ] change-at ] with each ;