Added several improvements

This commit is contained in:
Robert Vokac 2024-03-09 09:55:14 +00:00
parent 564256e96a
commit a92ff1837d
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055
3 changed files with 30 additions and 0 deletions

View File

@ -164,6 +164,9 @@ Smileys can be colored or white-black (can be set in configuration)
* L - hide or show progress circle
* M - hide or show walking human
* Y - hide or show smileys
* LEFT - switch to previous profile
* RIGHT - switch to next profile
* K - hide or show clock
## Command button

View File

@ -247,6 +247,31 @@ public class TimeCalcKeyAdapter extends KeyAdapter {
switchProfile(false, true);
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:
if(!numberKeyWasPressed) {
Utils.showNotification(
@ -310,6 +335,7 @@ public class TimeCalcKeyAdapter extends KeyAdapter {
Utils.showNotification("Info: Changing profile to: #" + profileNumber + " " + ((
profileName.isEmpty() ? "{Default profile}" :
profileName)), 5000);
timeCalcConfiguration.saveToTimeCalcProperties();
TimeCalcProperties.getInstance().loadProfile(profileName);
timeCalcConfiguration.loadFromTimeCalcProperties(
TimeCalcProperties.getInstance());

View File

@ -172,6 +172,7 @@ public class WalkingHumanProgress extends Widget implements
toasterManager.showToaster(new ImageIcon(image),
"Progress: " + (percentInt) + "%");
} else {
toasterManager.setToasterHeight(200);
toasterManager.showToaster("Progress: " + (percentInt) + "%");
}