From fa2214d7e090a0b2ab272a09ebf9e39d4129063f Mon Sep 17 00:00:00 2001 From: PRO-2684 <54608551+PRO-2684@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:32:17 +0800 Subject: [PATCH] Change log color; add emoji to description; add thumb --- icons/icon.svg | 2 +- icons/thumb.svg | 1 + main.js | 2 +- manifest.json | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 icons/thumb.svg diff --git a/icons/icon.svg b/icons/icon.svg index 6981a74..84f93d4 100644 --- a/icons/icon.svg +++ b/icons/icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/icons/thumb.svg b/icons/thumb.svg new file mode 100644 index 0000000..ecc4ac0 --- /dev/null +++ b/icons/thumb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/main.js b/main.js index 2a63bef..55e5c9b 100644 --- a/main.js +++ b/main.js @@ -5,7 +5,7 @@ const { BrowserWindow, ipcMain, webContents, shell } = require("electron"); const isDebug = process.argv.includes("--scriptio-debug"); const updateInterval = 1000; const ignoredFolders = new Set(["node_modules", ".git", ".vscode", ".idea", ".github"]); -const log = isDebug ? console.log.bind(console, "\x1b[32m%s\x1b[0m", "[Scriptio]") : () => { }; +const log = isDebug ? console.log.bind(console, "\x1b[38;2;0;72;91m%s\x1b[0m", "[Scriptio]") : () => { }; let devMode = false; let watcher = null; diff --git a/manifest.json b/manifest.json index b9ddbf8..ce44e3d 100644 --- a/manifest.json +++ b/manifest.json @@ -3,9 +3,10 @@ "type": "extension", "name": "Scriptio", "slug": "scriptio", - "description": "自定义渲染层 JavaScript 脚本加载器", + "description": "📄 自定义渲染层 JavaScript 脚本加载器", "version": "1.2.2", "icon": "./icons/icon.svg", + "thumb": "./icons/thumb.svg", "authors": [ { "name": "PRO-2684",