mirror of
https://github.com/robertvokac/time-calc.git
synced 2025-03-25 07:27:49 +01:00
Added several improvements
This commit is contained in:
parent
564256e96a
commit
a92ff1837d
@ -164,6 +164,9 @@ Smileys can be colored or white-black (can be set in configuration)
|
|||||||
* L - hide or show progress circle
|
* L - hide or show progress circle
|
||||||
* M - hide or show walking human
|
* M - hide or show walking human
|
||||||
* Y - hide or show smileys
|
* Y - hide or show smileys
|
||||||
|
* LEFT - switch to previous profile
|
||||||
|
* RIGHT - switch to next profile
|
||||||
|
* K - hide or show clock
|
||||||
|
|
||||||
## Command button
|
## Command button
|
||||||
|
|
||||||
|
@ -247,6 +247,31 @@ public class TimeCalcKeyAdapter extends KeyAdapter {
|
|||||||
switchProfile(false, true);
|
switchProfile(false, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case KeyEvent.VK_K: {
|
||||||
|
if(timeCalcConfiguration.clockVisibleProperty.isEnabled()) {
|
||||||
|
timeCalcConfiguration.clockVisibleProperty.disable();
|
||||||
|
} else {
|
||||||
|
timeCalcConfiguration.clockVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration. clockHandsLongVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockHandsColoredProperty.enable();
|
||||||
|
timeCalcConfiguration.clockHandsHourVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockHandsMinuteVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockHandsSecondVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockHandsMillisecondVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockBorderVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockBorderOnlyHoursProperty.disable();
|
||||||
|
timeCalcConfiguration.clockNumbersVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockCircleVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockCircleStrongBorderProperty.disable();
|
||||||
|
timeCalcConfiguration.clockCircleBorderColorProperty.setValue("0,0,255");
|
||||||
|
timeCalcConfiguration.clockCentreCircleVisibleProperty.enable();
|
||||||
|
timeCalcConfiguration.clockCentreCircleBlackProperty.disable();
|
||||||
|
timeCalcConfiguration.clockProgressVisibleOnlyIfMouseMovingOverProperty.disable();
|
||||||
|
timeCalcConfiguration.clockDateVisibleOnlyIfMouseMovingOverProperty.disable();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
if(!numberKeyWasPressed) {
|
if(!numberKeyWasPressed) {
|
||||||
Utils.showNotification(
|
Utils.showNotification(
|
||||||
@ -310,6 +335,7 @@ public class TimeCalcKeyAdapter extends KeyAdapter {
|
|||||||
Utils.showNotification("Info: Changing profile to: #" + profileNumber + " " + ((
|
Utils.showNotification("Info: Changing profile to: #" + profileNumber + " " + ((
|
||||||
profileName.isEmpty() ? "{Default profile}" :
|
profileName.isEmpty() ? "{Default profile}" :
|
||||||
profileName)), 5000);
|
profileName)), 5000);
|
||||||
|
timeCalcConfiguration.saveToTimeCalcProperties();
|
||||||
TimeCalcProperties.getInstance().loadProfile(profileName);
|
TimeCalcProperties.getInstance().loadProfile(profileName);
|
||||||
timeCalcConfiguration.loadFromTimeCalcProperties(
|
timeCalcConfiguration.loadFromTimeCalcProperties(
|
||||||
TimeCalcProperties.getInstance());
|
TimeCalcProperties.getInstance());
|
||||||
|
@ -172,6 +172,7 @@ public class WalkingHumanProgress extends Widget implements
|
|||||||
toasterManager.showToaster(new ImageIcon(image),
|
toasterManager.showToaster(new ImageIcon(image),
|
||||||
"Progress: " + (percentInt) + "%");
|
"Progress: " + (percentInt) + "%");
|
||||||
} else {
|
} else {
|
||||||
|
toasterManager.setToasterHeight(200);
|
||||||
toasterManager.showToaster("Progress: " + (percentInt) + "%");
|
toasterManager.showToaster("Progress: " + (percentInt) + "%");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user