diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2015-12-03 14:59:05 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-12-03 14:59:12 +0000 |
commit | 2af72ba9636bec70046394c41744f89ce4572e35 (patch) | |
tree | ccb3dc2d2239585f8c3f79eb5f131ff61ca9ce86 /documentation/themes/themes-eclipse.asciidoc | |
parent | 8aa5fabe89f2967e966a64842a608eceaf80d08f (diff) | |
download | vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.tar.gz vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.zip |
Revert "Merge branch 'documentation'"7.6.0.beta2
This reverts commit f6874bde3d945c8b2d1b5c17ab50e2d0f1f8ff00.
Change-Id: I67ee1c30ba3e3bcc3c43a1dd2e73a822791514bf
Diffstat (limited to 'documentation/themes/themes-eclipse.asciidoc')
-rw-r--r-- | documentation/themes/themes-eclipse.asciidoc | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/documentation/themes/themes-eclipse.asciidoc b/documentation/themes/themes-eclipse.asciidoc deleted file mode 100644 index bd35ce6fed..0000000000 --- a/documentation/themes/themes-eclipse.asciidoc +++ /dev/null @@ -1,75 +0,0 @@ ---- -title: Creating a Theme in Eclipse -order: 6 -layout: page ---- - -[[themes.eclipse]] -= Creating a Theme in Eclipse - -The Eclipse plugin automatically creates a theme stub for new Vaadin projects. -It also includes a wizard for creating new custom themes. Do the following steps -to create a new theme. - -. Select "File > New > Other..." in the main menu or right-click the -[guilabel]#Project Explorer# and select "New > Other...". A window will open. - -. In the [guilabel]#Select a wizard# step, select the "Vaadin > Vaadin Theme" -wizard. - -+ -image::img/eclipse-theme-new.png[] - -+ -Click [guibutton]#Next# to proceed to the next step. - -. In the [guilabel]#Create a new Vaadin theme# step, you have the following -settings: - -[guilabel]#Project#(mandatory):: The project in which the theme should be created. - -[guilabel]#Theme name#(mandatory):: The theme name is used as the name of the theme folder and in a CSS tag -(prefixed with " [literal]#++v-theme-++#"), so it must be a proper identifier. -Only latin alphanumerics, underscore, and minus sign are allowed. - -[guilabel]#Modify application classes to use theme#(optional):: The setting allows the wizard to write a code statement that enables the theme -in the constructor of the selected application (UI) class(es). If you need to -control the theme with dynamic logic, you can leave the setting unchecked or -change the generated line later. - - - -+ -image::img/eclipse-theme-settings.png[] - -+ -Click [guibutton]#Finish# to create the theme. - - -The wizard creates the theme folder under the -[filename]#WebContent/VAADIN/themes# folder and the actual style sheet as -[filename]#mytheme.scss# and [filename]#styles.scss# files, as illustrated in -<<figure.eclipse.theme.created>>. - -[[figure.eclipse.theme.created]] -.Newly Created Theme -image::img/eclipse-theme-created-annotated-hi.png[] - -The created theme extends a built-in base theme with an [literal]#++@import++# -statement. See the explanation of theme inheritance in -<<dummy/../../../framework/themes/themes-creating#themes.creating,"Creating and -Using Themes">>. Notice that the [filename]#reindeer# theme is not located in -the [filename]#widgetsets# folder, but in the Vaadin JAR. See -<<dummy/../../../framework/themes/themes-creating#themes.creating.builtin,"Built-in -Themes">> for information for serving the built-in themes. - -If you selected a UI class or classes in the [guilabel]#Modify application -classes to use theme# in the theme wizard, the wizard will add the -[literal]#++@Theme++# annotation to the UI class. - -If you later rename the theme in Eclipse, notice that changing the name of the -folder will not automatically change the [literal]#++@Theme++# annotation. You -need to change such references to theme names in the calls manually. - - - |