Lev*_*and 1 java vaadin vaadin10
我在理解Vaadin 10主题时遇到了一些麻烦:我已经在网站上阅读了所有文档,但我无法解决我的问题.
例如:如果我从头开始使用普通的Vaadin 8应用程序,当我停止服务器时,我会收到断开连接的通知:
但是对于一个新的Vaadin 10启动器(项目基础),我得到了这个丑陋的通知

这两个应用程序都是标准的,没有Vaadin首发的任何编辑.我尝试过使用shared-styles.html但没有成功.
我的问题,所有vaadin 10相关:
谢谢
@Theme(value = Lumo.class, variant = Lumo.DARK).html{--lumo-base-color: aliceblue;}.@Theme在通常的MainView类上使用注释的示例:
@Route ( "" )
@Theme ( value = Lumo.class, variant = Lumo.DARK ) // ? Add annotation
public class MainView extends VerticalLayout { … }
Run Code Online (Sandbox Code Playgroud)
以下是如何自定义断开连接通知的方法:
<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>
Run Code Online (Sandbox Code Playgroud)