Commit e2c52357 authored by Andrey Butirsky's avatar Andrey Butirsky

Keyboard Layout applet

Unified (X11/Wayland) QML applet intended to replace existing C++ Widget solutions

P-W commit:
KeyboardLayoutButton.qml: add property for Long layout Name

CHANGELOG:
FEATURE: 390079
BUG: 390079
parent 5550ac0b
......@@ -15,3 +15,4 @@ endif()
add_subdirectory(minimizeall)
add_subdirectory(showdesktop)
add_subdirectory(kimpanel)
plasma_install_package(keyboardlayout org.kde.plasma.keyboardlayout)
/*
* SPDX-FileCopyrightText: 2020 Andrey Butirsky <butirsky@gmail.com>
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.workspace.components 2.0
KeyboardLayoutButton {
text: layoutShortName
Plasmoid.toolTipSubText: layoutLongName
// TODO: add flag support
icon.name: ""
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
Plasmoid.status: hasMultipleKeyboardLayouts ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.HiddenStatus
// to fit at least 2 letters in systray
leftPadding: 0
rightPadding: 0
topPadding: 0
bottomPadding: 0
}
[Desktop Entry]
Name=Keyboard Layout
Comment=Show/switch keyboard layout
Icon=input-keyboard
Type=Service
X-KDE-ServiceTypes=Plasma/Applet
X-KDE-PluginInfo-Author=Andrey Butirsky
X-KDE-PluginInfo-Email=butirsky@gmail.com
X-KDE-PluginInfo-Name=org.kde.plasma.keyboardlayout
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Website=https://kde.org/plasma-desktop/
X-KDE-PluginInfo-License=GPL-2.0+
X-KDE-PluginInfo-EnabledByDefault=true
X-Plasma-NotificationArea=true
X-Plasma-NotificationAreaCategory=Hardware
X-Plasma-MainScript=ui/main.qml
X-Plasma-API=declarativeappletscript
Markdown is supported
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