1
0
Fork 0

Mrk.Color doesn't reflect the color selected #1706

master
Danny 2022-04-18 15:13:25 +02:00
parent 9ce4883e78
commit 1a42e8dcb4
4 changed files with 21 additions and 22 deletions

View File

@ -8,3 +8,4 @@
0.03: a lot of more settings for outline, colors and highlights 0.03: a lot of more settings for outline, colors and highlights
0.04: finalized README, fixed settings cancel, fixed border-setting 0.04: finalized README, fixed settings cancel, fixed border-setting
0.05: bugfix: default settings 0.05: bugfix: default settings
0.06: bugfix: Mrk.Color doesn't reflect the color selected, fixes #1706

View File

@ -8,15 +8,15 @@ Shows the
### The settings menu ### The settings menu
Calendar View can be customized Calendar View can be customized
* < Save: Exist and save the current settings * < Save: Exit and save the current settings
* Show date: Choose if and how the date is displayed: none, locale (default), monthfull or monthshort.yearshort #weeknum with 0 prefixed * Show date: Choose if and how the date is displayed: none, locale [default], monthfull or monthshort.yearshort #weeknum with 0 prefixed
* Start wday: Set day of week start. Values: 0=Sunday, 1=Monday,...,6=Saturday or -1=Relative to today (default 0: Sunday) * Start wday: Set day of week start. Values: 0=Sunday, 1=Monday,...,6=Saturday or -1=Relative to today [default 0: Sunday]
* Su color: Set Sundays color. Values: none (default), red, green or blue * Su color: Set Sundays color. Values: none [default], red, green or blue
* Border: show or none (default) * Border: show or none [default]
* Submenu Today settings - choose how today is highlighted * Submenu Today settings - choose how today is highlighted
* < Back: * < Back:
* Color: none, red (default), green or blue * Color: none, red [default], green or blue
* Marker: Outline today graphically. Values: none (default), circle, rect(angle) * Marker: Highlight today graphically. Values: none [default], circle, rectangle or filled
* Mrk.Color: Circle/rectangle color: red (default), green or blue * Mrk.Color: Circle/rectangle color: red, green [default] or blue
* Mrk.Size: Circle/rectangle thickness in pixel: min:1, max: 10, default:3 * Mrk.Size: Circle/rectangle thickness in pixel: min: 1 to 10:max [default:3]
* < Cancel: Exit and no change. Nevertheless missing default settings and superflous settings will be removed and saved. * < Cancel: Exit and no change. (Nevertheless missing default settings will be added and superflous settings will be removed.)

View File

@ -1,7 +1,7 @@
{ "id": "timecal", { "id": "timecal",
"name": "TimeCal", "name": "TimeCal",
"shortName":"TimeCal", "shortName":"TimeCal",
"version":"0.05", "version":"0.06",
"description": "TimeCal shows the date/time along with a 3 week calendar", "description": "TimeCal shows the date/time along with a 3 week calendar",
"icon": "icon.png", "icon": "icon.png",
"type": "clock", "type": "clock",

View File

@ -64,9 +64,7 @@
format: v => v ? /*LANG*/"show" : /*LANG*/"none", format: v => v ? /*LANG*/"show" : /*LANG*/"none",
onchange: v => chngdSttngs.calBrdr = v onchange: v => chngdSttngs.calBrdr = v
}, },
/*LANG*/"Today settings": () => { /*LANG*/"Today settings": () => showTodayMenu(),
showTodayMenu();
},
/*LANG*/"< Cancel": () => cancelExitSettings() /*LANG*/"< Cancel": () => cancelExitSettings()
}); });
}; };
@ -91,8 +89,8 @@
}, },
/*LANG*/"Mrk.Color": { /*LANG*/"Mrk.Color": {
value: chngdSttngs.tdyMrkClr, value: chngdSttngs.tdyMrkClr,
min: 0, max: 2, min: 1, max: 3,
format: v => [/*LANG*/"red", /*LANG*/"green", /*LANG*/"blue"][v], format: v => [undefined, /*LANG*/"red", /*LANG*/"green", /*LANG*/"blue"][v],
onchange: v => chngdSttngs.tdyMrkClr = v onchange: v => chngdSttngs.tdyMrkClr = v
}, },
/*LANG*/"Mrk.Size": { /*LANG*/"Mrk.Size": {