mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Removed ProgressRotation + added several small improvements II
This commit is contained in:
parent
2fab41a794
commit
dec4b214ce
@ -65,7 +65,7 @@ public class Widget extends JPanel implements
|
|||||||
private static final Color VERY_LIGHT_GRAY = new Color(220, 220, 220);
|
private static final Color VERY_LIGHT_GRAY = new Color(220, 220, 220);
|
||||||
private static final Font FONT = new Font("sans", Font.PLAIN, 12);
|
private static final Font FONT = new Font("sans", Font.PLAIN, 12);
|
||||||
public static final Color WIDGET_BACKGROUND_COLOR = ((Supplier<Color>) () ->{int i = 232;return new Color(i,i,i);}).get();
|
public static final Color WIDGET_BACKGROUND_COLOR = ((Supplier<Color>) () ->{int i = 232;return new Color(i,i,i);}).get();
|
||||||
private static final int WIDGET_TIMER_DELAY_MINIMUM = 25;
|
|
||||||
public final BooleanProperty visibilitySupportedColoredProperty
|
public final BooleanProperty visibilitySupportedColoredProperty
|
||||||
= new BooleanProperty("visibilitySupportedColoredProperty", true);
|
= new BooleanProperty("visibilitySupportedColoredProperty", true);
|
||||||
public final BooleanProperty visibleProperty
|
public final BooleanProperty visibleProperty
|
||||||
@ -102,7 +102,7 @@ public class Widget extends JPanel implements
|
|||||||
private WidgetMenu widgetMenu = null;
|
private WidgetMenu widgetMenu = null;
|
||||||
public Widget() {
|
public Widget() {
|
||||||
setBackground(BACKGROUND_COLOR);
|
setBackground(BACKGROUND_COLOR);
|
||||||
new Timer(getTimerDelay() > WIDGET_TIMER_DELAY_MINIMUM ? WIDGET_TIMER_DELAY_MINIMUM : getTimerDelay(), e -> repaint()).start();
|
new Timer(getTimerDelay(), e -> repaint()).start();
|
||||||
this.addMouseMotionListener(new MouseMotionListener() {
|
this.addMouseMotionListener(new MouseMotionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseDragged(MouseEvent e) {
|
public void mouseDragged(MouseEvent e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user