mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added new improvements
This commit is contained in:
parent
3250003eb3
commit
565cf7d541
@ -212,7 +212,7 @@ public class Battery extends Widget {
|
|||||||
{
|
{
|
||||||
Color currentColor = brush.getColor();
|
Color currentColor = brush.getColor();
|
||||||
brush.setColor(
|
brush.setColor(
|
||||||
visibility.isStronglyColored() || mouseOver ? HIGH_HIGHLIGHTED : (visibility.isWeaklyColored() ? HIGH : Color.lightGray));
|
visibility.isStronglyColored() ? HIGH_HIGHLIGHTED : (visibility.isWeaklyColored() ? HIGH : Color.lightGray));
|
||||||
|
|
||||||
|
|
||||||
double angleDouble = donePercent * 360;
|
double angleDouble = donePercent * 360;
|
||||||
@ -221,7 +221,7 @@ public class Battery extends Widget {
|
|||||||
totalHeight / 4 * 3 + 28,
|
totalHeight / 4 * 3 + 28,
|
||||||
15, 15, 90, -(int) angleDouble);
|
15, 15, 90, -(int) angleDouble);
|
||||||
brush.setColor(
|
brush.setColor(
|
||||||
visibility.isStronglyColored() || mouseOver ? LIGHT_RED :
|
visibility.isStronglyColored() ? LIGHT_RED :
|
||||||
visibility.isWeaklyColored() ? ULTRA_LIGHT_RED : BACKGROUND_COLOR);
|
visibility.isWeaklyColored() ? ULTRA_LIGHT_RED : BACKGROUND_COLOR);
|
||||||
brush.fillArc(((int) (totalWidth * 0.45)) + 15,
|
brush.fillArc(((int) (totalWidth * 0.45)) + 15,
|
||||||
totalHeight / 4 * 3 + 28,
|
totalHeight / 4 * 3 + 28,
|
||||||
|
@ -8,7 +8,7 @@ visibility.only-grey-or-none.enabled=false
|
|||||||
jokes.enabled=true
|
jokes.enabled=true
|
||||||
commands.enabled=true
|
commands.enabled=true
|
||||||
toasts.enabled=true
|
toasts.enabled=true
|
||||||
smileys.colored=true
|
smileys.colored=false
|
||||||
|
|
||||||
#todo
|
#todo
|
||||||
smileys.enabled=true
|
smileys.enabled=true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user