是否可以更改Wicket活动指示器的颜色? [英] Is it possible to change the color of Wicket's activity indicator?
问题描述
情况:我使用Wicket的 IndicatingAjaxButton
。我有按钮设置在一个页面上有黑色背景。当用户按下按钮时,按钮的活动指示灯熄灭并旋转,直到系统准备好移动。
Situation: I'm working with Wicket's IndicatingAjaxButton
. I have the button set up on a page with black background. When the user pushes the button, the button's activity indicator goes off and spins until the system is ready to move on.
问题:由于黑色背景,指示器看起来坏。由于指示器的一部分是黑色的,因此使用黑色背景上的指示器会丢失一些细节。
Problem: Because of the black background, the indicator looks bad. Since part of the indicator is animated in black, some of the details are lost using the indicator on a black background.
问题:在Wicket中可以更改颜色 IndicatingX
[Button,Link等],或者我必须以新的方式设计我的页面吗?
Question: Is it possible in Wicket to change the color of the IndicatingX
[Button, Link, etc.], or do I have to design my page in a new way?
推荐答案
这是不可能的。好吧,不是以编程方式。
This is not possible. Well, not programmatically.
Wicket的活动指示器/ throbber /微调器实际上只是一个动画GIF。位于
Wicket's activity indicator/throbber/spinner is actually nothing more than an animated GIF. It's located at
[您的Wicket的版本在这里] \wicket-src\wicket\src\\ \\ main\java\org\apache\wicket\ajax\indicator.gif
和在 AbstractDefaultAjaxBehavior
中引用。
要更改颜色,您可以创建自己的相同尺寸的动画GIF,并覆盖默认分布中包含的动画GIF。
To change the colors, you could create your own animated GIF of the same size and overwrite the one that's included in the default distribution.
编辑:
好吧,写完之后我想必须有免费图标可用,并通过Google图片搜索提出了这一点:
Okay, after writing that I thought "there must be free icons available" and came up with this through Google Image Search:
我认为是免费的,不受限制使用,但我没有仔细检查。如果您使用的不只是个人玩具/示例应用,您应该自行检查。
I think it's free and unrestricted to use, but I didn't check too carefully. You should check for yourself if you're using it for anything more than a personal toy/sample app.
这篇关于是否可以更改Wicket活动指示器的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!