Candy Database · Documentation

Style keys The style block of a database or a theme. All optional. Colors are written #rrggbb (or a color name).
KeyMeaning
background_colorThe page's background.
text_colorThe page's text.
link_colorLinks.
code_color[code] text.
background_textureAn image behind the page. In a database: a path relative to the database folder.
background_texture_modeCover, Stretch or Tile.
background_opacity0 to 1.
header_background_colorThe header's background. Left out: transparent, showing the page.
header_text_colorThe header's text. Left out: the page's text color.
header_background_textureAn image behind the header. Path relative to the database folder.
header_background_modeCover, Stretch or Tile.
footer_background_colorThe footer's background. Left out: transparent, showing the page.
footer_text_colorThe footer's text. Left out: the page's text color.
footer_background_textureAn image behind the footer. Path relative to the database folder.
footer_background_modeCover, Stretch or Tile.
scroll_bar_colorThe scroll bar's track. Left out: a faint tint of the page's text color.
scroll_grabber_colorThe part you drag. Left out: the page's text color, half see-through.
scroll_grabber_hover_colorThe grabber under the mouse. Left out: the grabber's color, closer to the text color.
scroll_grabber_pressed_colorThe grabber while dragged. Left out: the grabber's color, closer still to the text color.
scroll_bar_widthThe scroll bar's width in pixels, 2 to 32. Left out: 10.
scroll_bar_radiusHow round its corners are, in pixels, 0 to 16. Left out: 4.
A color can be given with its transparency, as #rrggbbaa: "scroll_bar_color": "#00000000" would be fully see-through, so it counts as left out. Use "#00000001" for a track you can't see. In a theme file, the editor:name form is also understood for colors, and the two image keys are not available (a theme has no folder of its own for images).