1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

localization: wifi password modal strings

This commit is contained in:
bbedward
2025-10-14 10:57:48 -04:00
parent 7e885d3cee
commit 6d0fba1905
3 changed files with 14 additions and 7 deletions

View File

@@ -128,7 +128,7 @@ DankModal {
}
StyledText {
text: requiresEnterprise ? `Enter credentials for "${wifiPasswordSSID}"` : `Enter password for "${wifiPasswordSSID}"`
text: requiresEnterprise ? I18n.tr("Enter credentials for ") + wifiPasswordSSID : I18n.tr("Enter password for ") + wifiPasswordSSID
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceTextMedium
width: parent.width
@@ -171,7 +171,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText
text: wifiUsernameInput
placeholderText: "Username"
placeholderText: I18n.tr("Username")
backgroundColor: "transparent"
enabled: root.shouldBeVisible
onTextEdited: () => {
@@ -208,7 +208,7 @@ DankModal {
textColor: Theme.surfaceText
text: wifiPasswordInput
echoMode: showPasswordCheckbox.checked ? TextInput.Normal : TextInput.Password
placeholderText: requiresEnterprise ? "Password" : ""
placeholderText: requiresEnterprise ? I18n.tr("Password") : ""
backgroundColor: "transparent"
focus: !requiresEnterprise
enabled: root.shouldBeVisible
@@ -291,7 +291,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText
text: wifiRealmInput
placeholderText: "Realm / Domain (optional)"
placeholderText: I18n.tr("Realm / Domain (optional)")
backgroundColor: "transparent"
enabled: root.shouldBeVisible
onTextEdited: () => {
@@ -385,7 +385,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText
text: wifiAnonymousIdentityInput
placeholderText: "Anonymous Identity (optional)"
placeholderText: I18n.tr("Anonymous Identity (optional)")
backgroundColor: "transparent"
enabled: root.shouldBeVisible
onTextEdited: () => {
@@ -417,7 +417,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText
text: wifiDomainSuffixMatchInput
placeholderText: "Server Domain for certificate (optional)"
placeholderText: I18n.tr("Server Domain for certificate (optional)")
backgroundColor: "transparent"
enabled: root.shouldBeVisible
onTextEdited: () => {

View File

@@ -107,6 +107,7 @@ DankOSD {
AudioService.suppressOSD = true
AudioService.sink.audio.volume = newValue / 100
AudioService.suppressOSD = false
resetHideTimer()
}
}

View File

@@ -34,6 +34,12 @@ PanelWindow {
closeTimer.restart()
}
function resetHideTimer() {
if (shouldBeVisible) {
hideTimer.restart()
}
}
function updateHoverState() {
let isHovered = (enableMouseInteraction && mouseArea.containsMouse) || osdContainer.childHovered
if (enableMouseInteraction) {
@@ -51,7 +57,7 @@ PanelWindow {
}
screen: modelData
visible: shouldBeVisible
visible: false
WlrLayershell.layer: WlrLayershell.Overlay
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None