diff --git a/TimeAndDate@nightflame/README.md b/TimeAndDate@nightflame/README.md index d7288f3c1..9026f2f96 100644 --- a/TimeAndDate@nightflame/README.md +++ b/TimeAndDate@nightflame/README.md @@ -1,29 +1,25 @@ -Time and Date Cinnamon Desklet v0.1 - 19 June 2013 +# Time and Date Desklet -This is a simple desklet to display the time and date. The size and format of the date are configurable by changing the values in metadata.json. This can be launched from the Desklet itself by selecting Config from the menu. +This is a simple customizable desklet to display the time and date. The format of the time and date are configurable through desklet settings. -Adjust the following paramters in the metadata.json file which is stored in ~/.local/share/cinnamon/desklets/TimeAndDate@nightflame: +### Customization - "timeFormat": "%H:%M", - "timeSize": "50pt", - "dateFormat": "%A,%e %B", - "dateSize": "25pt" +You can customize this desklet to your taste. Change yours fonts, colors, sizes and more. Check out the different options. -** REMEMBER TO LEAVE THE COMMAS IN - except for the last line!** +### How to configure it: -The time and date format are from JavaScript toLocaleFormat function, and the possible values can be found at: +The time and date format are from the JavaScript `toLocaleFormat` function, and the possible values can be found at: http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html -For exmple to add seconds change timeFormat to: +For example to change time format to HOURS:MINUTES:SECONDS use `%H:%M:%S`. Also, you may use any normal characters between special formatting characters like `%H text %M`, which would render as ex. `14 text 50` at 14:50. - "timeFormat": "%H:%M:%S", - -** After changing the settings you need to remove and re-add the Desklet ** +### Tips +- You can add multiple desklets by clicking the "+" icons in your desklet manager. +- You can backup your desklets by going to the settings. There you should find an icon in the top right corner. Select the Export to a file option or import to load your backup. -If I knew what I was doing I would update the config through the GUI. Maybe next version. --Steve - desklets [at] stargw [dot] eu - +### Remarks + +This desklet was originally made by @nightflame. At the time of writing, this desklet had not been updated for years. I decided to heavily modernize it, because it was lacking in functionality compared with newer desklets. \ No newline at end of file diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/CHANGELOG.md b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/CHANGELOG.md new file mode 100644 index 000000000..135adb4c6 --- /dev/null +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/CHANGELOG.md @@ -0,0 +1,25 @@ + +## [2.0] - 05.11.2025 + +Overhaul/modernization of 8+ years old code. + +### Added + +- Many new utility and visual settings +- `CHANGELOG.md` +- `settings-schema.json` + + +### Changed + +- General code refactoring +- Completely changed desklet customization, now its using xlet-settings instead of proprietary `metadata.json` and `stylesheet.css` customization. +- Reworked UI rendering +- New screenshot +- `README.md` +- `TimeAndDate@nightflame.pot` + + +### Removed + +- All previous translation, they are no longer relevant. \ No newline at end of file diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/README b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/README deleted file mode 100644 index d7288f3c1..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/README +++ /dev/null @@ -1,29 +0,0 @@ - -Time and Date Cinnamon Desklet v0.1 - 19 June 2013 - -This is a simple desklet to display the time and date. The size and format of the date are configurable by changing the values in metadata.json. This can be launched from the Desklet itself by selecting Config from the menu. - -Adjust the following paramters in the metadata.json file which is stored in ~/.local/share/cinnamon/desklets/TimeAndDate@nightflame: - - "timeFormat": "%H:%M", - "timeSize": "50pt", - "dateFormat": "%A,%e %B", - "dateSize": "25pt" - -** REMEMBER TO LEAVE THE COMMAS IN - except for the last line!** - -The time and date format are from JavaScript toLocaleFormat function, and the possible values can be found at: - -http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html - -For exmple to add seconds change timeFormat to: - - "timeFormat": "%H:%M:%S", - -** After changing the settings you need to remove and re-add the Desklet ** - -If I knew what I was doing I would update the config through the GUI. Maybe next version. - --Steve - desklets [at] stargw [dot] eu - diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/desklet.js b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/desklet.js index b50d111bd..850f65dda 100644 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/desklet.js +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/desklet.js @@ -9,109 +9,298 @@ // -Steve // desklets [at] stargw [dot] eu +// This ^^^ is a bit old :) - 5 November 2025 + const Gio = imports.gi.Gio; const St = imports.gi.St; +const Clutter = imports.gi.Clutter; +const Pango = imports.gi.Pango; const Desklet = imports.ui.desklet; +const Settings = imports.ui.settings; +const Main = imports.ui.main; const Lang = imports.lang; const Mainloop = imports.mainloop; const GLib = imports.gi.GLib; const PopupMenu = imports.ui.popupMenu; const Util = imports.misc.util; - const Gettext = imports.gettext; -const UUID = "TimeAndDate@nightflame"; - -// l10n/translation support -Gettext.bindtextdomain(UUID, GLib.get_home_dir() + "/.local/share/locale") +const UUID = "TimeAndDate@nightflame"; +const DESKLET_ROOT = imports.ui.deskletManager.deskletMeta[UUID].path; +// translation support function _(str) { - return Gettext.dgettext(UUID, str); + return Gettext.dgettext(UUID, str); +} + +function MyDesklet(metadata, desklet_id) { + // translation init: if installed in user context, switch to translations in user's home dir + if(!DESKLET_ROOT.startsWith("/usr/share/")) { + Gettext.bindtextdomain(UUID, GLib.get_home_dir() + "/.local/share/locale"); + } + this._init(metadata, desklet_id); } -function MyDesklet(metadata){ - this._init(metadata); +function main(metadata, desklet_id) { + return new MyDesklet(metadata, desklet_id); } + MyDesklet.prototype = { __proto__: Desklet.Desklet.prototype, - _init: function(metadata){ + _init: function(metadata, desklet_id){ Desklet.Desklet.prototype._init.call(this, metadata); - this.metadata = metadata - this.dateFormat = this.metadata["dateFormat"]; - this.dateSize = this.metadata["dateSize"]; - this.timeFormat = this.metadata["timeFormat"]; - this.timeSize = this.metadata["timeSize"]; - - - this._clockContainer = new St.BoxLayout({vertical:true, style_class: 'clock-container'}); - - this._dateContainer = new St.BoxLayout({vertical:false, style_class: 'date-container'}); - this._timeContainer = new St.BoxLayout({vertical:false, style_class: 'time-container'}); + this.desklet_id = desklet_id; + this.DESKLET_ROOT = DESKLET_ROOT; - this._date = new St.Label(); - this._time = new St.Label(); - - - this._dateContainer.add(this._date); - this._timeContainer.add(this._time); + this.settings = new Settings.DeskletSettings(this, this.metadata["uuid"], desklet_id); - this._clockContainer.add(this._timeContainer, {x_fill: false, x_align: St.Align.MIDDLE}); - this._clockContainer.add(this._dateContainer, {x_fill: false, x_align: St.Align.MIDDLE}); + this.settings.bindProperty(Settings.BindingDirection.IN, "time-format", "timeFormat", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "date-format", "dateFormat", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "refresh-period", "refreshPeriod", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "is-order-reversed", "isOrderReversed", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "is-two-column", "isTwoColumns", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "is-width-forced", "isWidthForced", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "forced-width-size", "forcedWidthSize", this.on_setting_changed); - this.setContent(this._clockContainer); - this.setHeader(_("Time And Date")); - - // Set the font sizes from .json file - - this._date.style="font-size: " + this.dateSize; - this._time.style="font-size: " + this.timeSize; - - // let dir_path = ; - // this.save_path = dir_path.replace('~', GLib.get_home_dir()); - this.configFile = GLib.get_home_dir() + "/.local/share/cinnamon/desklets/TimeAndDate@nightflame/metadata.json"; - this.helpFile = GLib.get_home_dir() + "/.local/share/cinnamon/desklets/TimeAndDate@nightflame/README"; - - global.log("Config file " + this.configFile); - - this._menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); + this.settings.bindProperty(Settings.BindingDirection.IN, "desklet-background", "deskletBackground", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "desklet-border-radius", "deskletBorderRadius", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "desklet-border-width", "deskletBorderWidth", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "desklet-border-color", "deskletBorderColor", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "padding-scale", "paddingScale", this.on_setting_changed); - this._menu.addAction(_("Edit Config"), Lang.bind(this, function() { - Util.spawnCommandLine("xdg-open " + this.configFile); - })); - - this._menu.addAction(_("Help"), Lang.bind(this, function() { - Util.spawnCommandLine("xdg-open " + this.helpFile); - })); + this.settings.bindProperty(Settings.BindingDirection.IN, "time-font", "timeFontRaw", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "time-text-color", "timeTextColor", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "time-text-shadow", "timeTextShadow", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "time-text-shadow-color", "timeTextShadowColor", this.on_setting_changed); + + this.settings.bindProperty(Settings.BindingDirection.IN, "date-font", "dateFontRaw", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "date-text-color", "dateTextColor", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "date-text-shadow", "dateTextShadow", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "date-text-shadow-color", "dateTextShadowColor", this.on_setting_changed); + + this.settings.bindProperty(Settings.BindingDirection.IN, "show-decorations", "showDecorations", this.on_setting_changed); + this.settings.bindProperty(Settings.BindingDirection.IN, "desklet-header", "deskletHeader", this.on_setting_changed); + + this.timeout = null; + + this.runDesklet(); + + }, + + /** + * Starts desklet + */ + runDesklet: function() { + this.timeFont = this.parseFontStringToCSS(this.timeFontRaw); + this.dateFont = this.parseFontStringToCSS(this.dateFontRaw); + + this.renderGUI(); + this.renderDecorations(); this._updateDate(); + }, + + /** + * Renders entire GUI except for decorations + */ + renderGUI: function() { + + + // Destroy root_el and its children to avoid creating multiple copies and orphaned elements. + if (this.root_el !== null && this.root_el !== undefined) { + this.root_el.destroy_all_children(); + this.root_el.destroy(); + } + + this.root_el = new Clutter.Actor(); + this.setContent(this.root_el); + + let container = new St.Group({style_class: "clock-container"}); + this.root_el.add_child(container); + + container.style = (this.showDecorations ? "margin: 0em;" : "margin: 0.5em;") + + "background-color:" + this.deskletBackground + ";" + + "border-radius: " + this.deskletBorderRadius + "px;" + + "border: solid " + this.deskletBorderWidth + "px " + this.deskletBorderColor + ";" + + "padding: "+ Math.round(4*(this.paddingScale)) + "px " + Math.round(10*(this.paddingScale+1)) + "px;"; + + + if (this.isWidthForced) { + container.set_width(this.forcedWidthSize); + } + + let grid = new Clutter.GridLayout(); + grid.set_row_spacing(Math.round(1*this.paddingScale)); + grid.set_column_spacing(Math.round(8*this.paddingScale)); + container.set_layout_manager(grid); + + + this.timeLabel = new St.Label({ style_class: 'time-label' }); + this.dateLabel = new St.Label({ style_class: 'date-label' }); + + + this.timeLabel.style = "font-family: '" + this.timeFont["font-family"] + "';" + + "font-size: " + this.timeFont["font-size"] + "pt;" + + "color:" + this.timeTextColor + ";" + + "font-weight:" + this.timeFont["font-weight"] + ";" + + "font-style:" + this.timeFont["font-style"] + ";" + + "font-stretch:" + this.timeFont["font-stretch"] + ";" + + "text-shadow:" + (this.timeTextShadow ? "2px 2px 4px " + this.timeTextShadowColor : "none") + ";"; + + + this.dateLabel.style = "font-family: '" + this.dateFont["font-family"] + "';" + + "font-size: " + this.dateFont["font-size"] + "pt;" + + "color:" + this.dateTextColor + ";" + + "font-weight:" + this.dateFont["font-weight"] + ";" + + "font-style:" + this.dateFont["font-style"] + ";" + + "font-stretch:" + this.dateFont["font-stretch"] + ";" + + "text-shadow:" + (this.dateTextShadow ? "2px 2px 4px " + this.dateTextShadowColor : "none") + ";"; + + + + let timeLabelContainer = new St.BoxLayout({vertical:!this.isTwoColumns, style_class: 'date-container'}); + let dateLabelContainer = new St.BoxLayout({vertical:!this.isTwoColumns, style_class: 'time-container'}); + timeLabelContainer.add(this.timeLabel, {x_fill: false, y_fill: false, x_align: St.Align.MIDDLE, y_align: St.Align.MIDDLE}); + dateLabelContainer.add(this.dateLabel, {x_fill: false, y_fill: false, x_align: St.Align.MIDDLE, y_align: St.Align.MIDDLE}); + + let timeLabelGridOrder = 0 + this.isOrderReversed; + let dateLabelGridOrder = (1 + this.isOrderReversed) % 2; + + // Display time only if format is specified + if (this.timeFormat.length > 0) { + if (this.isTwoColumns) { + grid.attach(timeLabelContainer, timeLabelGridOrder, 0, 1, 1); + } else { + grid.attach(timeLabelContainer, 0, timeLabelGridOrder, 1, 1); + } + } + + // Display date only if format is specified + if (this.dateFormat.length > 0) { + if (this.isTwoColumns) { + grid.attach(dateLabelContainer, dateLabelGridOrder, 0, 1, 1); + } else { + grid.attach(dateLabelContainer, 0, dateLabelGridOrder, 1, 1); + } + } + + }, + /** + * Render desklet decorations + */ + renderDecorations: function() { + + this.setHeader(this.deskletHeader); + + this.metadata["prevent-decorations"] = !this.showDecorations; + this._updateDecoration(); + }, + on_desklet_removed: function() { - Mainloop.source_remove(this.timeout); + if (this.timeout !== null) { + GLib.source_remove(this.timeout); + } }, + /** + * This function should be used as a callback when settings change + */ + on_setting_changed: function() { + this.on_desklet_removed(); + this.runDesklet(); + }, + + + /** + * Parse raw font string. + * @param {string} font_string - Font descriptor string + * @returns {{"font-family": string, "font-size": Number, "font-weight": Number, "font-style": string, "font-stretch": string}} Font descriptor object + */ + parseFontStringToCSS: function(font_string) { + // Some fonts don't work, so a fallback font is a good idea + const fallback_font_str = "Ubuntu Regular 16"; + + // String are passed by reference here + // make sure to copy the string to avoid triggering settings callback on change + const font_string_copy = font_string.slice().trim(); + + let css_font; + try { + const my_font_description = Pango.font_description_from_string(font_string_copy); + css_font = this._PangoFontDescriptionToCSS(my_font_description); + } catch (e) { + Main.notifyError( + _("Sorry, this font is not supported, please select a different one.") + + _(" Font: `") + font_string_copy + _("` Error: ") + + e.toString() + ); + + const fallback_font_description = Pango.font_description_from_string(fallback_font_str); + css_font = this._PangoFontDescriptionToCSS(fallback_font_description); + } finally { + return css_font; + } + + }, + + + /** + * Process Pango.FontDescription and return valid CSS values + * @param {Pango.FontDescription} font_description - Font descriptor + * @returns {{"font-family": string, "font-size": Number, "font-weight": Number, "font-style": string, "font-stretch": string}} Font descriptor object + */ + _PangoFontDescriptionToCSS: function(font_description) { + const PangoStyle_to_CSS_map = { + [Pango.Style.NORMAL]: "normal", + [Pango.Style.OBLIQUE]: "oblique", + [Pango.Style.ITALIC]: "italic", + }; + + // font-stretch CSS property seems to be ignored by the CSS renderer + const PangoStretch_to_CSS_map = { + [Pango.Stretch.ULTRA_CONDENSED]: "ultra-condensed", + [Pango.Stretch.EXTRA_CONDENSED]: "extra-condensed", + [Pango.Stretch.CONDENSED]: "condensed", + [Pango.Stretch.NORMAL]: "normal", + [Pango.Stretch.SEMI_EXPANDED]: "semi-expanded", + [Pango.Stretch.EXPANDED]: "expanded", + [Pango.Stretch.EXTRA_EXPANDED]: "extra-expanded", + [Pango.Stretch.ULTRA_EXPANDED]: "ultra-expanded", + }; + + return { + "font-family": font_description.get_family(), + "font-size": Math.floor(font_description.get_size() / Pango.SCALE), + "font-weight": font_description.get_weight(), + "font-style": PangoStyle_to_CSS_map[font_description.get_style()], + "font-stretch": PangoStretch_to_CSS_map[font_description.get_stretch()] + }; + }, + _updateDate: function(){ - // let timeFormat = '%H:%M'; - // let dateFormat = '%A,%e %B'; let displayDate = new Date(); + + // Update only if format is specified + if (this.timeFormat.length > 0) { + this.timeLabel.set_text(displayDate.toLocaleFormat(this.timeFormat)); + } - - this._time.set_text(displayDate.toLocaleFormat(this.timeFormat)); - this._date.set_text(displayDate.toLocaleFormat(this.dateFormat)); - - this.timeout = Mainloop.timeout_add_seconds(1, Lang.bind(this, this._updateDate)); + if (this.dateFormat.length > 0) { + this.dateLabel.set_text(displayDate.toLocaleFormat(this.dateFormat)); + } + + this.timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, this.refreshPeriod, () => { this._updateDate() }); } } -function main(metadata, desklet_id){ - let desklet = new MyDesklet(metadata, desklet_id); - return desklet; -} + diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/metadata.json b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/metadata.json index 7e7b316ef..6bde33050 100644 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/metadata.json +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/metadata.json @@ -1,10 +1,7 @@ { - "description": "A fork desklet that displays the time and date", - "prevent-decorations": false, + "max-instances": "5", + "description": "Themeable desklet that displays the time and date. New overhauled version.", "uuid": "TimeAndDate@nightflame", - "name": "Time and Date Desklet", - "timeFormat": "%H:%M", - "timeSize": "40pt", - "dateFormat": "%A,%e %B", - "dateSize": "15pt" + "version": "2.0", + "name": "Time and Date Desklet" } diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/TimeAndDate@nightflame.pot b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/TimeAndDate@nightflame.pot index e95de8c4c..91cf20c39 100644 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/TimeAndDate@nightflame.pot +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/TimeAndDate@nightflame.pot @@ -1,38 +1,211 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. +# TIME AND DATE DESKLET +# This file is put in the public domain. +# nightflame, 2017 # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"Project-Id-Version: TimeAndDate@nightflame 2.0\n" +"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/" +"issues\n" +"POT-Creation-Date: 2025-11-05 19:28+0100\n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: desklet.js:67 -msgid "Time And Date" +#. metadata.json->description +msgid "" +"Themeable desklet that displays the time and date. New overhauled version." msgstr "" -#: desklet.js:83 -msgid "Edit Config" +#. metadata.json->name +msgid "Time and Date Desklet" msgstr "" -#: desklet.js:87 -msgid "Help" +#. settings-schema.json->preferences-page->title +msgid "Preferences" msgstr "" -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" +#. settings-schema.json->theme-page->title +#. settings-schema.json->theme-section->title +msgid "Theme" msgstr "" -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" +#. settings-schema.json->general-preferences-section->title +msgid "General" +msgstr "" + +#. settings-schema.json->time-theme-section->title +msgid "Time label font" +msgstr "" + +#. settings-schema.json->date-theme-section->title +msgid "Date label font" +msgstr "" + +#. settings-schema.json->desklet-decorations-section->title +msgid "Desklet decorations" +msgstr "" + +#. settings-schema.json->time-format->description +msgid "Time format" +msgstr "" + +#. settings-schema.json->time-format->tooltip +msgid "Set your time format." +msgstr "" + +#. settings-schema.json->date-format->description +msgid "Date format" +msgstr "" + +#. settings-schema.json->date-format->tooltip +msgid "Set the date format." +msgstr "" + +#. settings-schema.json->datetime-format-label->description +msgid "" +"Date/time format follows `strftime` formatting. Read more on desklet's " +"webpage or `strftime` documentation: \n" +"https://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html" +msgstr "" + +#. settings-schema.json->refresh-period->description +msgid "Refresh period" +msgstr "" + +#. settings-schema.json->refresh-period->tooltip +msgid "Set how quickly the clock should refresh itself." +msgstr "" + +#. settings-schema.json->is-order-reversed->description +msgid "Reverse label order" +msgstr "" + +#. settings-schema.json->is-two-column->description +msgid "Two column layout" +msgstr "" + +#. settings-schema.json->is-width-forced->description +msgid "Force specific width" +msgstr "" + +#. settings-schema.json->is-width-forced->tooltip +msgid "" +"Select if you want to force the desklet to have a certain width, so it won't " +"scale with different date length." +msgstr "" + +#. settings-schema.json->forced-width-size->description +msgid "Forced width size" +msgstr "" + +#. settings-schema.json->forced-width-size->tooltip +msgid "Force desklet width." +msgstr "" + +#. settings-schema.json->time-font->description +#. settings-schema.json->date-font->description +msgid "Font name (choose regular versions)" +msgstr "" + +#. settings-schema.json->time-font->tooltip +#. settings-schema.json->date-font->tooltip +msgid "Change font family" +msgstr "" + +#. settings-schema.json->time-font-bold->description +#. settings-schema.json->date-font-bold->description +msgid "Bold" +msgstr "" + +#. settings-schema.json->time-font-italic->description +#. settings-schema.json->date-font-italic->description +msgid "Italic" +msgstr "" + +#. settings-schema.json->time-text-color->description +#. settings-schema.json->date-text-color->description +msgid "Text color" +msgstr "" + +#. settings-schema.json->time-text-color->tooltip +#. settings-schema.json->date-text-color->tooltip +msgid "Set the text color." +msgstr "" + +#. settings-schema.json->time-text-shadow->description +#. settings-schema.json->date-text-shadow->description +msgid "Text shadow" +msgstr "" + +#. settings-schema.json->time-text-shadow-color->description +#. settings-schema.json->date-text-shadow-color->description +msgid "Text shadow color" +msgstr "" + +#. settings-schema.json->desklet-background->description +msgid "Background color" +msgstr "" + +#. settings-schema.json->desklet-background->tooltip +msgid "Set the desklet background." +msgstr "" + +#. settings-schema.json->desklet-border-radius->description +msgid "Border radius" +msgstr "" + +#. settings-schema.json->desklet-border-radius->tooltip +msgid "Increase or decrease border curvature." +msgstr "" + +#. settings-schema.json->desklet-border-width->description +msgid "Border width (set to 0 to disable border)" +msgstr "" + +#. settings-schema.json->desklet-border-width->tooltip +msgid "Increase or decrease the desklet border width." +msgstr "" + +#. settings-schema.json->desklet-border-color->description +msgid "Border color" +msgstr "" + +#. settings-schema.json->desklet-border-color->tooltip +msgid "Set the desklet border color." +msgstr "" + +#. settings-schema.json->padding-scale->description +msgid "Padding scale" +msgstr "" + +#. settings-schema.json->padding-scale->tooltip +msgid "Increase or decrease padding between elements." +msgstr "" + +#. settings-schema.json->show-decorations->description +msgid "Show desklet decorations" +msgstr "" + +#. settings-schema.json->desklet-decorations-note->description +msgid "" +"Following settings require desklet decorations to be enabled on your " +"system.\n" +"Desklet preferences are located in System Settings > Desklets > General " +"Settings tab; there you will be able to enable border/header decorations." +msgstr "" + +#. settings-schema.json->desklet-header->description +msgid "Desklet header" +msgstr "" + +#. settings-schema.json->desklet-header->tooltip +msgid "" +"Set your desklet header. Make sure desklet headers are enabled in system " +"settings." msgstr "" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/bg.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/bg.po deleted file mode 100644 index 4fbb8e352..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/bg.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-10-19 19:49+0300\n" -"PO-Revision-Date: 2017-10-19 19:50+0300\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.7.1\n" -"Last-Translator: Peyu Yovev \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: bg\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Час и дата" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Редактирай конфигурацията" - -#: desklet.js:87 -msgid "Help" -msgstr "Помощ" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Форк на десклет, който показва часа и датата" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Десклет за час и дата" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ca.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ca.po deleted file mode 100644 index ddc88400f..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ca.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Robert Antoni Buj Gelonch , 2018. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2018-02-26 14:16+0100\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" -"Last-Translator: Robert Antoni Buj Gelonch \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: ca\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Data i hora" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Edita la configuració" - -#: desklet.js:87 -msgid "Help" -msgstr "Ajuda" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Una bifurcació que mostra la data i l'hora" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Miniaplicació d'escriptori de la data i l'hora" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/da.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/da.po deleted file mode 100644 index 8e9ed6c7c..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/da.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-13 16:25+0200\n" -"PO-Revision-Date: 2017-06-13 16:28+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.7.1\n" -"Last-Translator: Alan Mortensen \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: da\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Tid og dato" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Redigér konfigurationen" - -#: desklet.js:87 -msgid "Help" -msgstr "Hjælp" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Et forgrenet skrivebordsprogram som viser tid og dato" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Tid- og dato" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/de.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/de.po deleted file mode 100644 index 9e2192965..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/de.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-29 10:42+0200\n" -"PO-Revision-Date: 2017-04-29 10:44+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.6\n" -"Last-Translator: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: de\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Zeit und Datum" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Konfiguration bearbeiten" - -#: desklet.js:87 -msgid "Help" -msgstr "Hilfe" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Ein Desklet, das die Uhrzeit und das Datum anzeigt" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Zeit und Datum Desklet" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/es.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/es.po deleted file mode 100644 index fa582ceb3..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/es.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2021-12-09 01:21-0300\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.0\n" -"Last-Translator: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: es\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Fecha y Hora" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Editar configuración" - -#: desklet.js:87 -msgid "Help" -msgstr "Ayuda" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Un fork del desklet que muestra la hora y la fecha" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Desklet de fecha y hora" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/fi.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/fi.po deleted file mode 100644 index 83036f805..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/fi.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2025-01-23 10:51+0200\n" -"Last-Translator: JTi65 \n" -"Language-Team: \n" -"Language: fi\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Aika ja päivä" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Muokkaa asetuksia" - -#: desklet.js:87 -msgid "Help" -msgstr "Ohje" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Työpöytäsovelma, joka näyttää kellonajan ja päivämäärän" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Aika ja päivä työpöytäsovelma" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/hu.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/hu.po deleted file mode 100644 index 78570190d..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/hu.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2021-04-11 10:57+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" -"Last-Translator: Balazs Bosak \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: hu\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Idő és dátum" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Beállítások szerkesztése" - -#: desklet.js:87 -msgid "Help" -msgstr "Segítség" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Asztalkalmazás, amely megjeleníti az időt és a dátumot" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Idő és dátum asztali alkalmazás" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/it.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/it.po deleted file mode 100644 index c89527e07..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/it.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2022-06-03 12:54+0200\n" -"Last-Translator: Dragone2 \n" -"Language-Team: \n" -"Language: it\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.3\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Data e Ora" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Modifica Configurazione" - -#: desklet.js:87 -msgid "Help" -msgstr "Aiuto" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Un desklet fork che mostra data e ora" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Data e Ora Desklet" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ko.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ko.po deleted file mode 100644 index 0a1ad0fc3..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ko.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Kevin Kim , 2020. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2020-09-02 17:08+0900\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.0.6\n" -"Last-Translator: Kevin Kim \n" -"Plural-Forms: nplurals=1; plural=0;\n" -"Language: ko_KR\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "날짜와 시간" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "설정 편집" - -#: desklet.js:87 -msgid "Help" -msgstr "도움말" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "간단한 날짜와 시간 데스크릿" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "간단한 날짜와 시간 데스크릿" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/nl.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/nl.po deleted file mode 100644 index d4c75d18e..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/nl.po +++ /dev/null @@ -1,37 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2024-04-19 14:38+0200\n" -"Last-Translator: qadzek\n" -"Language-Team: \n" -"Language: nl\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Tijd en Datum" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Bewerk Configuratie" - -#: desklet.js:87 -msgid "Help" -msgstr "Hulp" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Een fork van de desklet die de tijd en datum weergeeft" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Tijd en Datum Desklet" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/pt_BR.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/pt_BR.po deleted file mode 100644 index aea665c45..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/pt_BR.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Marcelo Aof, 2021. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2021-09-27 16:38-0300\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.0\n" -"Last-Translator: Marcelo Aof\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"Language: pt_BR\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Hora e data" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Editar configurações" - -#: desklet.js:87 -msgid "Help" -msgstr "Ajuda" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Um desklet que exibe a hora e a data" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Desklet de hora e data" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ro.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ro.po deleted file mode 100644 index 674e99267..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ro.po +++ /dev/null @@ -1,38 +0,0 @@ -# Romanian translations for PACKAGE package. -# Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Automatically generated, 2023. -# -msgid "" -msgstr "" -"Content-Transfer-Encoding: 8bit\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Language: ro\n" -"Language-Team: none\n" -"Last-Translator: Automatically generated\n" -"MIME-Version: 1.0\n" -"PO-Revision-Date: 2017-04-26 11:56+0800\n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\n" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Ora și data" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Editare configurare" - -#: desklet.js:87 -msgid "Help" -msgstr "Ajutor" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Un desklet derivat care afișează ora și data" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Desklet pentru oră și dată" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ru.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ru.po deleted file mode 100644 index 174dbc6fb..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/ru.po +++ /dev/null @@ -1,34 +0,0 @@ -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: \n" -"Last-Translator: blogdron\n" -"Language-Team: \n" -"Language: ru\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.1\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Время и Дата" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Редактировать файл конфигурации" - -#: desklet.js:87 -msgid "Help" -msgstr "Помощь" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Десклет, отображающий дату и время" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Время и Дата (Time and Date Desklet)" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/sk.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/sk.po deleted file mode 100644 index 5aa89bc10..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/sk.po +++ /dev/null @@ -1,39 +0,0 @@ -# Slovak translation of Time and Date desklet -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# Dušan Kazik , 2021. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2021-02-09 11:53+0100\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.1\n" -"Last-Translator: Dušan Kazik \n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" -"Language: sk\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Čas a dátum" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Upraviť konfiguráciu" - -#: desklet.js:87 -msgid "Help" -msgstr "Pomocník" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Alternatívny desklet, ktorý zobrazuje čas a dátum" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Desklet s časom a dátumom" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/vi.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/vi.po deleted file mode 100644 index 84c421067..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/vi.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:56+0800\n" -"PO-Revision-Date: 2025-10-19 05:54+0700\n" -"Last-Translator: loccun \n" -"Language-Team: \n" -"Language: vi\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.4.2\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "Thời gian và Ngày tháng" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "Chỉnh sửa Cấu hình" - -#: desklet.js:87 -msgid "Help" -msgstr "Trợ giúp" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "Một desklet fork hiển thị thời gian và ngày tháng" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "Desklet Thời gian và Ngày tháng" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/zh_CN.po b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/zh_CN.po deleted file mode 100644 index 73e5fcc3e..000000000 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/po/zh_CN.po +++ /dev/null @@ -1,39 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-26 11:57+0800\n" -"PO-Revision-Date: 2017-04-26 11:57+0800\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" -"Last-Translator: \n" -"Plural-Forms: nplurals=1; plural=0;\n" -"Language: zh_CN\n" - -#: desklet.js:67 -msgid "Time And Date" -msgstr "时间和日期" - -#: desklet.js:83 -msgid "Edit Config" -msgstr "编辑配置" - -#: desklet.js:87 -msgid "Help" -msgstr "帮助" - -#. TimeAndDate@nightflame->metadata.json->description -msgid "A fork desklet that displays the time and date" -msgstr "显示时间和日期的桌面小工具分支" - -#. TimeAndDate@nightflame->metadata.json->name -msgid "Time and Date Desklet" -msgstr "时间和日期桌面小工具" diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/settings-schema.json b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/settings-schema.json new file mode 100644 index 000000000..769b798a3 --- /dev/null +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/settings-schema.json @@ -0,0 +1,234 @@ +{ + "layout": { + "type": "layout", + "pages": [ + "preferences-page", + "theme-page" + ], + "preferences-page": { + "type": "page", + "title": "Preferences", + "sections": [ + "general-preferences-section", + "desklet-decorations-section" + ] + }, + "theme-page": { + "type": "page", + "title": "Theme", + "sections": [ + "theme-section", + "time-theme-section", + "date-theme-section" + ] + }, + "general-preferences-section": { + "type": "section", + "title": "General", + "keys": [ + "time-format", + "date-format", + "datetime-format-label", + "refresh-period", + "is-order-reversed", + "is-two-column", + "is-width-forced", + "forced-width-size" + ] + }, + "theme-section": { + "type": "section", + "title": "Theme", + "keys": [ + "desklet-background", + "desklet-border-radius", + "desklet-border-width", + "desklet-border-color", + "padding-scale" + ] + }, + "time-theme-section": { + "type": "section", + "title": "Time label font", + "keys": [ + "time-font", + "time-text-color", + "time-text-shadow", + "time-text-shadow-color" + ] + }, + "date-theme-section": { + "type": "section", + "title": "Date label font", + "keys": [ + "date-font", + "date-text-color", + "date-text-shadow", + "date-text-shadow-color" + ] + }, + "desklet-decorations-section": { + "type": "section", + "title": "Desklet decorations", + "keys": [ + "desklet-decorations-note", + "show-decorations", + "desklet-header" + ] + } + }, + "time-format": { + "type": "entry", + "default": "%H:%M", + "description": "Time format", + "tooltip": "Set your time format." + }, + "date-format": { + "type": "entry", + "default": "%A,%e %B", + "description": "Date format", + "tooltip": "Set the date format." + }, + "datetime-format-label": { + "type": "label", + "description": "Date/time format follows `strftime` formatting. Read more on desklet's webpage or `strftime` documentation: \nhttps://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html" + }, + "refresh-period": { + "type": "spinbutton", + "default": 10000, + "min": 500, + "max": 100000, + "step": 500, + "unit": "ms", + "description": "Refresh period", + "tooltip": "Set how quickly the clock should refresh itself." + }, + "is-order-reversed": { + "type": "switch", + "description": "Reverse label order", + "default": false + }, + "is-two-column": { + "type": "switch", + "description": "Two column layout", + "default": false + }, + "is-width-forced": { + "type": "switch", + "description": "Force specific width", + "default": false, + "tooltip": "Select if you want to force the desklet to have a certain width, so it won't scale with different date length." + }, + "forced-width-size": { + "type": "spinbutton", + "default": 300, + "min": 100, + "max": 2000, + "step": 5, + "description": "Forced width size", + "tooltip": "Force desklet width.", + "dependency": "is-width-forced" + }, + "time-font": { + "type": "fontchooser", + "description": "Time label font", + "default": "Ubuntu Regular 42", + "tooltip": "Change the font and its size" + }, + "time-text-color": { + "type": "colorchooser", + "default": "rgb(255,255,255)", + "description": "Text color", + "tooltip": "Set the text color." + }, + "time-text-shadow": { + "type": "switch", + "description": "Text shadow", + "default": true + }, + "time-text-shadow-color": { + "type": "colorchooser", + "default": "rgba(0,0,0,0.8)", + "description": "Text shadow color", + "dependency": "time-text-shadow" + }, + "date-font": { + "type": "fontchooser", + "description": "Date label font", + "default": "Ubuntu Regular 14", + "tooltip": "Change the font and its size" + }, + "date-text-color": { + "type": "colorchooser", + "default": "rgb(255,255,255)", + "description": "Text color", + "tooltip": "Set the text color." + }, + "date-text-shadow": { + "type": "switch", + "description": "Text shadow", + "default": true + }, + "date-text-shadow-color": { + "type": "colorchooser", + "default": "rgba(0,0,0,0.8)", + "description": "Text shadow color", + "dependency": "date-text-shadow" + }, + "desklet-background": { + "type": "colorchooser", + "default": "rgba(255,255,255,0.3)", + "description": "Background color", + "tooltip": "Set the desklet background." + }, + "desklet-border-radius": { + "type": "spinbutton", + "default": 20, + "min": 0, + "max": 100, + "step": 1, + "description": "Border radius", + "tooltip": "Increase or decrease border curvature." + }, + "desklet-border-width": { + "type": "spinbutton", + "default": 4, + "min": 0, + "max": 30, + "step": 1, + "description": "Border width (set to 0 to disable border)", + "tooltip": "Increase or decrease the desklet border width." + }, + "desklet-border-color": { + "type": "colorchooser", + "default": "rgba(0,0,0,0.4)", + "description": "Border color", + "tooltip": "Set the desklet border color.", + "dependency": "desklet-border-width>0" + }, + "padding-scale": { + "type": "spinbutton", + "default": 2, + "min": 0, + "max": 10, + "step": 0.2, + "description": "Padding scale", + "tooltip": "Increase or decrease padding between elements." + }, + "show-decorations": { + "type": "switch", + "description": "Show desklet decorations", + "default": false + }, + "desklet-decorations-note": { + "type": "label", + "description": "Following settings require desklet decorations to be enabled on your system.\nDesklet preferences are located in System Settings > Desklets > General Settings tab; there you will be able to enable border/header decorations." + }, + "desklet-header": { + "type": "entry", + "default": "Time and Date", + "description": "Desklet header", + "tooltip": "Set your desklet header. Make sure desklet headers are enabled in system settings.", + "dependency": "show-decorations" + } +} diff --git a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/stylesheet.css b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/stylesheet.css index 77db3827b..23fae1ac1 100644 --- a/TimeAndDate@nightflame/files/TimeAndDate@nightflame/stylesheet.css +++ b/TimeAndDate@nightflame/files/TimeAndDate@nightflame/stylesheet.css @@ -1,13 +1,21 @@ -.clock-container{ - color:#fff; - text-shadow: 1px 1px 2px #000; - padding: 4px 10px 4px 10px; +.time-container { + padding: 0em; + margin: 0em; } -.time-container{ +.date-container { + padding: 0em; + margin: 0em; } -.date-container{ +.time-label { + padding: 0em; + margin: 0em; + text-align: center; } -.clock-date-label{} +.date-label { + padding: 0em; + margin: 0em; + text-align: center; +} \ No newline at end of file diff --git a/TimeAndDate@nightflame/info.json b/TimeAndDate@nightflame/info.json index f1aa8493a..85cb27647 100644 --- a/TimeAndDate@nightflame/info.json +++ b/TimeAndDate@nightflame/info.json @@ -1,4 +1,4 @@ { - "author": "none", + "author": "NotSirius-A", "original_author": "nightflame" } diff --git a/TimeAndDate@nightflame/screenshot.png b/TimeAndDate@nightflame/screenshot.png index 52e7a42c9..0acaf6912 100644 Binary files a/TimeAndDate@nightflame/screenshot.png and b/TimeAndDate@nightflame/screenshot.png differ