This commit is contained in:
Valeria Fadeeva 2024-09-26 12:36:43 +05:00
parent 244a793731
commit 18a774ab4d
15 changed files with 128 additions and 30 deletions

View File

@ -91,5 +91,6 @@
<entry name="viewUser" type="Bool">
<default>true</default>
</entry>
</group>
</kcfg>

View File

@ -23,6 +23,11 @@ import org.kde.plasma.plasma5support 2.0 as P5Support
import org.kde.plasma.private.sessions as Sessions
import org.kde.ksvg 1.0 as KSvg
import org.kde.kcmutils as KCM
import org.kde.plasma.plasmoid 2.0
RowLayout{
spacing: Kirigami.Units.largeSpacing
@ -41,7 +46,6 @@ RowLayout{
}
}
Image {
id: iconUser
source: kuser.faceIconUrl.toString() || "user-identity"
@ -64,6 +68,27 @@ RowLayout{
visible: false
}
}
state: "hide"
states: [
State {
name: "show"
when: parent.visible
PropertyChanges { target: iconUser; opacity: 1; }
},
State {
name: "hide"
when: !parent.visible
PropertyChanges { target: iconUser; opacity: 0; }
}
]
transitions: Transition {
PropertyAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; }
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
onClicked: KCM.KCMLauncher.openSystemSettings("kcm_users")
}
}
@ -106,6 +131,26 @@ RowLayout{
ToolTip.text: i18n("System Preferences")
}
PlasmaComponents3.ToolButton {
icon.name: "system-lock-screen"
//onClicked: pmEngine.performOperation("lockScreen")
//enabled: pmEngine.data["Sleep States"]["LockScreen"]
onClicked: sm.lock()
ToolTip.delay: 200
ToolTip.timeout: 1000
ToolTip.visible: hovered
ToolTip.text: i18n("Lock Screen")
}
PlasmaComponents3.ToolButton {
icon.name: "system-switch-user"
onClicked: sm.switchUser()
ToolTip.delay: 200
ToolTip.timeout: 1000
ToolTip.visible: hovered
ToolTip.text: i18n("Switch User")
}
PlasmaComponents3.ToolButton {
icon.name: "system-shutdown"
// onClicked: sm.requestShutdown()

View File

@ -35,11 +35,11 @@ Or if you know how to make a pull request
## Status
| Locale | Lines | % Done|
|----------|---------|-------|
| Template | 32 | |
| fr | 19/32 | 59% |
| ko | 16/32 | 50% |
| nl | 13/32 | 40% |
| pl | 15/32 | 46% |
| pt_BR | 19/32 | 59% |
| ru | 32/32 | 100% |
| tr | 15/32 | 46% |
| Template | 34 | |
| fr | 20/34 | 58% |
| ko | 17/34 | 50% |
| nl | 13/34 | 38% |
| pl | 15/34 | 44% |
| pt_BR | 20/34 | 58% |
| ru | 34/34 | 100% |
| tr | 15/34 | 44% |

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: omano\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -123,6 +123,14 @@ msgstr "Dossier Personnel"
msgid "System Preferences"
msgstr "Préférences Système"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr "Verrouiller l'écran"
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""
@ -166,9 +174,6 @@ msgstr ""
#~ msgid "Show favorites first"
#~ msgstr "Voir les Favoris en premier"
#~ msgid "Lock Screen"
#~ msgstr "Verrouiller l'écran"
#~ msgid "Leave ..."
#~ msgstr "Quitter ..."

View File

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: 2021-09-29 09:43+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -120,6 +120,14 @@ msgstr "사용자 홈"
msgid "System Preferences"
msgstr "시스템 설정"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr "잠금"
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""
@ -166,9 +174,6 @@ msgstr ""
#~ msgid "Edit Applications..."
#~ msgstr "프로그램 편집..."
#~ msgid "Lock Screen"
#~ msgstr "잠금"
#~ msgid "Leave ..."
#~ msgstr "떠나기..."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: 2022-01-01 20:09+0100\n"
"Last-Translator: Heimen Stoffels <vistausss@fastmail.com>\n"
"Language-Team: \n"
@ -124,6 +124,14 @@ msgstr ""
msgid "System Preferences"
msgstr "Systeeminstellingen"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: 2022-04-05 10:40+0100\n"
"Last-Translator: Krzysztof Korab <korapps@outlook.com>\n"
"Language-Team: \n"
@ -123,6 +123,14 @@ msgstr "Katalog domowy"
msgid "System Preferences"
msgstr "Ustawienia systemowe"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -123,6 +123,14 @@ msgstr "Diretório do Usuário"
msgid "System Preferences"
msgstr "Configurações do Sistema"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr "Tela de bloqueio"
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""
@ -169,9 +177,6 @@ msgstr ""
#~ msgid "Edit Applications..."
#~ msgstr "Editar Programa"
#~ msgid "Lock Screen"
#~ msgstr "Tela de bloqueio"
#~ msgid "Leave ..."
#~ msgstr "Sair ..."

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Edward Karate <edward.karate@ya.ru>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -85,7 +85,7 @@ msgstr "Положение меню"
#: ../contents/ui/ConfigGeneral.qml
msgid "Default"
msgstr "По умолчанию"
msgstr "По-умолчанию"
#: ../contents/ui/ConfigGeneral.qml
msgid "Center"
@ -123,6 +123,14 @@ msgstr "Домашняя папка"
msgid "System Preferences"
msgstr "Параметры системы"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr "Заблокировать"
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr "Сменить пользователя"
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr "Выключение"
@ -169,9 +177,6 @@ msgstr "Последние документы"
#~ msgid "Edit Applications..."
#~ msgstr "Редактировать меню..."
#~ msgid "Lock Screen"
#~ msgstr "Заблокировать"
#~ msgid "Leave ..."
#~ msgstr "Выход ..."

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Menu11\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -123,6 +123,14 @@ msgstr ""
msgid "System Preferences"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n"
"POT-Creation-Date: 2024-09-23 12:45+0500\n"
"POT-Creation-Date: 2024-09-24 13:00+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -126,6 +126,14 @@ msgstr "Kullanıcı Ana Sayfası"
msgid "System Preferences"
msgstr "Sistem Tercihleri"
#: ../contents/ui/Footer.qml
msgid "Lock Screen"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Switch User"
msgstr ""
#: ../contents/ui/Footer.qml
msgid "Shutdown"
msgstr ""