Skip to content

Commit

Permalink
xseesion v2.0.0 - Spices icons in menus
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux committed Jan 16, 2025
1 parent ea388d7 commit bdc285c
Show file tree
Hide file tree
Showing 16 changed files with 893 additions and 407 deletions.
288 changes: 136 additions & 152 deletions xsession@claudiux/files/xsession@claudiux/applet.js

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions xsession@claudiux/files/xsession@claudiux/lib/to-string.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const to_string = function(data) {
return ""+stringFromUTF8Array(data);
}

const stringFromUTF8Array = function(data) {
const extraByteMap = [ 1, 1, 1, 1, 2, 2, 3, 0 ];
var count = data.length;
var str = "";

for (var index = 0;index < count;)
{
var ch = data[index++];
if (ch & 0x80)
{
var extra = extraByteMap[(ch >> 3) & 0x07];
if (!(ch & 0x40) || !extra || ((index + extra) > count))
return null;

ch = ch & (0x3F >> extra);
for (;extra > 0;extra -= 1)
{
var chx = data[index++];
if ((chx & 0xC0) != 0x80)
return null;

ch = (ch << 6) | (chx & 0x3F);
}
}

str += String.fromCharCode(ch);
}

return str;
}
4 changes: 2 additions & 2 deletions xsession@claudiux/files/xsession@claudiux/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"uuid": "xsession@claudiux",
"name": "Xsession",
"max-instances": "1",
"hide-configuration": true,
"version": "1.2.0",
"hide-configuration": false,
"version": "2.0.0",
"description": "Restart, access source code and configure your Spices (Applets, Desklets, Extensions). View the contents of your .xsession-errors file in real time. Restart Cinnamon.",
"author": "claudiux"
}
84 changes: 62 additions & 22 deletions xsession@claudiux/files/xsession@claudiux/po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
"issues\n"
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
"POT-Creation-Date: 2025-01-16 20:55+0100\n"
"PO-Revision-Date: 2024-10-28 03:02+0100\n"
"Last-Translator: Odyssey <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -19,87 +19,87 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#. applet.js:45
#. applet.js:47
msgid "Applet"
msgstr "Miniaplicació"

#. applet.js:46
#. applet.js:48
msgid "Desklet"
msgstr "Miniaplicació d'escriptori"

#. applet.js:47
#. applet.js:49
msgid "Extension"
msgstr "Extensió"

#. applet.js:50
#. applet.js:52
msgid "Applets"
msgstr "Miniaplicacions"

#. applet.js:51
#. applet.js:53
msgid "Desklets"
msgstr "Miniaplicacions d'escriptori"

#. applet.js:52
#. applet.js:54
msgid "Extensions"
msgstr "Extensions"

#. applet.js:88
#. applet.js:150
msgid "Middle-click: \n"
msgstr "Clic del mig:\n"

#. applet.js:88 applet.js:141
#. applet.js:150 applet.js:211
msgid "Show .xsession-errors"
msgstr "Mostrar .xsession-errors"

#. applet.js:152
#. applet.js:227
msgid "Restart Cinnamon"
msgstr "Reiniciar Cinnamon"

#. applet.js:166
#. applet.js:244
msgid "--- Reload Spices ---"
msgstr "--- Recarregar Espècies ---"

#. applet.js:172
#. applet.js:251
msgid "Reload Applet:"
msgstr "Recarregar la miniaplicació:"

#. applet.js:187
#. applet.js:262
msgid "Reload Desklet:"
msgstr "Recarregar la miniaplicació d'escriptori:"

#. applet.js:202
#. applet.js:271
msgid "Reload Extension:"
msgstr "Recarregar l'extensió:"

#. applet.js:217
#. applet.js:280
msgid "--- Settings for ---"
msgstr "--- Opcions per ---"

#. applet.js:223
#. applet.js:286
msgid "Applet:"
msgstr "Miniaplicació:"

#. applet.js:238
#. applet.js:295
msgid "Desklet:"
msgstr "Miniaplicació d'escriptori:"

#. applet.js:253
#. applet.js:304
msgid "Extension:"
msgstr "Extensió:"

#. applet.js:268
#. applet.js:313
msgid "--- View Code ---"
msgstr "--- Veure el codi ---"

#. applet.js:274
#. applet.js:319
msgid "View Applet Code for:"
msgstr "Veure el codi de la miniaplicació:"

#. applet.js:289
#. applet.js:328
msgid "View Desklet Code for:"
msgstr "Veure el codi de la miniaplicació d'escriptori:"

