mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-29 19:23:38 +02:00
Hover effects.
Removed HiFi controlsUit. Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
f5f7eae4a5
commit
26be09eb20
1 changed files with 40 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import controlsUit 1.0 as HifiControlsUit
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: Qt.rgba(0.1,0.1,0.1,1)
|
color: Qt.rgba(0.1,0.1,0.1,1)
|
||||||
|
@ -63,6 +62,17 @@ Rectangle {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: parent.parent.children[1].x = 15
|
||||||
|
onExited: parent.parent.children[1].x = 5
|
||||||
|
|
||||||
|
onClicked: (mouse) => {
|
||||||
|
mouse.accepted = false
|
||||||
|
parent.forceActiveFocus() // Hack? Maybe see if this can be better done another way
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -73,7 +83,15 @@ Rectangle {
|
||||||
text: "Search..."
|
text: "Search..."
|
||||||
font.italic: true
|
font.italic: true
|
||||||
visible: parent.children[0].text == ""
|
visible: parent.children[0].text == ""
|
||||||
|
|
||||||
|
Behavior on x {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -93,6 +111,10 @@ Rectangle {
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: parent.color = "#122F41"
|
||||||
|
onExited: parent.color = "#296992"
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (root.current_page == "app_list") {
|
if (root.current_page == "app_list") {
|
||||||
root.current_page = "repos"
|
root.current_page = "repos"
|
||||||
|
@ -125,7 +147,6 @@ Rectangle {
|
||||||
height: parent.height - 60
|
height: parent.height - 60
|
||||||
clip: true
|
clip: true
|
||||||
interactive: true
|
interactive: true
|
||||||
spacing: 5
|
|
||||||
id: installed_apps_list
|
id: installed_apps_list
|
||||||
model: installed_apps
|
model: installed_apps
|
||||||
|
|
||||||
|
@ -522,6 +543,14 @@ Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 60
|
height: 60
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: {
|
||||||
|
parent.parent.color = "#111111"
|
||||||
|
}
|
||||||
|
onExited: {
|
||||||
|
parent.parent.color = parent.parent.index % 2 === 0 ? "transparent" : Qt.rgba(0.15,0.15,0.15,1)
|
||||||
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (installed_apps_list.index_selected == index){
|
if (installed_apps_list.index_selected == index){
|
||||||
installed_apps_list.index_selected = -1;
|
installed_apps_list.index_selected = -1;
|
||||||
|
@ -620,6 +649,15 @@ Rectangle {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 40
|
height: 40
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: {
|
||||||
|
parent.color = "#111111"
|
||||||
|
}
|
||||||
|
onExited: {
|
||||||
|
parent.color = parent.index % 2 === 0 ? "transparent" : Qt.rgba(0.15,0.15,0.15,1)
|
||||||
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (registered_repo_list.index_selected == index){
|
if (registered_repo_list.index_selected == index){
|
||||||
registered_repo_list.index_selected = -1;
|
registered_repo_list.index_selected = -1;
|
||||||
|
|
Loading…
Reference in a new issue