Added some improvements
This commit is contained in:
parent
55fc9970b5
commit
5291779733
@ -743,7 +743,7 @@ public class MainWindow extends TWindow {
|
||||
.setDonePercent(YearBattery.getYearProgress(clock));
|
||||
yearBattery.setLabel("");
|
||||
|
||||
if (timeRemains.getHour() <= 0 && timeRemains.getMinute() <= 0) {
|
||||
if (timeRemains.getHour() <= 0 && timeRemains.getMinute() <= 0 && timeRemains.getSecond() <= 0) {
|
||||
Toaster toasterManager = new Toaster();
|
||||
toasterManager.setDisplayTime(30000);
|
||||
toasterManager.showToaster(
|
||||
|
@ -165,9 +165,7 @@ public class Widget extends JPanel implements
|
||||
visibility != Visibility.NONE && visibleProperty.isEnabled());
|
||||
paintWidget(brush);
|
||||
|
||||
if (mouseOver && mouseOverCloseButton) {
|
||||
SwingUtils.paintCloseIcon(brush, getWidth());
|
||||
}
|
||||
SwingUtils.paintCloseIcon(brush, getWidth(), mouseOver, mouseOverCloseButton);
|
||||
|
||||
}
|
||||
|
||||
|
@ -81,8 +81,8 @@ public class ProgressSquare extends Widget {
|
||||
.format(donePercent * 100) + "%",
|
||||
(int) (side / 8d * 3d),
|
||||
(int) (side / 8d * (donePercent > 0.5 ? 3d : 5d)));
|
||||
paintSmiley(visibility, brush, (int) (side / 8d * 3d) + 65,
|
||||
(int) ((side / 8d * (donePercent > 0.5 ? 3d : 5d)) - 16d));
|
||||
paintSmiley(visibility, brush, (int) (side / 8d * 3d),
|
||||
(int) ((side / 8d * (donePercent > 0.5 ? 3d : 5d)) - 32d));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user