有没有办法更改内置的controlfx通知弹出窗口颜色? [英] Is there a way to change the built-in controlfx notification popup color?
问题描述
是的使用示例通知弹出窗口我正在谈论:
Notifications.create().title(...).text(...).hideAfter(Duration).show();
在这种情况下,通知弹出窗口遵循现代样式(有点灰色)
in this case the notification popup follow the modena style (a little bit gray)
如果我们添加这样的深色样式:
if we add dark style like this:
Notifications.create().darkStyle().title(...).text(...).hideAfter(Duration).show();
显示为深色
我只是想知道是否有办法更改这些默认样式,我已经知道了通知窗格,并且我没有在谈论它。
So I just want to know if there is a way to change these default style, I already know about the notification pane and I am not talking about it.
所以请我的作业并进行了一些研究……我什么也没找到,这就是为什么我在这里寻求帮助
So please I made my homework and did some research ... I found nothing that's why I here to find help
推荐答案
看看文档:
https://controlsfx.bitbucket.io/org/controlsfx /control/NotificationPane.html
您可以在此处查看通知窗格的CSS文件:
/ org / controlsfx / control /notificationpane.css
You can take a look at the CSS file for the notification pane here: /org/controlsfx/control/notificationpane.css
现在,您可以在自己的样式表中使用CSS类。
Now you can use the CSS classes in your own stylesheet.
这篇关于有没有办法更改内置的controlfx通知弹出窗口颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!