diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2014-08-12 15:07:45 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-08-15 13:29:04 +0000 |
commit | 9f1f5c5638757f7b727e300c7f437fd805914c54 (patch) | |
tree | 02b58ef3513ac5902bee38656ef03476cd357e6a /server | |
parent | c961d06c1f3fda81da3ab8700fbda5d33d8a9325 (diff) | |
download | vaadin-framework-9f1f5c5638757f7b727e300c7f437fd805914c54.tar.gz vaadin-framework-9f1f5c5638757f7b727e300c7f437fd805914c54.zip |
Add new "colored" style for Label (Valo)
Makes any Label text colored, by default the same as $v-selection-color.
Modify the Forms and Labels examples to use the new style, and remove
the fixed color from “light” style form layout for header labels.
Change-Id: I27a4fce56b1f734aa5c2c837bf1684284b0d96cc
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/themes/ValoTheme.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/themes/ValoTheme.java b/server/src/com/vaadin/ui/themes/ValoTheme.java index ea6b9082f8..d6bd97ed72 100644 --- a/server/src/com/vaadin/ui/themes/ValoTheme.java +++ b/server/src/com/vaadin/ui/themes/ValoTheme.java @@ -186,6 +186,11 @@ public class ValoTheme { public static final String LABEL_BOLD = "bold"; /** + * Colored text. Can be combined with any other Label style. + */ + public static final String LABEL_COLORED = "colored"; + + /** * Success badge style. Adds a border around the label and an icon next to * the text. Suitable for UI notifications that need to in the direct * context of some component. Can be combined with any other Label style. |