-var monthRange = 2; // number of months to include in the event list\r
-var includeTodos = true; // disable to remove ToDos from event list\r
-var useBackgroundImage = true; // use background_portrait.png and background_landscape.png to fake transparency. Set to "false" to use a solid background color\r
-var showCombinedDateTime = false;// only show the time for events happening today, otherwise just show the date\r
-var showLocation = true; // show the location for meeting events\r
-var showTodayAsText = true; // if enabled, the current date will be shown as "Today" instead of "31.12"\r
-var todayText = 'Today'; // text to display for "Today"\r
-var tomorrowText = 'Tomorrow'; // text to display for "Tomorrow"\r
-var showNowAsText = true; // if enabled, the appointment time will be shown as "Now" instead of "12:00"\r
-var nowText = 'Now'; // text to display for "Now"\r
-var dateSeparator = '.'; // separator for dates. e.g. "31.12" or "31/12"\r
-var dateFormat = 'auto' // how dates will be displayed. 'auto' will autodetect your phone's date format setting. 'MMDD' will write month first, 'DDMM' will write day first\r
-var weekDayLength = 2; // defines how many characters of the weekday will be shown. E.g. 2 will cut "Friday" to "Fr"\r
-var updateDataInterval = 5; // how many minutes to wait before updating the displayed data. The higher the number, the less battery is used\r
-var calendarApp = 0x10005901; // UID of the calendar app to run when clicking the widget. 0x10005901 = buildin calendar, 0x20004ec1 = Epocware Handy Calendar\r
-var eventsPerWidget = 4; // number of events to show per widget. Default is 4\r
-var showNothingText = true; // if set to "true", show a text if no events are in the list\r
-var nothingText = 'No further events within ' + monthRange + ' months'; // text to show when no events are in the list\r
-var enableDaylightSaving = true;// enable this if you are in a timezone that has daylight saving time (+1h)\r
-\r
-var cssStyle_background = "color:#ffffff; background-color:#000000"; // Defines the background of the widget. If you want to use a background image, set useBackgroundImage = true below. For the default themes, black, gray, and light blue, codes are #292029, #e7dfe7, #009aef\r
-var cssStyle_backgroundFullscreen = "color:#ffffff; background-color:#000000"; // Same as background but for the fullscreen version of the widget\r
-var cssStyle_weekDay = ""; // Defines the appearance of all week day texts\r
-var cssStyle_date = ""; // Defines the appearance of all date texts\r
-var cssStyle_today = "color:#ff0000"; // Defines the appearance of "Today" text\r
-var cssStyle_tomorrow = "color:#0000ff"; // Defines the appearance of "Tomorrow" text\r
-var cssStyle_time = ""; // Defines the appearance of all time texts\r
-var cssStyle_now = "color:#ff00ff"; // Defines the appearance of "Now" text\r
-var cssStyle_description = ""; // Defines the appearance of all event descriptions\r
-var cssStyle_icon = "width:15px; height:15px"; // Defines size and appearance of icons\r
+// valid types for the config object are 'Int', 'Bool', 'String', 'Enum', 'UID', 'Array'\r
+var config = {\r
+ monthRange: { Type: 'Int', Default: 2, Value: 2,},\r
+ includeTodos: { Type: 'Bool', Default: true, Value: true,},\r
+ useBackgroundImage: { Type: 'Bool', Default: true, Value: true,},\r
+ backgroundImageLocation: { Type: 'Enum', Default: 'internal', Value: 'internal', ValidValues: ['internal', 'external']},\r
+ showCombinedDateTime: { Type: 'Bool', Default: false, Value: false,},\r
+ showLocation: { Type: 'Bool', Default: true, Value: true,},\r
+ showTodayAsText: { Type: 'Bool', Default: true, Value: true,},\r
+ todayText: { Type: 'String', Default: getLocalizedText('settings.default.todayText'), Value: getLocalizedText('settings.default.todayText'),},\r
+ tomorrowText: { Type: 'String', Default: getLocalizedText('settings.default.tomorrowText'), Value: getLocalizedText('settings.default.tomorrowText'),},\r
+ showNowAsText: { Type: 'Bool', Default: true, Value: true,},\r
+ nowText: { Type: 'String', Default: getLocalizedText('settings.default.nowText'), Value: getLocalizedText('settings.default.nowText'),},\r
+ markOverdueTodos: { Type: 'Bool', Default: true, Value: true,},\r
+ overdueText: {Type: 'String', Default: getLocalizedText('settings.default.overdueText'), Value: getLocalizedText('settings.default.overdueText'),},\r
+ dateSeparator: { Type: 'String', Default: getLocalizedText('settings.default.dateSeparator'), Value: getLocalizedText('settings.default.dateSeparator'),},\r
+ dateFormat: { Type: 'Enum', Default: 'auto', Value: 'auto', ValidValues: ['auto', 'DDMM', 'MMDD'],},\r
+ weekDayLength: { Type: 'Int', Default: 2, Value: 2,},\r
+ updateDataInterval: { Type: 'Int', Default: 5, Value: 5,},\r
+ calendarApp: { Type: 'UID', Default: 0x10005901, Value: 0x10005901,},\r
+ eventsPerWidget: { Type: 'Int', Default: 4, Value: 4,},\r
+ showNothingText: { Type: 'Bool', Default: true, Value: true,},\r
+ nothingText: { Type: 'String', Default: getLocalizedText('settings.default.nothingText'), Value: getLocalizedText('settings.default.nothingText'),},\r
+ enableDaylightSaving: { Type: 'Bool', Default: true, Value: true,},\r
+ daylightSavingOffset: { Type: 'Int', Default: 1, Value: 1,},\r
+ hideWidgetOnCalendarOpen: { Type: 'Bool', Default: false, Value: false,},\r
+ showCalendarIndicator: { Type: 'Bool', Default: true, Value: true,},\r
+ excludedCalendars: { Type: 'Array', Default: '', Value: '',},\r
+ cssStyle_background: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',},\r
+ cssStyle_backgroundFullscreen: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',},\r
+ cssStyle_weekDay: { Type: 'String', Default: '', Value: '',},\r
+ cssStyle_date: { Type: 'String', Default: '', Value: '',},\r
+ cssStyle_today: { Type: 'String', Default: 'color:#ff0000', Value: 'color:#ff0000',},\r
+ cssStyle_tomorrow: { Type: 'String', Default: 'color:#0000ff', Value: 'color:#0000ff',},\r
+ cssStyle_time: { Type: 'String', Default: '', Value: '',},\r
+ cssStyle_now: { Type: 'String', Default: 'color:#ff00ff', Value: 'color:#ff00ff',},\r
+ cssStyle_description: { Type: 'String', Default: '', Value: '',},\r
+ cssStyle_icon: { Type: 'String', Default: 'width:15px; height:15px', Value: 'width:15px; height:15px',},\r
+ cssStyle_overdue: { Type: 'String', Default: 'color:#ffff00', Value: 'color:#ffff00',},\r
+ cssStyle_calendar1: { Type: 'String', Default: 'background-color:#0757cf', Value: 'background-color:#0757cf',},\r
+ cssStyle_calendar2: { Type: 'String', Default: 'background-color:#579f37', Value: 'background-color:#579f37',},\r
+ cssStyle_calendar3: { Type: 'String', Default: 'background-color:#ff9f07', Value: 'background-color:#ff9f07',},\r
+ cssStyle_calendar4: { Type: 'String', Default: 'background-color:#af8fef', Value: 'background-color:#af8fef',},\r
+ cssStyle_calendar5: { Type: 'String', Default: 'background-color:#57afbf', Value: 'background-color:#57afbf',},\r
+ cssStyle_calendar6: { Type: 'String', Default: 'background-color:#9fdf57', Value: 'background-color:#9fdf57',},\r
+}\r
+\r
+\r