diff --git a/Modules/Panels/Launcher/Plugins/EmojiPlugin.qml b/Modules/Panels/Launcher/Plugins/EmojiPlugin.qml index f5fdea8e..0d6907a9 100644 --- a/Modules/Panels/Launcher/Plugins/EmojiPlugin.qml +++ b/Modules/Panels/Launcher/Plugins/EmojiPlugin.qml @@ -35,16 +35,16 @@ Item { // Return available commands when user types ">" function commands() { return [ - { - "name": ">emoji", - "description": I18n.tr("plugins.emoji-search-description"), - "icon": "emote", - "isImage": false, - "onActivate": function () { - launcher.setSearchText(">emoji "); - } - } - ]; + { + "name": ">emoji", + "description": I18n.tr("plugins.emoji-search-description"), + "icon": "emote", + "isImage": false, + "onActivate": function () { + launcher.setSearchText(">emoji "); + } + } + ]; } // Get search results @@ -55,14 +55,14 @@ Item { if (!EmojiService.loaded) { return [ - { - "name": I18n.tr("plugins.emoji-loading"), - "description": I18n.tr("plugins.emoji-loading-description"), - "icon": "view-refresh", - "isImage": false, - "onActivate": function () {} - } - ]; + { + "name": I18n.tr("plugins.emoji-loading"), + "description": I18n.tr("plugins.emoji-loading-description"), + "icon": "view-refresh", + "isImage": false, + "onActivate": function () {} + } + ]; } const query = searchText.slice(6).trim(); diff --git a/Modules/Panels/Settings/Tabs/ColorScheme/ColorSchemeTab.qml b/Modules/Panels/Settings/Tabs/ColorScheme/ColorSchemeTab.qml index 124aa4c6..1839d5e6 100644 --- a/Modules/Panels/Settings/Tabs/ColorScheme/ColorSchemeTab.qml +++ b/Modules/Panels/Settings/Tabs/ColorScheme/ColorSchemeTab.qml @@ -835,14 +835,14 @@ ColumnLayout { } } } - + NCheckbox { label: "Telegram" description: ProgramCheckerService.telegramAvailable ? I18n.tr("settings.color-scheme.templates.programs.telegram.description", { - "filepath": "~/.config/telegram-desktop/themes/noctalia.tdesktop-theme" - }) : I18n.tr("settings.color-scheme.templates.programs.telegram.description-missing", { - "app": "telegram" - }) + "filepath": "~/.config/telegram-desktop/themes/noctalia.tdesktop-theme" + }) : I18n.tr("settings.color-scheme.templates.programs.telegram.description-missing", { + "app": "telegram" + }) checked: Settings.data.templates.telegram enabled: ProgramCheckerService.telegramAvailable opacity: ProgramCheckerService.telegramAvailable ? 1.0 : 0.6 diff --git a/Modules/Panels/Settings/Tabs/LockScreenTab.qml b/Modules/Panels/Settings/Tabs/LockScreenTab.qml index 1ab01d31..16426ca9 100644 --- a/Modules/Panels/Settings/Tabs/LockScreenTab.qml +++ b/Modules/Panels/Settings/Tabs/LockScreenTab.qml @@ -21,7 +21,7 @@ ColumnLayout { checked: Settings.data.general.compactLockScreen onToggled: checked => Settings.data.general.compactLockScreen = checked } - + NToggle { label: I18n.tr("settings.lock-screen.show-hibernate.label") description: I18n.tr("settings.lock-screen.show-hibernate.description") diff --git a/Services/Keyboard/EmojiService.qml b/Services/Keyboard/EmojiService.qml index 613e3dca..8ddb1a1b 100644 --- a/Services/Keyboard/EmojiService.qml +++ b/Services/Keyboard/EmojiService.qml @@ -31,18 +31,18 @@ Singleton { const terms = query.toLowerCase().split(" ").filter(t => t); const results = emojis.filter(emoji => { - for (let term of terms) { - const emojiMatch = emoji.emoji.toLowerCase().includes(term); - const nameMatch = (emoji.name || "").toLowerCase().includes(term); - const keywordMatch = (emoji.keywords || []).some(kw => kw.toLowerCase().includes(term)); - const categoryMatch = (emoji.category || "").toLowerCase().includes(term); + for (let term of terms) { + const emojiMatch = emoji.emoji.toLowerCase().includes(term); + const nameMatch = (emoji.name || "").toLowerCase().includes(term); + const keywordMatch = (emoji.keywords || []).some(kw => kw.toLowerCase().includes(term)); + const categoryMatch = (emoji.category || "").toLowerCase().includes(term); - if (!emojiMatch && !nameMatch && !keywordMatch && !categoryMatch) { - return false; - } - } - return true; - }); + if (!emojiMatch && !nameMatch && !keywordMatch && !categoryMatch) { + return false; + } + } + return true; + }); return results; } @@ -51,19 +51,19 @@ Singleton { function _getPopularEmojis(limit) { // Create array of emojis with their usage counts const emojisWithUsage = emojis.map(emoji => { - return { - emoji: emoji, - usageCount: usageCounts[emoji.emoji] || 0 - }; - }); + return { + emoji: emoji, + usageCount: usageCounts[emoji.emoji] || 0 + }; + }); // Sort by usage count (descending), then by name emojisWithUsage.sort((a, b) => { - if (b.usageCount !== a.usageCount) { - return b.usageCount - a.usageCount; - } - return (a.emoji.name || "").localeCompare(b.emoji.name || ""); - }); + if (b.usageCount !== a.usageCount) { + return b.usageCount - a.usageCount; + } + return (a.emoji.name || "").localeCompare(b.emoji.name || ""); + }); // Return the emoji objects limited by the specified count return emojisWithUsage.slice(0, limit).map(item => item.emoji); @@ -120,7 +120,7 @@ Singleton { _onLoadComplete(); } - onLoadFailed: function(error) { + onLoadFailed: function (error) { _userEmojiData = []; _onLoadComplete(); } @@ -147,7 +147,7 @@ Singleton { _onLoadComplete(); } - onLoadFailed: function(error) { + onLoadFailed: function (error) { _builtinEmojiData = []; _onLoadComplete(); } @@ -215,7 +215,7 @@ Singleton { } } - onLoadFailed: function(error) { + onLoadFailed: function (error) { root.usageCounts = {}; Qt.callLater(_ensureUsageFileExists); }