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 }
39 } title-style set-global
41 SYMBOL: help-path-style
45 { table-border COLOR: FactorLightTan }
46 } help-path-style set-global
50 { font-name "sans-serif" }
53 { foreground COLOR: FactorDarkSlateBlue }
54 } heading-style set-global
56 SYMBOL: subsection-style
58 { font-name "sans-serif" }
61 } subsection-style set-global
65 { font-name "monospace" }
67 { foreground COLOR: DarkOrange4 }
68 } snippet-style set-global
70 SYMBOL: code-char-style
72 { font-name "monospace" }
74 } code-char-style set-global
78 { page-color COLOR: FactorLightTan }
81 } code-style set-global
86 { foreground COLOR: DarkOrange4 }
87 } output-style set-global
91 { font-name "monospace" }
92 { foreground COLOR: DodgerBlue4 }
93 } url-style set-global
97 { page-color COLOR: gray90 }
98 { border-color COLOR: red }
101 } warning-style set-global
103 SYMBOL: deprecated-style
105 { page-color COLOR: gray90 }
106 { border-color COLOR: red }
109 } deprecated-style set-global
111 SYMBOL: table-content-style
114 } table-content-style set-global
118 { table-gap { 5 5 } }
119 { table-border COLOR: FactorTan }
120 } table-style set-global
123 H{ { table-gap { 10 2 } } } list-style set-global
126 "• " bullet set-global
128 : adjust-help-font-size ( delta -- )
132 default-span-style title-style
133 help-path-style heading-style
134 subsection-style snippet-style
137 ] dip '[ get-global [ _ + ] change-at ] with each ;