Note that there are some explanatory texts on larger screens.

plurals
  1. POVaadin, applying own theme doesn't work
    primarykey
    data
    text
    <p>I am trying to add custom theme to my Vaadin 7 project. I used the Vaadin plug-in theme creater, it created the necessary files and I included a simple background-color setting to my table, but even though reindeer theme is included it doesn't seem to work. After I apply my theme with <code>@Theme()</code> annotation on my UI class my table disappears and I get this (without the custom theme it looks fine):</p> <p><img src="https://i.stack.imgur.com/3Ay0I.png" alt="enter image description here"></p> <p>I read the part of the Book of Vaadin that describes this (<a href="https://vaadin.com/book/-/page/themes.creating.html" rel="nofollow noreferrer">https://vaadin.com/book/-/page/themes.creating.html</a>) but it still doesn't work for me. I read this part: <a href="https://vaadin.com/book/-/page/themes.html#figure.themes.theme-contents" rel="nofollow noreferrer">https://vaadin.com/book/-/page/themes.html#figure.themes.theme-contents</a> and it shows reindeer should be under themes, but it says I have to include the vaadin-themes.jar and it will work fine. I did add it, my filestructure looks like this: </p> <p><img src="https://i.stack.imgur.com/vif2P.png" alt="enter image description here"> </p> <p>airlinedb_customtheme.scss file's code:</p> <pre><code>@import "../reindeer/reindeer.scss"; @mixin airlinedb_customtheme { @include reindeer; .v-table { background-color: red; } } </code></pre> <p>and my theme's styles.scss:</p> <pre><code>@import "airlinedb_customtheme.scss"; .airlinedb_customtheme { @include airlinedb_customtheme; } </code></pre> <p>What am I missing? It looks like to me that reindeer style isn't included but I have no idea why.</p> <p>EDIT:Furthermore, how can I give background color for my button and my table-row?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload