Commit 2c8da5a4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Small display fixes

parent 09e1c5e0
......@@ -34,14 +34,14 @@ Item {
function translate(identifier) {
switch(identifier) {
case "CapsLock": return i18n("Caps Lock")
case "Caps Lock": return i18n("Caps Lock")
case "Num Lock": return i18n("Num Lock")
}
return identifier;
}
function icon(identifier) {
switch(identifier) {
case "CapsLock": return "input-caps-on"
case "Caps Lock": return "input-caps-on"
}
return "emblem-locked";
}
......@@ -49,7 +49,7 @@ Item {
readonly property bool isLocked: keystateSource.data[plasmoid.configuration.key].Locked
readonly property string message: isLocked ? i18n("%1 is locked", translate(plasmoid.configuration.key)) : i18n("%1 is unlocked", translate(plasmoid.configuration.key))
Plasmoid.icon: isLocked ? "input-caps-on" : ""
Plasmoid.icon: isLocked ? icon(plasmoid.configuration.key) : ""
Plasmoid.title: message
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
Plasmoid.fullRepresentation: PlasmaCore.ToolTipArea {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment