1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 16:32:50 -05:00

powermenu: replace with grid style

This commit is contained in:
bbedward
2025-11-12 00:48:42 -05:00
parent 748faf92c1
commit e527453964
11 changed files with 354 additions and 259 deletions

View File

@@ -482,6 +482,10 @@ Item {
} }
} }
onLockRequested: {
lock.activate()
}
function actionApply(action) { function actionApply(action) {
switch (action) { switch (action) {
case "logout": case "logout":

View File

@@ -1,4 +1,5 @@
import QtQuick import QtQuick
import Quickshell
import qs.Common import qs.Common
import qs.Modals.Common import qs.Modals.Common
import qs.Services import qs.Services
@@ -9,12 +10,14 @@ DankModal {
layerNamespace: "dms:power-menu" layerNamespace: "dms:power-menu"
property int selectedIndex: 0 property int selectedRow: 0
property int optionCount: SessionService.hibernateSupported ? 5 : 4 property int selectedCol: 0
property int selectedIndex: selectedRow * 3 + selectedCol
property rect parentBounds: Qt.rect(0, 0, 0, 0) property rect parentBounds: Qt.rect(0, 0, 0, 0)
property var parentScreen: null property var parentScreen: null
signal powerActionRequested(string action, string title, string message) signal powerActionRequested(string action, string title, string message)
signal lockRequested
function openCentered() { function openCentered() {
parentBounds = Qt.rect(0, 0, 0, 0) parentBounds = Qt.rect(0, 0, 0, 0)
@@ -30,8 +33,23 @@ DankModal {
open() open()
} }
function getActionAtIndex(index) {
const actions = ["poweroff", "lock", "suspend", "reboot", "logout", SessionService.hibernateSupported ? "hibernate" : "restart"]
return actions[index]
}
function selectOption(action) { function selectOption(action) {
close(); if (action === "lock") {
close()
lockRequested()
return
}
if (action === "restart") {
close()
Quickshell.execDetached(["dms", "restart"])
return
}
close()
const actions = { const actions = {
"logout": { "logout": {
"title": I18n.tr("Log Out"), "title": I18n.tr("Log Out"),
@@ -56,13 +74,12 @@ DankModal {
} }
const selected = actions[action] const selected = actions[action]
if (selected) { if (selected) {
root.powerActionRequested(action, selected.title, selected.message); root.powerActionRequested(action, selected.title, selected.message)
} }
} }
shouldBeVisible: false shouldBeVisible: false
width: 320 width: 550
height: contentLoader.item ? contentLoader.item.implicitHeight : 300 height: contentLoader.item ? contentLoader.item.implicitHeight : 300
enableShadow: true enableShadow: true
screen: parentScreen screen: parentScreen
@@ -76,60 +93,64 @@ DankModal {
return Qt.point(0, 0) return Qt.point(0, 0)
} }
onBackgroundClicked: () => { onBackgroundClicked: () => {
return close(); return close()
} }
onOpened: () => { onOpened: () => {
selectedIndex = 0; selectedRow = 0
Qt.callLater(() => modalFocusScope.forceActiveFocus()); selectedCol = 1
} Qt.callLater(() => modalFocusScope.forceActiveFocus())
modalFocusScope.Keys.onPressed: (event) => { }
switch (event.key) { modalFocusScope.Keys.onPressed: event => {
case Qt.Key_Up: switch (event.key) {
case Qt.Key_Backtab: case Qt.Key_Left:
selectedIndex = (selectedIndex - 1 + optionCount) % optionCount; selectedCol = (selectedCol - 1 + 3) % 3
event.accepted = true; event.accepted = true
break; break
case Qt.Key_Down: case Qt.Key_Right:
case Qt.Key_Tab: selectedCol = (selectedCol + 1) % 3
selectedIndex = (selectedIndex + 1) % optionCount; event.accepted = true
event.accepted = true; break
break; case Qt.Key_Up:
case Qt.Key_Return: case Qt.Key_Backtab:
case Qt.Key_Enter: selectedRow = (selectedRow - 1 + 2) % 2
const actions = ["logout", "suspend"]; event.accepted = true
if (SessionService.hibernateSupported) actions.push("hibernate"); break
actions.push("reboot", "poweroff"); case Qt.Key_Down:
if (selectedIndex < actions.length) { case Qt.Key_Tab:
selectOption(actions[selectedIndex]); selectedRow = (selectedRow + 1) % 2
} event.accepted = true
event.accepted = true; break
break; case Qt.Key_Return:
case Qt.Key_N: case Qt.Key_Enter:
if (event.modifiers & Qt.ControlModifier) { selectOption(getActionAtIndex(selectedIndex))
selectedIndex = (selectedIndex + 1) % optionCount; event.accepted = true
event.accepted = true; break
} case Qt.Key_N:
break; if (event.modifiers & Qt.ControlModifier) {
case Qt.Key_P: selectedCol = (selectedCol + 1) % 3
if (event.modifiers & Qt.ControlModifier) { event.accepted = true
selectedIndex = (selectedIndex - 1 + optionCount) % optionCount; }
event.accepted = true; break
} case Qt.Key_P:
break; if (event.modifiers & Qt.ControlModifier) {
case Qt.Key_J: selectedCol = (selectedCol - 1 + 3) % 3
if (event.modifiers & Qt.ControlModifier) { event.accepted = true
selectedIndex = (selectedIndex + 1) % optionCount; }
event.accepted = true; break
} case Qt.Key_J:
break; if (event.modifiers & Qt.ControlModifier) {
case Qt.Key_K: selectedRow = (selectedRow + 1) % 2
if (event.modifiers & Qt.ControlModifier) { event.accepted = true
selectedIndex = (selectedIndex - 1 + optionCount) % optionCount; }
event.accepted = true; break
} case Qt.Key_K:
break; if (event.modifiers & Qt.ControlModifier) {
} selectedRow = (selectedRow - 1 + 2) % 2
} event.accepted = true
}
break
}
}
content: Component { content: Component {
Item { Item {
@@ -142,117 +163,138 @@ DankModal {
anchors.margins: Theme.spacingL anchors.margins: Theme.spacingL
spacing: Theme.spacingM spacing: Theme.spacingM
Row { Grid {
width: parent.width width: parent.width
columns: 3
StyledText { columnSpacing: Theme.spacingS
text: I18n.tr("Power Options") rowSpacing: Theme.spacingS
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
}
Item {
width: parent.width - 150
height: 1
}
DankActionButton {
iconName: "close"
iconSize: Theme.iconSize - 4
iconColor: Theme.surfaceText
onClicked: () => {
return close();
}
}
}
Column {
width: parent.width
spacing: Theme.spacingS
Rectangle { Rectangle {
width: parent.width id: poweroffButton
height: 50 width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: { color: {
if (selectedIndex === 0) { if (root.selectedIndex === 0) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
} else if (logoutArea.containsMouse) { } else if (poweroffArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
} else { } else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08); return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
} }
} }
border.color: selectedIndex === 0 ? Theme.primary : "transparent" border.color: root.selectedIndex === 0 ? Theme.primary : "transparent"
border.width: selectedIndex === 0 ? 1 : 0 border.width: root.selectedIndex === 0 ? 2 : 0
Row { Column {
anchors.left: parent.left anchors.centerIn: parent
anchors.leftMargin: Theme.spacingM spacing: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM
DankIcon { DankIcon {
name: "logout" name: "power_settings_new"
size: Theme.iconSize size: Theme.iconSize + 8
color: Theme.surfaceText color: poweroffArea.containsMouse ? Theme.error : Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
StyledText { StyledText {
text: I18n.tr("Log Out") text: I18n.tr("Power Off")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText color: poweroffArea.containsMouse ? Theme.error : Theme.surfaceText
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea { MouseArea {
id: logoutArea id: poweroffArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: () => { onClicked: () => {
selectedIndex = 0; root.selectedRow = 0
selectOption("logout"); root.selectedCol = 0
} selectOption("poweroff")
}
} }
} }
Rectangle { Rectangle {
width: parent.width id: lockButton
height: 50 width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: { color: {
if (selectedIndex === 1) { if (root.selectedIndex === 1) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
} else if (suspendArea.containsMouse) { } else if (lockArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
} else { } else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08); return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
} }
} }
border.color: selectedIndex === 1 ? Theme.primary : "transparent" border.color: root.selectedIndex === 1 ? Theme.primary : "transparent"
border.width: selectedIndex === 1 ? 1 : 0 border.width: root.selectedIndex === 1 ? 2 : 0
Row { Column {
anchors.left: parent.left anchors.centerIn: parent
anchors.leftMargin: Theme.spacingM spacing: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM DankIcon {
name: "lock"
size: Theme.iconSize + 8
color: Theme.surfaceText
anchors.horizontalCenter: parent.horizontalCenter
}
StyledText {
text: I18n.tr("Lock")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
anchors.horizontalCenter: parent.horizontalCenter
}
}
MouseArea {
id: lockArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: () => {
root.selectedRow = 0
root.selectedCol = 1
selectOption("lock")
}
}
}
Rectangle {
id: suspendButton
width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius
color: {
if (root.selectedIndex === 2) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
} else if (suspendArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
} else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
}
}
border.color: root.selectedIndex === 2 ? Theme.primary : "transparent"
border.width: root.selectedIndex === 2 ? 2 : 0
Column {
anchors.centerIn: parent
spacing: Theme.spacingS
DankIcon { DankIcon {
name: "bedtime" name: "bedtime"
size: Theme.iconSize size: Theme.iconSize + 8
color: Theme.surfaceText color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
StyledText { StyledText {
@@ -260,107 +302,49 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText color: Theme.surfaceText
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea { MouseArea {
id: suspendArea id: suspendArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: () => { onClicked: () => {
selectedIndex = 1; root.selectedRow = 0
selectOption("suspend"); root.selectedCol = 2
} selectOption("suspend")
}
} }
} }
Rectangle { Rectangle {
width: parent.width id: rebootButton
height: 50 width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: { color: {
if (selectedIndex === 2) { if (root.selectedIndex === 3) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
} else if (hibernateArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08);
} else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08);
}
}
border.color: selectedIndex === 2 ? Theme.primary : "transparent"
border.width: selectedIndex === 2 ? 1 : 0
visible: SessionService.hibernateSupported
Row {
anchors.left: parent.left
anchors.leftMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM
DankIcon {
name: "ac_unit"
size: Theme.iconSize
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
text: I18n.tr("Hibernate")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
}
}
MouseArea {
id: hibernateArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: () => {
selectedIndex = 2;
selectOption("hibernate");
}
}
}
Rectangle {
width: parent.width
height: 50
radius: Theme.cornerRadius
color: {
const rebootIndex = SessionService.hibernateSupported ? 3 : 2;
if (selectedIndex === rebootIndex) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12);
} else if (rebootArea.containsMouse) { } else if (rebootArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08); return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
} else { } else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08); return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
} }
} }
border.color: selectedIndex === (SessionService.hibernateSupported ? 3 : 2) ? Theme.primary : "transparent" border.color: root.selectedIndex === 3 ? Theme.primary : "transparent"
border.width: selectedIndex === (SessionService.hibernateSupported ? 3 : 2) ? 1 : 0 border.width: root.selectedIndex === 3 ? 2 : 0
Row { Column {
anchors.left: parent.left anchors.centerIn: parent
anchors.leftMargin: Theme.spacingM spacing: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM
DankIcon { DankIcon {
name: "restart_alt" name: "restart_alt"
size: Theme.iconSize size: Theme.iconSize + 8
color: rebootArea.containsMouse ? Theme.warning : Theme.surfaceText color: rebootArea.containsMouse ? Theme.warning : Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
StyledText { StyledText {
@@ -368,89 +352,128 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: rebootArea.containsMouse ? Theme.warning : Theme.surfaceText color: rebootArea.containsMouse ? Theme.warning : Theme.surfaceText
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea { MouseArea {
id: rebootArea id: rebootArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: () => { onClicked: () => {
selectedIndex = SessionService.hibernateSupported ? 3 : 2; root.selectedRow = 1
selectOption("reboot"); root.selectedCol = 0
} selectOption("reboot")
}
} }
} }
Rectangle { Rectangle {
width: parent.width id: logoutButton
height: 50 width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: { color: {
const powerOffIndex = SessionService.hibernateSupported ? 4 : 3; if (root.selectedIndex === 4) {
if (selectedIndex === powerOffIndex) { return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12); } else if (logoutArea.containsMouse) {
} else if (powerOffArea.containsMouse) { return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08);
} else { } else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08); return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
} }
} }
border.color: selectedIndex === (SessionService.hibernateSupported ? 4 : 3) ? Theme.primary : "transparent" border.color: root.selectedIndex === 4 ? Theme.primary : "transparent"
border.width: selectedIndex === (SessionService.hibernateSupported ? 4 : 3) ? 1 : 0 border.width: root.selectedIndex === 4 ? 2 : 0
Row { Column {
anchors.left: parent.left anchors.centerIn: parent
anchors.leftMargin: Theme.spacingM spacing: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM
DankIcon { DankIcon {
name: "power_settings_new" name: "logout"
size: Theme.iconSize size: Theme.iconSize + 8
color: powerOffArea.containsMouse ? Theme.error : Theme.surfaceText color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
StyledText { StyledText {
text: I18n.tr("Power Off") text: I18n.tr("Log Out")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: powerOffArea.containsMouse ? Theme.error : Theme.surfaceText color: Theme.surfaceText
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea { MouseArea {
id: powerOffArea id: logoutArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: () => { onClicked: () => {
selectedIndex = SessionService.hibernateSupported ? 4 : 3; root.selectedRow = 1
selectOption("poweroff"); root.selectedCol = 1
selectOption("logout")
}
}
}
Rectangle {
id: hibernateOrRestartButton
width: (parent.width - Theme.spacingS * 2) / 3
height: 100
radius: Theme.cornerRadius
color: {
if (root.selectedIndex === 5) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
} else if (hibernateRestartArea.containsMouse) {
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08)
} else {
return Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.08)
}
}
border.color: root.selectedIndex === 5 ? Theme.primary : "transparent"
border.width: root.selectedIndex === 5 ? 2 : 0
Column {
anchors.centerIn: parent
spacing: Theme.spacingS
DankIcon {
name: SessionService.hibernateSupported ? "ac_unit" : "refresh"
size: Theme.iconSize + 8
color: Theme.surfaceText
anchors.horizontalCenter: parent.horizontalCenter
}
StyledText {
text: SessionService.hibernateSupported ? I18n.tr("Hibernate") : I18n.tr("Restart")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea {
id: hibernateRestartArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: () => {
root.selectedRow = 1
root.selectedCol = 2
selectOption(SessionService.hibernateSupported ? "hibernate" : "restart")
}
}
} }
} }
Item { Item {
height: Theme.spacingS height: Theme.spacingS
} }
} }
} }
} }
} }

View File

@@ -212,31 +212,31 @@
{ {
"term": "Are you sure you want to hibernate the system?", "term": "Are you sure you want to hibernate the system?",
"context": "Are you sure you want to hibernate the system?", "context": "Are you sure you want to hibernate the system?",
"reference": "Modals/PowerMenuModal.qml:46", "reference": "Modals/PowerMenuModal.qml:64",
"comment": "" "comment": ""
}, },
{ {
"term": "Are you sure you want to log out?", "term": "Are you sure you want to log out?",
"context": "Are you sure you want to log out?", "context": "Are you sure you want to log out?",
"reference": "Modals/PowerMenuModal.qml:38", "reference": "Modals/PowerMenuModal.qml:56",
"comment": "" "comment": ""
}, },
{ {
"term": "Are you sure you want to power off the system?", "term": "Are you sure you want to power off the system?",
"context": "Are you sure you want to power off the system?", "context": "Are you sure you want to power off the system?",
"reference": "Modals/PowerMenuModal.qml:54", "reference": "Modals/PowerMenuModal.qml:72",
"comment": "" "comment": ""
}, },
{ {
"term": "Are you sure you want to reboot the system?", "term": "Are you sure you want to reboot the system?",
"context": "Are you sure you want to reboot the system?", "context": "Are you sure you want to reboot the system?",
"reference": "Modals/PowerMenuModal.qml:50", "reference": "Modals/PowerMenuModal.qml:68",
"comment": "" "comment": ""
}, },
{ {
"term": "Are you sure you want to suspend the system?", "term": "Are you sure you want to suspend the system?",
"context": "Are you sure you want to suspend the system?", "context": "Are you sure you want to suspend the system?",
"reference": "Modals/PowerMenuModal.qml:42", "reference": "Modals/PowerMenuModal.qml:60",
"comment": "" "comment": ""
}, },
{ {
@@ -1754,7 +1754,7 @@
{ {
"term": "Hibernate", "term": "Hibernate",
"context": "Hibernate", "context": "Hibernate",
"reference": "Modals/PowerMenuModal.qml:45, Modals/PowerMenuModal.qml:313, Modules/Lock/LockPowerMenu.qml:312", "reference": "Modals/PowerMenuModal.qml:63, Modals/PowerMenuModal.qml:451, Modules/Lock/LockPowerMenu.qml:312",
"comment": "" "comment": ""
}, },
{ {
@@ -2045,6 +2045,12 @@
"reference": "Modules/Settings/TimeWeatherTab.qml:769", "reference": "Modules/Settings/TimeWeatherTab.qml:769",
"comment": "" "comment": ""
}, },
{
"term": "Lock",
"context": "Lock",
"reference": "Modals/PowerMenuModal.qml:251",
"comment": ""
},
{ {
"term": "Lock Screen", "term": "Lock Screen",
"context": "Lock Screen", "context": "Lock Screen",
@@ -2066,7 +2072,7 @@
{ {
"term": "Log Out", "term": "Log Out",
"context": "Log Out", "context": "Log Out",
"reference": "Modals/PowerMenuModal.qml:37, Modals/PowerMenuModal.qml:206, Modules/Lock/LockPowerMenu.qml:209, Modules/ControlCenter/PowerMenu.qml:14", "reference": "Modals/PowerMenuModal.qml:55, Modals/PowerMenuModal.qml:401, Modules/Lock/LockPowerMenu.qml:209, Modules/ControlCenter/PowerMenu.qml:14",
"comment": "" "comment": ""
}, },
{ {
@@ -2840,13 +2846,13 @@
{ {
"term": "Power Off", "term": "Power Off",
"context": "Power Off", "context": "Power Off",
"reference": "Modals/PowerMenuModal.qml:53, Modals/PowerMenuModal.qml:421, Modules/Lock/LockPowerMenu.qml:432, Modules/ControlCenter/PowerMenu.qml:17", "reference": "Modals/PowerMenuModal.qml:71, Modals/PowerMenuModal.qml:201, Modules/Lock/LockPowerMenu.qml:432, Modules/ControlCenter/PowerMenu.qml:17",
"comment": "" "comment": ""
}, },
{ {
"term": "Power Options", "term": "Power Options",
"context": "Power Options", "context": "Power Options",
"reference": "Modals/PowerMenuModal.qml:149, Modules/Lock/LockPowerMenu.qml:154, Modules/ControlCenter/PowerMenu.qml:13", "reference": "Modules/Lock/LockPowerMenu.qml:154, Modules/ControlCenter/PowerMenu.qml:13",
"comment": "" "comment": ""
}, },
{ {
@@ -2972,7 +2978,7 @@
{ {
"term": "Reboot", "term": "Reboot",
"context": "Reboot", "context": "Reboot",
"reference": "Modals/PowerMenuModal.qml:49, Modals/PowerMenuModal.qml:367, Modules/Lock/LockPowerMenu.qml:372, Modules/ControlCenter/PowerMenu.qml:16", "reference": "Modals/PowerMenuModal.qml:67, Modals/PowerMenuModal.qml:351, Modules/Lock/LockPowerMenu.qml:372, Modules/ControlCenter/PowerMenu.qml:16",
"comment": "" "comment": ""
}, },
{ {
@@ -3029,6 +3035,12 @@
"reference": "Modules/Settings/AboutTab.qml:465", "reference": "Modules/Settings/AboutTab.qml:465",
"comment": "" "comment": ""
}, },
{
"term": "Restart",
"context": "Restart",
"reference": "Modals/PowerMenuModal.qml:451",
"comment": ""
},
{ {
"term": "Resume", "term": "Resume",
"context": "Resume", "context": "Resume",
@@ -3512,7 +3524,7 @@
{ {
"term": "Suspend", "term": "Suspend",
"context": "Suspend", "context": "Suspend",
"reference": "Modals/PowerMenuModal.qml:41, Modals/PowerMenuModal.qml:259, Modules/Lock/LockPowerMenu.qml:260, Modules/ControlCenter/PowerMenu.qml:15", "reference": "Modals/PowerMenuModal.qml:59, Modals/PowerMenuModal.qml:301, Modules/Lock/LockPowerMenu.qml:260, Modules/ControlCenter/PowerMenu.qml:15",
"comment": "" "comment": ""
}, },
{ {

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "Ricerca Posizione" "Location Search": "Ricerca Posizione"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "Blocca Schermo" "Lock Screen": "Blocca Schermo"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "Risorse" "Resources": "Risorse"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "Riprendi" "Resume": "Riprendi"
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "ロケーション検索" "Location Search": "ロケーション検索"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "ロック画面" "Lock Screen": "ロック画面"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "リソース" "Resources": "リソース"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "レジュメ" "Resume": "レジュメ"
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "Wyszukiwanie lokalizacji" "Location Search": "Wyszukiwanie lokalizacji"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "Ekran blokady" "Lock Screen": "Ekran blokady"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "Źródła" "Resources": "Źródła"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "Wznów" "Resume": "Wznów"
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "Procurar Localização" "Location Search": "Procurar Localização"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "Tela de Bloqueio" "Lock Screen": "Tela de Bloqueio"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "Recursos" "Resources": "Recursos"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "" "Resume": ""
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "Konum Arama" "Location Search": "Konum Arama"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "Kilit Ekranı" "Lock Screen": "Kilit Ekranı"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "Kaynaklar" "Resources": "Kaynaklar"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "Sürdür" "Resume": "Sürdür"
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "位置搜索" "Location Search": "位置搜索"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "锁屏" "Lock Screen": "锁屏"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "资源" "Resources": "资源"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "恢复" "Resume": "恢复"
}, },

View File

@@ -1022,6 +1022,9 @@
"Location Search": { "Location Search": {
"Location Search": "位置搜尋" "Location Search": "位置搜尋"
}, },
"Lock": {
"Lock": ""
},
"Lock Screen": { "Lock Screen": {
"Lock Screen": "鎖定螢幕" "Lock Screen": "鎖定螢幕"
}, },
@@ -1514,6 +1517,9 @@
"Resources": { "Resources": {
"Resources": "資源" "Resources": "資源"
}, },
"Restart": {
"Restart": ""
},
"Resume": { "Resume": {
"Resume": "" "Resume": ""
}, },

View File

@@ -2386,6 +2386,13 @@
"reference": "", "reference": "",
"comment": "" "comment": ""
}, },
{
"term": "Lock",
"translation": "",
"context": "",
"reference": "",
"comment": ""
},
{ {
"term": "Lock Screen", "term": "Lock Screen",
"translation": "", "translation": "",
@@ -3534,6 +3541,13 @@
"reference": "", "reference": "",
"comment": "" "comment": ""
}, },
{
"term": "Restart",
"translation": "",
"context": "",
"reference": "",
"comment": ""
},
{ {
"term": "Resume", "term": "Resume",
"translation": "", "translation": "",