mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 22:33:08 +00:00
new look for the search applet
This commit is contained in:
parent
dd315d81e0
commit
e18f7b4560
2 changed files with 30 additions and 6 deletions
|
|
@ -25,22 +25,46 @@ import QtQuick.Layouts 1.1
|
||||||
import org.kde.plasma.plasmoid 2.0
|
import org.kde.plasma.plasmoid 2.0
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
import org.kde.plasma.components 3.0 as PlasmaComponents
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
||||||
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||||
import org.kde.milou 0.1 as Milou
|
import org.kde.milou 0.1 as Milou
|
||||||
import org.kde.kirigami 2.10 as Kirigami
|
import org.kde.kirigami 2.14 as Kirigami
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
|
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
|
||||||
Plasmoid.backgroundHints: PlasmaCore.Types.ShadowBackground | PlasmaCore.Types.ConfigurableBackground
|
Plasmoid.backgroundHints: PlasmaCore.Types.ShadowBackground | PlasmaCore.Types.ConfigurableBackground
|
||||||
Layout.minimumWidth: Math.min(plasmoid.availableScreenRect.width, plasmoid.availableScreenRect.height) - Kirigami.Units.gridUnit * 2
|
Layout.minimumWidth: Math.min(plasmoid.availableScreenRect.width, plasmoid.availableScreenRect.height) - Kirigami.Units.gridUnit * 2
|
||||||
|
|
||||||
PlasmaComponents.TextField {
|
Rectangle {
|
||||||
id: bigClock
|
id: background
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
margins: units.gridUnit
|
margins: units.gridUnit
|
||||||
}
|
}
|
||||||
text: i18n("Search...")
|
radius: height/2
|
||||||
|
height: layout.implicitHeight + radius
|
||||||
|
color: Qt.rgba(1,1,1, 0.3)
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: layout
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
margins: background.radius/2
|
||||||
|
}
|
||||||
|
Kirigami.Icon {
|
||||||
|
source: "search"
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.preferredWidth: height
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
PlasmaExtras.Heading {
|
||||||
|
level: 2
|
||||||
|
text: i18n("Search...")
|
||||||
|
}
|
||||||
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: window.showMaximized()
|
onClicked: window.showMaximized()
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ Comment[x-test]=xxSearch and run Applications and servicesxx
|
||||||
Comment[zh_CN]=搜索和运行应用程序及服务
|
Comment[zh_CN]=搜索和运行应用程序及服务
|
||||||
Comment[zh_TW]=搜尋並執行應用程式及服務
|
Comment[zh_TW]=搜尋並執行應用程式及服務
|
||||||
|
|
||||||
Icon=preferences-system-time
|
Icon=search
|
||||||
Type=Service
|
Type=Service
|
||||||
X-KDE-ParentApp=
|
X-KDE-ParentApp=
|
||||||
X-KDE-PluginInfo-Author=Marco Martin
|
X-KDE-PluginInfo-Author=Marco Martin
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue