-
这是默认外观。
-
用标记路由器组件
@Theme(value = Lumo.class, variant = Lumo.DARK)
.
-
您可以在样式文件的CSS规则中使用Lumo的CSS自定义属性。例如:
html{--lumo-base-color: aliceblue;}
.
示例使用
@Theme
通常的注释
MainView
班级:
@Route ( "" )
@Theme ( value = Lumo.class, variant = Lumo.DARK ) // â¬
Add annotation
public class MainView extends VerticalLayout { ⦠}
下面是如何自定义断开连接通知:
<custom-style>
<style>
html {
--lumo-base-color: aliceblue;
}
.v-reconnect-dialog {
visibility: visible;
border: 1px solid lightslategray;
background-color: slategray;
color: lightgray;
box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, .4);
border-radius: 4px;
}
.custom {
color: lightskyblue;
}
</style>
</custom-style>