diff --git a/applets/notifications/package/contents/config/config.qml b/applets/notifications/package/contents/config/config.qml index 49b9d23be..ac8b03c9b 100644 --- a/applets/notifications/package/contents/config/config.qml +++ b/applets/notifications/package/contents/config/config.qml @@ -1,31 +1,31 @@ /* * Copyright 2014 Kai Uwe Broulik * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see */ import QtQuick 2.0 import org.kde.plasma.configuration 2.0 ConfigModel { ConfigCategory { name: i18n("Information") - icon: "preferences-desktop-notification" + icon: "preferences-desktop-notification-bell" source: "configNotifications.qml" } } diff --git a/applets/notifications/package/contents/ui/main.qml b/applets/notifications/package/contents/ui/main.qml index ad449df31..f42240b83 100644 --- a/applets/notifications/package/contents/ui/main.qml +++ b/applets/notifications/package/contents/ui/main.qml @@ -1,160 +1,160 @@ /*************************************************************************** * Copyright 2011 Davide Bettio * * Copyright 2011 Marco Martin * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Library General Public License for more details. * * * * You should have received a copy of the GNU Library General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ import QtQuick 2.0 import QtQuick.Layouts 1.1 import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.kquickcontrolsaddons 2.0 import org.kde.plasma.extras 2.0 as PlasmaExtras import org.kde.plasma.private.notifications 1.0 import "uiproperties.js" as UiProperties MouseEventListener { id: notificationsApplet //width: units.gridUnit.width * 10 //height: units.gridUnit.width * 15 //Layout.minimumWidth: mainScrollArea.implicitWidth //Layout.minimumHeight: mainScrollArea.implicitHeight Layout.minimumWidth: 256 // FIXME: use above Layout.minimumHeight: 256 LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft LayoutMirroring.childrenInherit: true property int layoutSpacing: UiProperties.layoutSpacing property real globalProgress: 0 property Item notifications: historyList.headerItem ? historyList.headerItem.notifications : null property Item jobs: historyList.headerItem ? historyList.headerItem.jobs : null //notifications + jobs property int activeItemsCount: (notifications ? notifications.count : 0) + (jobs ? jobs.count : 0) property int totalCount: activeItemsCount + (notifications ? notifications.historyCount : 0) Plasmoid.switchWidth: units.gridUnit * 20 Plasmoid.switchHeight: units.gridUnit * 30 Plasmoid.status: activeItemsCount > 0 ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus Plasmoid.toolTipSubText: { if (activeItemsCount == 0) { return i18n("No notifications or jobs") } else if (!notifications || !notifications.count) { return i18np("%1 running job", "%1 running jobs", jobs.count) } else if (!jobs || !jobs.count) { return i18np("%1 notification", "%1 notifications", notifications.count) } else { return i18np("%1 running job", "%1 running jobs", jobs.count) + "\n" + i18np("%1 notification", "%1 notifications", notifications.count) } } Plasmoid.compactRepresentation: NotificationIcon { } // Always scroll to the top when opening as that's where the important stuff goes on Plasmoid.onExpandedChanged: { if (Plasmoid.expanded) { // contentY doesn't really work with ListView (creates and destroys delegates on demand and positions them randomly) // so first use its "move to the top" method and then move it further up to reveal all of its "header" contents historyList.positionViewAtBeginning(); historyList.contentY = historyList.originY; } } hoverEnabled: !UiProperties.touchInput onActiveItemsCountChanged: { if (!activeItemsCount) { plasmoid.expanded = false; } } PlasmaExtras.Heading { width: parent.width level: 3 opacity: 0.6 visible: notificationsApplet.totalCount == 0 text: i18n("No new notifications.") } PlasmaExtras.ScrollArea { id: mainScrollArea anchors.fill: parent // HACK The history of notifications can become quite large. In order to avoid a memory leak // show them in a ListView which creates delegate instances only on demand. // The ListView's header functionality is abused to provide the jobs and regular notifications // which are few and might store some state inside the delegate (e.g. expanded state) and // thus are created all at once by a Repeater. ListView { id: historyList // The history stuff is quite entangled with regular notifications, so // model and delegate are set by Bindings {} inside Notifications.qml header: Column { property alias jobs: jobsLoader.item property alias notifications: notificationsLoader.item width: historyList.width Loader { id: jobsLoader width: parent.width source: "Jobs.qml" active: plasmoid.configuration.showJobs } Loader { id: notificationsLoader width: parent.width source: "Notifications.qml" active: plasmoid.configuration.showNotifications } } } } function action_clearNotifications() { notifications.clearNotifications(); notifications.clearHistory(); } function action_notificationskcm() { KCMShell.open("kcmnotify"); } Component.onCompleted: { plasmoid.setAction("clearNotifications", i18n("Clear Notifications"), "edit-clear-history") var clearAction = plasmoid.action("clearNotifications"); clearAction.visible = Qt.binding(function() { return notificationsApplet.notifications && (notificationsApplet.notifications.count > 0 || notificationsApplet.notifications.historyCount > 0); }) if (KCMShell.authorize("kcmnotify.desktop").length > 0) { - plasmoid.setAction("notificationskcm", i18n("&Configure Event Notifications and Actions..."), "preferences-desktop-notification") + plasmoid.setAction("notificationskcm", i18n("&Configure Event Notifications and Actions..."), "preferences-desktop-notification-bell") } } } diff --git a/applets/notifications/package/metadata.desktop b/applets/notifications/package/metadata.desktop index 4adf1b14d..a383af5dd 100644 --- a/applets/notifications/package/metadata.desktop +++ b/applets/notifications/package/metadata.desktop @@ -1,168 +1,168 @@ [Desktop Entry] Name=Notifications Name[ar]=إخطارات Name[be]=Абвяшчэнні Name[be@latin]=Infarmavańnie Name[bg]=Уведомяване Name[bn]=বিজ্ঞপ্তি Name[bn_IN]=সূচনাবার্তা Name[br]=Kemenn Name[bs]=Obavještenja Name[ca]=Notificacions Name[ca@valencia]=Notificacions Name[cs]=Oznamování Name[csb]=Dôwanié wiédzë Name[da]=Bekendtgørelser Name[de]=Benachrichtigungen Name[el]=Ειδοποιήσεις Name[en_GB]=Notifications Name[eo]=Atentigoj Name[es]=Notificaciones Name[et]=Märguanded Name[eu]=Jakinarazpenak Name[fa]=اخطارها Name[fi]=Ilmoitukset Name[fr]=Notifications Name[fy]=Notifikaasjes Name[ga]=Fógairt Name[gl]=Notificacións Name[gu]=નોંધણીઓ Name[he]=הודעות Name[hi]=सूचनाएँ Name[hne]=सूचना मन ल Name[hr]=Obavijesti Name[hu]=Rendszerüzenetek Name[ia]=Notificationes Name[id]=Notifications Name[is]=Kerfistilkynningar Name[it]=Notifiche Name[ja]=通知 Name[kk]=Құлақтандыру Name[km]=សេចក្តី​ជូន​ដំណឹង​ Name[kn]=ಸೂಚನೆಗಳು Name[ko]=알림 Name[ku]=Agahdarî Name[lt]=Pranešimai Name[lv]=Paziņojumi Name[mai]=सूचनासभ Name[mk]=Известувања Name[ml]=അറിയിപ്പുകള്‍ Name[mr]=सूचना Name[ms]=Pemberitahuan Name[nb]=Varslinger Name[nds]=Bescheden Name[ne]=सूचना Name[nl]=Meldingen Name[nn]=Varslingar Name[oc]=Notificacions Name[or]=ବିଜ୍ଞପ୍ତି Name[pa]=ਨੋਟੀਫਿਕੇਸ਼ਨ Name[pl]=Powiadomienia Name[pt]=Notificações Name[pt_BR]=Notificações Name[ro]=Notificări Name[ru]=Системные уведомления Name[se]=Dieđáhusat Name[si]=දැනුම් දීම් Name[sk]=Upozornenia Name[sl]=Obvestila Name[sr]=обавештења Name[sr@ijekavian]=обавјештења Name[sr@ijekavianlatin]=obavještenja Name[sr@latin]=obaveštenja Name[sv]=Underrättelser Name[ta]=Notifications Name[te]=నోటీసులు Name[tg]=Огоҳиномаҳо Name[th]=การแจ้งให้ทราบต่าง ๆ Name[tr]=Bildirimler Name[ug]=ئۇقتۇرۇشلار Name[uk]=Сповіщення Name[uz]=Xabarnomalar Name[uz@cyrillic]=Хабарномалар Name[wa]=Notifiaedjes Name[x-test]=xxNotificationsxx Name[zh_CN]=通知 Name[zh_TW]=通知 Comment=Display notifications and jobs Comment[ar]=اعرض الإخطارات والمهام Comment[bg]=Показване на уведомления и задачи Comment[bs]=Prikazuje obavještenja i poslove Comment[ca]=Mostra les notificacions i els treballs Comment[ca@valencia]=Mostra les notificacions i els treballs Comment[cs]=Oznámení a úlohy Comment[da]=Vis bekendtgørelser og job Comment[de]=Benachrichtigungen und Aktionen anzeigen Comment[el]=Εμφανίζει ειδοποιήσεις και εργασίες Comment[en_GB]=Display notifications and jobs Comment[es]=Mostrar notificaciones y tareas Comment[et]=Märguannete ja tööde näitamine Comment[eu]=Bistaratu jakinarazpenak eta lanak Comment[fi]=Näyttää ilmoituksia ja töitä Comment[fr]=Affiche les notifications et les tâches Comment[ga]=Taispeáin fógraí agus jabanna Comment[gl]=Mostra notificacións e tarefas Comment[he]=משמש להצגת הודעות ועבודות Comment[hr]=Prikazuje obavijesti i poslove Comment[hu]=Értesítések és feladatok megjelenítése Comment[ia]=Monstra notificationes e labores Comment[id]=Tampilan notifikasi dan tugas Comment[is]=Birting tilkynninga og verka Comment[it]=Visualizza le notifiche ed i processi Comment[ja]=ディスプレイ通知とジョブ Comment[kk]=Құлақтандыру мен тапсырмаларды көрсету Comment[km]=បង្ហាញ​ការ​ជូនដំណឹង និង​ការងារ Comment[kn]=ಸೂಚನೆಗಳು ಹಾಗು ಕಾರ್ಯಗಳನ್ನು ಪ್ರದರ್ಶಿಸು Comment[ko]=알림과 작업 표시 Comment[lt]=Rodyti pranešimus ir darbus Comment[lv]=Parāda paziņojumus un darbus Comment[mr]=सूचना व कार्यै दर्शवा Comment[nb]=Vis varslinger og jobber Comment[nds]=Bescheden un Opgaven wiesen Comment[nl]=Meldingen en taken tonen Comment[nn]=Vis varslingar og jobbar Comment[pa]=ਨੋਟੀਫਿਕੇਸ਼ਨ ਤੇ ਜਾਬ ਵੇਖੋ Comment[pl]=Wyświetla powiadomienia i zadania Comment[pt]=Mostrar as notificações e tarefas Comment[pt_BR]=Exibe notificações e tarefas Comment[ro]=Afișează notificări și sarcini Comment[ru]=Уведомления и задания Comment[si]=කාර්ය සහ දැනුම්දීමෙ පෙන්වන්න Comment[sk]=Zobrazenie upozornení a úloh Comment[sl]=Prikazuje obvestila in posle Comment[sr]=Приказује обавештења и послове Comment[sr@ijekavian]=Приказује обавјештења и послове Comment[sr@ijekavianlatin]=Prikazuje obavještenja i poslove Comment[sr@latin]=Prikazuje obaveštenja i poslove Comment[sv]=Visa underrättelser och jobb Comment[tg]=Иттилооти огоҳиҳо ва амалҳо Comment[th]=แสดงการแจ้งให้ทราบและงานต่าง ๆ Comment[tr]=Bildirimleri ve görevleri göster Comment[ug]=ئۇقتۇرۇش ۋە ۋەزىپىلەرنى كۆرسىتىدۇ Comment[uk]=Показ сповіщень і завдань Comment[vi]=Hiển thị thông báo và công việc Comment[wa]=Håyner notifiaedjes eyet bouyes Comment[x-test]=xxDisplay notifications and jobsxx Comment[zh_CN]=显示通知和任务 Comment[zh_TW]=顯示通知與工作 Type=Service -Icon=preferences-desktop-notification +Icon=preferences-desktop-notification-bell X-KDE-ParentApp= X-KDE-PluginInfo-Author=Martin Klapetek X-KDE-PluginInfo-Category=Tasks X-KDE-PluginInfo-Email=mklapetek@kde.org X-KDE-PluginInfo-License=GPL-2.0+ X-KDE-PluginInfo-Name=org.kde.plasma.notifications X-KDE-PluginInfo-Version=3.0 X-KDE-PluginInfo-Website=https://www.kde.org/plasma-desktop X-KDE-ServiceTypes=Plasma/Applet X-Plasma-API=declarativeappletscript X-Plasma-Provides=org.kde.plasma.notifications X-KDE-PluginInfo-EnabledByDefault=true X-KDE-Library=plasma_applet_notifications X-Plasma-MainScript=ui/main.qml X-Plasma-RequiredExtensions=LaunchApp X-Plasma-NotificationArea=true X-Plasma-NotificationAreaCategory=ApplicationStatus diff --git a/dataengines/notifications/plasma-dataengine-notifications.desktop b/dataengines/notifications/plasma-dataengine-notifications.desktop index 859e6fa27..037812e0c 100644 --- a/dataengines/notifications/plasma-dataengine-notifications.desktop +++ b/dataengines/notifications/plasma-dataengine-notifications.desktop @@ -1,147 +1,147 @@ [Desktop Entry] Name=Application Notifications Name[ar]=إخطارات التطبيقات Name[be@latin]=Infarmavańni aplikacyj Name[bg]=Програмни съобщения Name[bn]=অ্যাপলিকেশন বিজ্ঞপ্তি Name[bn_IN]=অ্যাপ্লিকেশনের সূচনাবার্তা Name[bs]=Obavještenja programa Name[ca]=Notificacions de les aplicacions Name[ca@valencia]=Notificacions de les aplicacions Name[cs]=Oznamování aplikací Name[csb]=Dôwanié wiédzë ò aplikacëjach Name[da]=Programbekendtgørelser Name[de]=Anwendungs-Benachrichtigungen Name[el]=Ειδοποιήσεις εφαρμογών Name[en_GB]=Application Notifications Name[eo]=Aplikaĵaj Atentigoj Name[es]=Notificaciones de aplicaciones Name[et]=Rakenduste märguanded Name[eu]=Aplikazioen jakinarazpenak Name[fi]=Sovellusilmoitukset Name[fr]=Notifications des applications Name[fy]=Applikaasje ntifikaasjes Name[ga]=Fógairtí Feidhmchláir Name[gl]=Notificacións dos aplicativos Name[gu]=કાર્યક્રમ નોંધણીઓ Name[he]=הודעות יישומים Name[hi]=अनुप्रयोग सूचनाएँ Name[hne]=अनुपरयोग सूचना Name[hr]=Obavijesti aplikacija Name[hu]=Értesítő üzenetek Name[ia]=Notificationes de application Name[id]=Application Notifications Name[is]=Tilkynningar forrita Name[it]=Notifiche delle applicazioni Name[ja]=アプリケーションの通知 Name[kk]=Қолданба құлақтандырулары Name[km]=ការ​ជូនដំណឹង​កម្មវិធី​ Name[kn]=ಅನ್ವಯ ಸೂಚನೆಗಳು Name[ko]=프로그램 알림 Name[ku]=Hişyariyên Sepanê Name[lt]=Programų pranešimai Name[lv]=Programmu paziņojumi Name[mk]=Известувања за апликации Name[ml]=പ്രയോഗ അറിയിപ്പുകള്‍ Name[mr]=अनुप्रयोग सूचना Name[nb]=Programvarslinger Name[nds]=Programm-Bescheden Name[nl]=Programmameldingen Name[nn]=Programvarsel Name[or]=ପ୍ରୟୋଗ ବିଜ୍ଞପ୍ତିଗୁଡ଼ିକ Name[pa]=ਐਪਲੀਕੇਸ਼ਨ ਨੋਟੀਫਿਕੇਸ਼ਨ Name[pl]=Powiadomienia programów Name[pt]=Notificações das Aplicações Name[pt_BR]=Notificações do aplicativo Name[ro]=Notificări aplicații Name[ru]=Уведомления приложений Name[si]=යෙදුම් දැනුම් දීම් Name[sk]=Upozornenia aplikácií Name[sl]=Obvestila programov Name[sr]=обавештења програма Name[sr@ijekavian]=обавјештења програма Name[sr@ijekavianlatin]=obavještenja programa Name[sr@latin]=obaveštenja programa Name[sv]=Programunderrättelser Name[ta]=அமைப்பு குறிப்பகள் Name[tg]=Огоҳномаҳои система Name[th]=การแจ้งให้ทราบของโปรแกรม Name[tr]=Uygulama Bildirimleri Name[ug]=پروگرامما ئۇقتۇرۇشى Name[uk]=Сповіщення програм Name[vi]=Thông báo cho ứng dụng Name[wa]=Notifiaedjes do programe Name[x-test]=xxApplication Notificationsxx Name[zh_CN]=应用程序通知 Name[zh_TW]=應用程式通知 Comment=Passive visual notifications for the user. Comment[bg]=Пасивни визуални съобщения за потребителя. Comment[bs]=Pasivna vizuelna obavještenja za korisnika. Comment[ca]=Notificacions visuals passives per a l'usuari. Comment[ca@valencia]=Notificacions visuals passives per a l'usuari. Comment[cs]=Pasivní vizuální upozornění pro uživatele. Comment[da]=Passive visuelle bekendtgørelser til brugeren. Comment[de]=Passive sichtbare Benachrichtigungen für den Anwender. Comment[el]=Παθητικές οπτικές ειδοποιήσεις για τον χρήστη. Comment[en_GB]=Passive visual notifications for the user. Comment[es]=Notificaciones visuales pasivas para el usuario. Comment[et]=Passiivsed visuaalsed märguanded kasutajale. Comment[eu]=Erabiltzailearentzako ikusizko jakinarazpen pasiboak. Comment[fi]=Passiivinen visuaali-ilmoitus käyttäjälle. Comment[fr]=Notifications visuelles passives pour l'utilisateur Comment[fy]=Pasive fisuele notifikaasje foar de brûker. Comment[gl]=Notificacións visuais pasivas para o usuario. Comment[he]=הודעות ויזאוליות פאסיביות עבור המשתמש. Comment[hr]=Pasivne vizualne obavijesti korisniku. Comment[hu]=Passzív értesítő üzeneteket tud küldeni a felhasználónak. Comment[ia]=Notificationes visual passive pro le usator. Comment[id]=Notifikasi visual pasif untuk pengguna. Comment[is]=Hlutlausar sjónrænar tilkynningar til notandans. Comment[it]=Notifiche visuali passive per l'utente. Comment[ja]=ユーザ用の受動的ビジュアル通知 Comment[kk]=Үнсіз көрсетілетін құлақтандыру. Comment[km]=ការ​ជូនដំណឹង​ដែល​មើល​សម្រាប់​អ្នកប្រើ ។ Comment[kn]=ಬಳಕೆದಾರನ ನಿಷ್ಕ್ರಿಯವಾಗಿರುವ ದೃಶ್ಯ ಸೂಚನೆಗಳು. Comment[ko]=사용자에게 보이는 수동적인 알림입니다. Comment[lt]=Pasyvūs vizualūs pranešimai naudotojui. Comment[lv]=Pasīvi vizuālie paziņojumi lietotājam. Comment[mk]=Пасивни визуелни известувања за корисникот. Comment[ml]=ഉപയോക്താവിനുള്ള നടപടി വേണ്ടാത്ത ദൃശ്യ സൂചനകള്‍ Comment[mr]=वापरकर्त्यासाठी दर्शनीय सूचना. Comment[nb]=Passive visuelle varslinger for brukeren. Comment[nds]=Passiev sichtbor Bescheden för den Bruker Comment[nl]=Passieve visuele meldingen voor de gebruiker. Comment[nn]=Passive visuelle varsel for brukaren. Comment[pa]=ਵਰਤੋਂਕਾਰ ਲਈ ਪੈਸਿਵ ਦਿੱਖ ਨੋਟੀਫਿਕੇਸ਼ਨ। Comment[pl]=Bierne i graficznie powiadamia użytkownika. Comment[pt]=Notificações passivas visuais para o utilizador. Comment[pt_BR]=Notificações visuais passivas para o usuário. Comment[ro]=Notificări vizuale pasive pentru utilizator. Comment[ru]=Пассивные визуальные уведомления для пользователя. Comment[si]=පරිශීලකයන් සඳහා නිශ්ක්‍රීය දෘශ්‍ය දැන්වීම්. Comment[sk]=Pasívne vizuálne upozornenia pre užívateľa. Comment[sl]=Pasivna vidna obvestila za uporabnika. Comment[sr]=Пасивна визуелна обавештења за корисника. Comment[sr@ijekavian]=Пасивна визуелна обавјештења за корисника. Comment[sr@ijekavianlatin]=Pasivna vizuelna obavještenja za korisnika. Comment[sr@latin]=Pasivna vizuelna obaveštenja za korisnika. Comment[sv]=Passiva visuella underrättelser för användaren. Comment[th]=ระบบการแจ้งให้ผู้ใช้งานทราบถึงเหตุการณ์ต่าง ๆ Comment[tr]=Kullanıcı için pasif görsel bildirimler. Comment[ug]=ئىشلەتكۈچىگە پاسسىپ كۆرۈنىدىغان كۆرۈش ئۈنۈم ئۇقتۇرۇشىنى تەمىنلەيدۇ Comment[uk]=Пасивні візуальні сповіщення для користувача. Comment[wa]=Notifiaedjes doirmants veyåves po l' uzeu. Comment[x-test]=xxPassive visual notifications for the user.xx Comment[zh_CN]=为用户提供被动出现的视觉通知。 Comment[zh_TW]=給使用者的被動視覺通知。 X-KDE-ServiceTypes=Plasma/DataEngine Type=Service -Icon=preferences-desktop-notification +Icon=preferences-desktop-notification-bell X-KDE-Library=plasma_engine_notifications X-KDE-PluginInfo-Author= X-KDE-PluginInfo-Email= X-KDE-PluginInfo-Name=notifications X-KDE-PluginInfo-Version= X-KDE-PluginInfo-Website=https://plasma.kde.org X-KDE-PluginInfo-Category=