Skip to content

Commit

Permalink
Merge pull request #75 from neochapay/master
Browse files Browse the repository at this point in the history
Update search panel
  • Loading branch information
locusf authored May 17, 2018
2 parents 3f5bc9c + 8442ef1 commit e932f7b
Show file tree
Hide file tree
Showing 21 changed files with 472 additions and 337 deletions.
387 changes: 131 additions & 256 deletions src/qml/AppLauncher.qml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/qml/CloseButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
// Copyright (c) 2012, Timur Kristóf <[email protected]>

import QtQuick 2.0
import QtQuick 2.6

Image {
id: closeButton
Expand Down
2 changes: 1 addition & 1 deletion src/qml/DeviceLockUI.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.1
import QtQuick 2.6
import QtQuick.Controls 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
2 changes: 1 addition & 1 deletion src/qml/FeedsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Copyright (c) 2011, Tom Swindell <[email protected]>
// Copyright (c) 2012, Timur Kristóf <[email protected]>

import QtQuick 2.1
import QtQuick 2.6
import org.nemomobile.lipstick 0.1
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
2 changes: 1 addition & 1 deletion src/qml/GlacierRotation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
**
****************************************************************************************/

import QtQuick 2.1
import QtQuick 2.6
import QtQuick.Window 2.1
import org.nemomobile.lipstick 0.1

Expand Down
2 changes: 1 addition & 1 deletion src/qml/LockscreenClock.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import QtQuick 2.1
import QtQuick 2.6
import org.nemomobile.devicelock 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
5 changes: 3 additions & 2 deletions src/qml/MainScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
**
****************************************************************************************/

import QtQuick 2.1
import QtQuick 2.6
import QtQuick.Controls 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand All @@ -43,6 +43,7 @@ import org.nemomobile.devicelock 1.0
import "scripts/desktop.js" as Desktop

Page {
id: desktop
// This is used in the favorites page and in the lock screen
WallClock {
id: wallClock
Expand All @@ -63,7 +64,7 @@ Page {
key: "/home/glacier/homeScreen/wallpaperImage"
defaultValue: "/usr/share/lipstick-glacier-home-qt5/qml/images/wallpaper-portrait-bubbles.png"
}
id: desktop

property alias lockscreen: lockScreen
property alias switcher: switcher
property int statusBarHeight: statusbar.height
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Pager.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
// Copyright (c) 2012, Timur Kristóf <[email protected]>

import QtQuick 2.0
import QtQuick 2.6

PathView {
id: pager
Expand Down
2 changes: 1 addition & 1 deletion src/qml/ShutdownScreen.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.6
import QtQuick.Window 2.0
import org.nemomobile.lipstick 0.1
import ".."
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Statusbar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
****************************************************************************************/
import QtQuick 2.1
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
2 changes: 1 addition & 1 deletion src/qml/SwitcherItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Copyright (c) 2011, Tom Swindell <[email protected]>
// Copyright (c) 2012, Timur Kristóf <[email protected]>

import QtQuick 2.0
import QtQuick 2.6
import org.nemomobile.lipstick 0.1
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
2 changes: 1 addition & 1 deletion src/qml/ToolBarLayoutExample.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.6
import QtQuick.Controls.Nemo 1.0

Item {
Expand Down
2 changes: 1 addition & 1 deletion src/qml/VolumeControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
**
****************************************************************************************/

import QtQuick 2.1
import QtQuick 2.6
import QtQuick.Controls 1.0
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0
Expand Down
187 changes: 187 additions & 0 deletions src/qml/applauncher/Deleter.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
// This file is part of glacier-home, a nice user experience for touchscreens.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// Copyright (c) 2018, Chupligin Sergey <[email protected]>

import QtQuick 2.6

import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles.Nemo 1.0

Item {//Doesn't yet uninstall applications
id: deleter
property alias remove: remove
property alias uninstall: uninstall
function uninstalling(action, caption) {
state = action
if (action==="remove") {
remove.text = qsTr("Removing") + " " + caption
} else if (action == "uninstall") {
uninstall.text = qsTr("Uninstalling") + " " + caption
}
}

states: [
State {
name: "remove"
PropertyChanges {
target: remove
color1: "#D9ff0000"
color2: "#D9ff0000"
color3: "#D9ff0000"
}
PropertyChanges {
target: uninstall
color1: "#D9ff0000"
color2: "#80ff0000"
color3: "#4Dff0000"
}
PropertyChanges {
target: uninstall
text: qsTr("Uninstall")
}
},
State {
name: "uninstall"
PropertyChanges {
target: uninstall
color1: "#D9ff0000"
color2: "#D9ff0000"
color3: "#D9ff0000"
}
PropertyChanges {
target: remove
color1: "#D9ff0000"
color2: "#80ff0000"
color3: "#4Dff0000"
}
PropertyChanges {
target: remove
text: qsTr("Remove")
}
},
State {
name:"basic"
PropertyChanges {
target: remove
color1: "#D9ff0000"
color2: "#80ff0000"
color3: "#4Dff0000"
}
PropertyChanges {
target: remove
text: qsTr("Remove")
}
PropertyChanges {
target: uninstall
color1: "#D9ff0000"
color2: "#80ff0000"
color3: "#4Dff0000"
}
PropertyChanges {
target: uninstall
text: qsTr("Uninstall")
}
}
]

Rectangle {//WHY?
id: remove
property color color1: "#D9ff0000"
property color color2: "#80ff0000"
property color color3: "#4Dff0000"
property alias text: removeLabel.text
anchors.left: parent.left
visible: gridview.onUninstall
height: Theme.itemHeightExtraLarge
width: gridview.width / 2
gradient: Gradient {
GradientStop { position: 0.0; color: remove.color1 }
GradientStop { position: 0.5; color: remove.color2 }
GradientStop { position: 1.0; color: remove.color3 }
}
Row {
width: parent.width
height: parent.height
Image {
id:removeIcon
fillMode: Image.PreserveAspectFit
height: parent.height -Theme.itemSpacingExtraSmall
width: height
anchors.verticalCenter: parent.verticalCenter
source: "image://theme/remove"
visible: deleter.state != "remove"
}

Label {
id: removeLabel
text: qsTr("Remove")
height: parent.height
width: parent.width - (removeIcon.visible ? removeIcon.width : 0)
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.fontSizeSmall
elide:Text.ElideRight
horizontalAlignment:Text.AlignHCenter
verticalAlignment:Text.AlignVCenter
}
}
}
Rectangle {
id: uninstall
property color color1: "#D9ff0000"
property color color2: "#80ff0000"
property color color3: "#4Dff0000"
property alias text: uninstallLabel.text
anchors.left: remove.right
visible: gridview.onUninstall
width: gridview.width / 2
height: Theme.itemHeightExtraLarge
gradient: Gradient {
GradientStop { position: 0.0; color: uninstall.color1 }
GradientStop { position: 0.5; color: uninstall.color2 }
GradientStop { position: 1.0; color: uninstall.color3 }
}
Row {
width: parent.width
height: parent.height
Image {
id:trashIcon
fillMode: Image.PreserveAspectFit
height: parent.height -Theme.itemSpacingExtraSmall
width: height
anchors.verticalCenter: parent.verticalCenter
source: "image://theme/trash"
visible: deleter.state != "uninstall"
}
Label {
id: uninstallLabel
height: parent.height
width: parent.width - (trashIcon.visible ? trashIcon.width : 0)
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Uninstall")
font.pixelSize: Theme.fontSizeSmall
elide:Text.ElideRight
horizontalAlignment:Text.AlignHCenter
verticalAlignment:Text.AlignVCenter
}
}
}
}

Loading

0 comments on commit e932f7b

Please sign in to comment.