#. applet.js:304
#. applet.js:337
msgid "View Extension Code for:"
msgstr "Veure el codi de l'extensió:"

Expand All @@ -116,3 +116,43 @@ msgstr ""
"Ús permet reiniciar o obrir el codi font d'espècies (miniaplicacions, "
"miniaplicacions d'escriptori, extensions), veure el contingut del vostre "
"fitxer .xsession-errors en temps real i reiniciar Cinnamon."

#. settings-schema.json->section1->description
msgid "Icon size"
msgstr ""

#. settings-schema.json->icon_size->description
msgid "Size (in pixels) of menu icons"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "16"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "22"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "24"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "32"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "48"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "64"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "96"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "128"
msgstr ""
84 changes: 62 additions & 22 deletions xsession@claudiux/files/xsession@claudiux/po/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-applets/"
"issues\n"
"POT-Creation-Date: 2024-10-06 01:02+0200\n"
"POT-Creation-Date: 2025-01-16 20:55+0100\n"
"PO-Revision-Date: 2023-12-28 08:51+0100\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Language-Team: \n"
Expand All @@ -19,90 +19,90 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"

#. applet.js:45
#. applet.js:47
msgid "Applet"
msgstr "Panelprogram"

#. applet.js:46
#. applet.js:48
msgid "Desklet"
msgstr "Skrivebordsprogram"

#. applet.js:47
#. applet.js:49
msgid "Extension"
msgstr "Udvidelse"

#. applet.js:50
#. applet.js:52
msgid "Applets"
msgstr "Panelprogrammer"

#. applet.js:51
#. applet.js:53
msgid "Desklets"
msgstr "Skrivebordsprogrammer"

#. applet.js:52
#. applet.js:54
msgid "Extensions"
msgstr "Udvidelser"

#. applet.js:88
#. applet.js:150
msgid "Middle-click: \n"
msgstr "Midterklik: \n"

#. applet.js:88 applet.js:141
#. applet.js:150 applet.js:211
msgid "Show .xsession-errors"
msgstr "Vis .xsession-errors"

#. applet.js:152
#. applet.js:227
msgid "Restart Cinnamon"
msgstr "Genstart Cinnamon"

#. applet.js:166
#. applet.js:244
msgid "--- Reload Spices ---"
msgstr "--- Genindlæs Spices ---"

#. applet.js:172
#. applet.js:251
msgid "Reload Applet:"
msgstr "Genindlæs panelprogram:"

#. applet.js:187
#. applet.js:262
msgid "Reload Desklet:"
msgstr "Genindlæs skrivebordsprogram:"

#. applet.js:202
#. applet.js:271
msgid "Reload Extension:"
msgstr "Genindlæs udvidelse:"

#. applet.js:217
#. applet.js:280
msgid "--- Settings for ---"
msgstr ""

#. applet.js:223
#. applet.js:286
#, fuzzy
msgid "Applet:"
msgstr "Panelprogram"

#. applet.js:238
#. applet.js:295
#, fuzzy
msgid "Desklet:"
msgstr "Skrivebordsprogram"

#. applet.js:253
#. applet.js:304
#, fuzzy
msgid "Extension:"
msgstr "Udvidelse"

#. applet.js:268
#. applet.js:313
msgid "--- View Code ---"
msgstr "--- Vis kode ---"

#. applet.js:274
#. applet.js:319
msgid "View Applet Code for:"
msgstr "Vis koden for panelprogrammet:"

#. applet.js:289
#. applet.js:328
msgid "View Desklet Code for:"
msgstr "Vis koden for skrivebordsprogrammet:"

#. applet.js:304
#. applet.js:337
msgid "View Extension Code for:"
msgstr "Vis koden for udvidelsen:"

Expand All @@ -120,3 +120,43 @@ msgstr ""
"Giver dig mulighed for at genstarte eller åbne kildekoden til Spices "
"(panelprogrammer, skrivebordsprogrammer, udvidelser), vise indholdet af din ."
"xsession-errors-fil i realtid og genstarte Cinnamon."

#. settings-schema.json->section1->description
msgid "Icon size"
msgstr ""

#. settings-schema.json->icon_size->description
msgid "Size (in pixels) of menu icons"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "16"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "22"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "24"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "32"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "48"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "64"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "96"
msgstr ""

#. settings-schema.json->icon_size->options
msgid "128"
msgstr ""
Loading

0 comments on commit bdc285c

Please sign in to comment.