Hi,
I am trying to add a custom theme from “halo” to my project.
I followed the guide on Creating a Custom Theme :: Jmix Documentation
Therefore:
-
I right-click on the User Interface node in the Jmix project window and select New → Custom Theme named 2pippo"
-
Then I checked that pippo-theme.properties was created and contained
@include=io/jmix/ui/theme/halo-theme.properties
-
styles.scss contained:
@import "pippo-defaults";
@import "addons";
@import "pippo";
.pippo {
@include addons;
@include pippo;
}
- application.properties contains
jmix.ui.theme.name=pippo
jmix.ui.theme-config=com/company/pluto/theme/pippo-theme.properties
-
I then compiled theme using:
Jmix Studio, open the Gradle tool window and double-click Tasks → web → compileThemes -
I then opened the pippo.scss file and modified the file to change the aspect of the login page
@import "../halo/halo";
@mixin pippo {
@include halo;
.jmix-login-panel {
background: #ed473b;
border:5px solid #c5c5c5;
border-radius:4px;
padding:50px
}
}
- I compiled the theme again and tried to brows the new changes
localhost:8080
Unfortunately it is not working and i am not able to figure out what am I doing wrong.
David