You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChameleonTheme.java 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.v7.ui.themes;
  17. @Deprecated
  18. public class ChameleonTheme extends BaseTheme {
  19. public static final String THEME_NAME = "chameleon";
  20. /***************************************************************************
  21. * Label styles
  22. **************************************************************************/
  23. /**
  24. * Large font for main application headings
  25. */
  26. public static final String LABEL_H1 = "h1";
  27. /**
  28. * Large font for different sections in the application
  29. */
  30. public static final String LABEL_H2 = "h2";
  31. /**
  32. * Font for sub-section headers
  33. */
  34. public static final String LABEL_H3 = "h3";
  35. /**
  36. * Font for paragraphs headers
  37. */
  38. public static final String LABEL_H4 = "h4";
  39. /**
  40. * Big font for important or emphasized texts
  41. */
  42. public static final String LABEL_BIG = "big";
  43. /**
  44. * Small and a little lighter font
  45. */
  46. public static final String LABEL_SMALL = "small";
  47. /**
  48. * Very small and lighter font for things such as footnotes and component
  49. * specific informations. Use carefully, since this style will usually
  50. * reduce legibility.
  51. */
  52. public static final String LABEL_TINY = "tiny";
  53. /**
  54. * Adds color to the text (usually the alternate color of the theme)
  55. */
  56. public static final String LABEL_COLOR = "color";
  57. /**
  58. * Adds a warning icon on the left side and a yellow background to the label
  59. */
  60. public static final String LABEL_WARNING = "warning";
  61. /**
  62. * Adds an error icon on the left side and a red background to the label
  63. */
  64. public static final String LABEL_ERROR = "error";
  65. /**
  66. * Adds a spinner icon on the left side of the label
  67. */
  68. public static final String LABEL_LOADING = "loading";
  69. /***************************************************************************
  70. * Button styles
  71. **************************************************************************/
  72. /**
  73. * Default action style for buttons (the button that gets activated when
  74. * user presses 'enter' in a form). Use sparingly, only one default button
  75. * per screen should be visible.
  76. */
  77. public static final String BUTTON_DEFAULT = "default";
  78. /**
  79. * Small sized button, use for context specific actions for example
  80. */
  81. public static final String BUTTON_SMALL = "small";
  82. /**
  83. * Big button, use to get more attention for the button action
  84. */
  85. public static final String BUTTON_BIG = "big";
  86. /**
  87. * Adds more padding on the sides of the button. Makes it easier for the
  88. * user to hit the button.
  89. */
  90. public static final String BUTTON_WIDE = "wide";
  91. /**
  92. * Adds more padding on the top and on the bottom of the button. Makes it
  93. * easier for the user to hit the button.
  94. */
  95. public static final String BUTTON_TALL = "tall";
  96. /**
  97. * Removes all graphics from the button, leaving only the caption and the
  98. * icon visible. Useful for making icon-only buttons and toolbar buttons.
  99. */
  100. public static final String BUTTON_BORDERLESS = "borderless";
  101. /**
  102. * Places the button icon on top of the caption. By default the icon is on
  103. * the left side of the button caption.
  104. */
  105. public static final String BUTTON_ICON_ON_TOP = "icon-on-top";
  106. /**
  107. * Places the button icon on the right side of the caption. By default the
  108. * icon is on the left side of the button caption.
  109. */
  110. public static final String BUTTON_ICON_ON_RIGHT = "icon-on-right";
  111. /**
  112. * Removes the button caption and only shows its icon
  113. */
  114. public static final String BUTTON_ICON_ONLY = "icon-only";
  115. /**
  116. * Makes the button look like it is pressed down. Useful for creating a
  117. * toggle button.
  118. */
  119. public static final String BUTTON_DOWN = "down";
  120. /***************************************************************************
  121. * TextField styles
  122. **************************************************************************/
  123. /**
  124. * Small sized text field with small font
  125. */
  126. public static final String TEXTFIELD_SMALL = "small";
  127. /**
  128. * Large sized text field with big font
  129. */
  130. public static final String TEXTFIELD_BIG = "big";
  131. /**
  132. * Adds a magnifier icon on the left side of the fields text
  133. */
  134. public static final String TEXTFIELD_SEARCH = "search";
  135. /***************************************************************************
  136. * Select styles
  137. **************************************************************************/
  138. /**
  139. * Small sized select with small font
  140. */
  141. public static final String SELECT_SMALL = "small";
  142. /**
  143. * Large sized select with big font
  144. */
  145. public static final String SELECT_BIG = "big";
  146. /**
  147. * Adds a magnifier icon on the left side of the fields text
  148. */
  149. public static final String COMBOBOX_SEARCH = "search";
  150. /**
  151. * Adds a magnifier icon on the left side of the fields text
  152. */
  153. public static final String COMBOBOX_SELECT_BUTTON = "select-button";
  154. /***************************************************************************
  155. * DateField styles
  156. **************************************************************************/
  157. /**
  158. * Small sized date field with small font
  159. */
  160. public static final String DATEFIELD_SMALL = "small";
  161. /**
  162. * Large sized date field with big font
  163. */
  164. public static final String DATEFIELD_BIG = "big";
  165. /***************************************************************************
  166. * Panel styles
  167. **************************************************************************/
  168. /**
  169. * Removes borders and background color from the panel
  170. */
  171. public static final String PANEL_BORDERLESS = "borderless";
  172. /**
  173. * Adds a more vibrant header for the panel, using the alternate color of
  174. * the theme, and adds slight rounded corners (not supported in all
  175. * browsers)
  176. */
  177. public static final String PANEL_BUBBLE = "bubble";
  178. /**
  179. * Removes borders and background color from the panel
  180. */
  181. public static final String PANEL_LIGHT = "light";
  182. /***************************************************************************
  183. * SplitPanel styles
  184. **************************************************************************/
  185. /**
  186. * Reduces the split handle to a minimal size (1 pixel)
  187. */
  188. public static final String SPLITPANEL_SMALL = "small";
  189. /***************************************************************************
  190. * TabSheet styles
  191. **************************************************************************/
  192. /**
  193. * Removes borders and background color from the tab sheet
  194. */
  195. public static final String TABSHEET_BORDERLESS = "borderless";
  196. /***************************************************************************
  197. * Accordion styles
  198. **************************************************************************/
  199. /**
  200. * Makes the accordion background opaque (non-transparent)
  201. */
  202. public static final String ACCORDION_OPAQUE = "opaque";
  203. /***************************************************************************
  204. * Table styles
  205. **************************************************************************/
  206. /**
  207. * Removes borders and background color from the table
  208. */
  209. public static final String TABLE_BORDERLESS = "borderless";
  210. /**
  211. * Makes the column header and content font size smaller inside the table
  212. */
  213. public static final String TABLE_SMALL = "small";
  214. /**
  215. * Makes the column header and content font size bigger inside the table
  216. */
  217. public static final String TABLE_BIG = "big";
  218. /**
  219. * Adds a light alternate background color to even rows in the table.
  220. */
  221. public static final String TABLE_STRIPED = "striped";
  222. /***************************************************************************
  223. * ProgressIndicator styles
  224. **************************************************************************/
  225. /**
  226. * Reduces the height of the progress bar
  227. */
  228. public static final String PROGRESS_INDICATOR_SMALL = "small";
  229. /**
  230. * Increases the height of the progress bar. If the indicator is in
  231. * indeterminate mode, shows a bigger spinner than the regular indeterminate
  232. * indicator.
  233. */
  234. public static final String PROGRESS_INDICATOR_BIG = "big";
  235. /**
  236. * Displays an indeterminate progress indicator as a bar with animated
  237. * background stripes. This style can be used in combination with the
  238. * "small" and "big" styles.
  239. */
  240. public static final String PROGRESS_INDICATOR_INDETERMINATE_BAR = "bar";
  241. /***************************************************************************
  242. * Window styles
  243. **************************************************************************/
  244. /**
  245. * Sub-window style that makes the window background opaque (i.e. not
  246. * semi-transparent).
  247. */
  248. public static final String WINDOW_OPAQUE = "opaque";
  249. /***************************************************************************
  250. * Compound styles
  251. **************************************************************************/
  252. /**
  253. * Creates a context for a segment button control. Place buttons inside the
  254. * segment, and add "<code>first</code>" and "<code>last</code>" style names
  255. * for the first and last button in the segment. Then use the
  256. * {@link #BUTTON_DOWN} style to indicate button states.
  257. *
  258. * E.g.
  259. *
  260. * <pre>
  261. * HorizontalLayout ("segment")
  262. * + Button ("first down")
  263. * + Button ("down")
  264. * + Button
  265. * ...
  266. * + Button ("last")
  267. * </pre>
  268. *
  269. * You can also use most of the different button styles for the contained
  270. * buttons (e.g. {@link #BUTTON_BIG}, {@link #BUTTON_ICON_ONLY} etc.).
  271. */
  272. public static final String COMPOUND_HORIZONTAL_LAYOUT_SEGMENT = "segment";
  273. /**
  274. * Use this mixin-style in combination with the
  275. * {@link #COMPOUND_HORIZONTAL_LAYOUT_SEGMENT} style to make buttons with
  276. * the "down" style use the themes alternate color (e.g. blue instead of
  277. * gray).
  278. *
  279. * E.g.
  280. *
  281. * <pre>
  282. * HorizontalLayout ("segment segment-alternate")
  283. * + Button ("first down")
  284. * + Button ("down")
  285. * + Button
  286. * ...
  287. * + Button ("last")
  288. * </pre>
  289. */
  290. public static final String COMPOUND_HORIZONTAL_LAYOUT_SEGMENT_ALTERNATE = "segment-alternate";
  291. /**
  292. * Creates an iTunes-like menu from a CssLayout or a VerticalLayout. Place
  293. * plain Labels and NativeButtons inside the layout, and you're all set.
  294. *
  295. * E.g.
  296. *
  297. * <pre>
  298. * CssLayout ("sidebar-menu")
  299. * + Label
  300. * + NativeButton
  301. * + NativeButton
  302. * ...
  303. * + Label
  304. * + NativeButton
  305. * </pre>
  306. */
  307. public static final String COMPOUND_LAYOUT_SIDEBAR_MENU = "sidebar-menu";
  308. /**
  309. * Adds a toolbar-like background for the layout, and aligns Buttons and
  310. * Segments horizontally. Feel free to use different buttons styles inside
  311. * the toolbar, like {@link #BUTTON_ICON_ON_TOP} and
  312. * {@link #BUTTON_BORDERLESS}
  313. */
  314. public static final String COMPOUND_CSSLAYOUT_TOOLBAR = "toolbar";
  315. }