1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -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 { 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 font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceTextMedium color: Theme.surfaceTextMedium
width: parent.width width: parent.width
@@ -171,7 +171,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText textColor: Theme.surfaceText
text: wifiUsernameInput text: wifiUsernameInput
placeholderText: "Username" placeholderText: I18n.tr("Username")
backgroundColor: "transparent" backgroundColor: "transparent"
enabled: root.shouldBeVisible enabled: root.shouldBeVisible
onTextEdited: () => { onTextEdited: () => {
@@ -208,7 +208,7 @@ DankModal {
textColor: Theme.surfaceText textColor: Theme.surfaceText
text: wifiPasswordInput text: wifiPasswordInput
echoMode: showPasswordCheckbox.checked ? TextInput.Normal : TextInput.Password echoMode: showPasswordCheckbox.checked ? TextInput.Normal : TextInput.Password
placeholderText: requiresEnterprise ? "Password" : "" placeholderText: requiresEnterprise ? I18n.tr("Password") : ""
backgroundColor: "transparent" backgroundColor: "transparent"
focus: !requiresEnterprise focus: !requiresEnterprise
enabled: root.shouldBeVisible enabled: root.shouldBeVisible
@@ -291,7 +291,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText textColor: Theme.surfaceText
text: wifiRealmInput text: wifiRealmInput
placeholderText: "Realm / Domain (optional)" placeholderText: I18n.tr("Realm / Domain (optional)")
backgroundColor: "transparent" backgroundColor: "transparent"
enabled: root.shouldBeVisible enabled: root.shouldBeVisible
onTextEdited: () => { onTextEdited: () => {
@@ -385,7 +385,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText textColor: Theme.surfaceText
text: wifiAnonymousIdentityInput text: wifiAnonymousIdentityInput
placeholderText: "Anonymous Identity (optional)" placeholderText: I18n.tr("Anonymous Identity (optional)")
backgroundColor: "transparent" backgroundColor: "transparent"
enabled: root.shouldBeVisible enabled: root.shouldBeVisible
onTextEdited: () => { onTextEdited: () => {
@@ -417,7 +417,7 @@ DankModal {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
textColor: Theme.surfaceText textColor: Theme.surfaceText
text: wifiDomainSuffixMatchInput text: wifiDomainSuffixMatchInput
placeholderText: "Server Domain for certificate (optional)" placeholderText: I18n.tr("Server Domain for certificate (optional)")
backgroundColor: "transparent" backgroundColor: "transparent"
enabled: root.shouldBeVisible enabled: root.shouldBeVisible
onTextEdited: () => { onTextEdited: () => {

View File

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

View File

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