migrate from appreciated/material
- add jitpack.io to repositories
repositories {
maven {
url 'https://dl.bintray.com/cuba-platform/main'
}
maven { url 'https://jitpack.io' } // <-add
jcenter()
}
- add com.github.chenjiajia:material:0.2.4 to webModule config
configure(webModule) {
configurations {
webcontent
}
dependencies {
compileOnly(servletApi)
compile(globalModule)
compile('com.github.chenjiajia:material:0.2.4') // <-add
themes('com.github.chenjiajia:material:0.2.4') //<- add
}
- Create Theme Extension and modify dir name to material
- modify styles.scss
@import "material.scss"; // <- change first line
@import "you.packge.names/halo-ext-defaults";
@import "app-components";
@import "you.packge.names/halo-ext";
.material { // <-change to
@include material; // <-change to
}
cuba.web.theme = material
cuba.themeConfig= /material/material-theme.properties com/haulmont/cuba/havana-theme.properties com/haulmont/cuba/halo-theme.properties com/haulmont/cuba/hover-theme.properties