Commit 7b5ed5f6 authored by Bharadwaj Raju's avatar Bharadwaj Raju Committed by Nate Graham
Browse files

applets/keyboardindicator: Use input-caps-on as default icon

Now it has the same icon across its Widget Explorer entry, config window entry, and compact
representation. And this icon is different from the icon used by the Keyboard Layout widget.

BUG: 460357
FIXED-IN: 5.27
parent 2671509e
Pipeline #250188 passed with stage
in 3 minutes and 14 seconds
......@@ -11,7 +11,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18nc("@title", "Keys")
icon: "input-keyboard"
icon: "input-caps-on"
source: "configAppearance.qml"
}
}
......@@ -56,28 +56,30 @@ Item {
if (data && data.Locked)
return icon(source)
}
return "input-keyboard"
return "input-caps-on"
}
Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation
Plasmoid.compactRepresentation: PlasmaCore.IconItem {
source: plasmoid.icon
active: compactMouse.containsMouse
MouseArea {
id: compactMouse
anchors.fill: parent
Plasmoid.compactRepresentation: MouseArea {
id: compactMouse
activeFocusOnTab: true
hoverEnabled: true
activeFocusOnTab: true
hoverEnabled: true
Accessible.name: Plasmoid.title
Accessible.description: Plasmoid.toolTipSubText
Accessible.role: Accessible.Button
Accessible.name: Plasmoid.title
Accessible.description: Plasmoid.toolTipSubText
Accessible.role: Accessible.Button
onClicked: {
plasmoid.expanded = !plasmoid.expanded
}
onClicked: {
plasmoid.expanded = !plasmoid.expanded
}
PlasmaCore.IconItem {
anchors.fill: parent
source: plasmoid.icon
active: compactMouse.containsMouse
enabled: root.lockedCount > 0
}
}
......@@ -93,7 +95,7 @@ Item {
}
}
Plasmoid.status: lockedCount>0 ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
Plasmoid.status: root.lockedCount > 0 ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
Plasmoid.toolTipSubText: {
var ret = "";
var found = false;
......
......@@ -79,7 +79,7 @@
"Description[zh_CN]": "显示大写或小键盘数字锁定键的激活状态",
"Description[zh_TW]": "顯示大寫鎖定 (Caps Lock) 或數字鎖定 (Num Lock) 是否開啟",
"EnabledByDefault": true,
"Icon": "input-keyboard",
"Icon": "input-caps-on",
"Id": "org.kde.plasma.keyboardindicator",
"License": "GPL-2.0+",
"Name": "Lock Keys Status",
......
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