Commit e18f7b45 authored by Marco Martin's avatar Marco Martin
Browse files

new look for the search applet

parent dd315d81
...@@ -25,22 +25,46 @@ import QtQuick.Layouts 1.1 ...@@ -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 ...@@ -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
......
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