Skip to content

Commit

Permalink
Merge pull request #280 from HelloVolla/dev
Browse files Browse the repository at this point in the history
fix for app search
  • Loading branch information
wurzer authored Dec 30, 2024
2 parents ff0674b + 277b52f commit 67576c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions AppGroup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Item {

property bool unreadMessages: false
property bool newCalls: false
property bool isHeaderVisible: groupIndex !== selectedGroupIndex
property bool isHeader2Visible: groupIndex === selectedGroupIndex && groupIndex > 0 && groupLabel.toLowerCase()
property bool isGridVisible: groupIndex === selectedGroupIndex

property var accentColor
property var notificationData:""
Expand Down Expand Up @@ -78,8 +81,7 @@ Item {

onSelectedGroupIndexChanged: {
console.log("AppGroup " + groupIndex + " | Selected group changed to " + selectedGroupIndex)
groupItem.groupIndex === 0 ? 0 : groupItem.groupIndex === 1 && groupItem.selectedGroupIndex === 0 ?
groupItem.innerSpacing / 2 : groupItem.innerSpacing
groupColumn.topPadding = groupItem.groupIndex === 0 ? 0 : groupItem.groupIndex === 1 && groupItem.selectedGroupIndex === 0 ? groupItem.innerSpacing / 2 : groupItem.innerSpacing
}

function showApps(appsShouldBeVisible) {
Expand All @@ -100,13 +102,9 @@ Item {
width: parent.width
topPadding: groupItem.groupIndex === 0 ? 0 : groupItem.groupIndex === 1 && groupItem.selectedGroupIndex === 0 ?
groupItem.componentSpacing / 2 : groupItem.componentSpacing
Component.onCompleted: {
groupHeader.visible = !groupGrid.visible
groupHeader2.visible = groupGrid.visible && groupItem.groupIndex > 0 && groupItem.groupLabel.toLowerCase() !== "apps"
}

Button {
id: groupHeader
visible: groupItem.isHeaderVisible
anchors.horizontalCenter: parent.horizontalCenter
flat: true
text: groupItem.groupLabel
Expand All @@ -117,7 +115,6 @@ Item {
opacity: 0.5
font.pointSize: groupItem.headerPointSize
}
visible: false // !groupGrid.visible
background: Rectangle {
color: "transparent"
border.color: Universal.foreground
Expand All @@ -132,12 +129,12 @@ Item {

Label {
id: groupHeader2
visible: groupItem.isHeader2Visible
anchors.horizontalCenter: parent.horizontalCenter
topPadding: groupItem.componentSpacing / 2
bottomPadding: groupItem.componentSpacing / 2
leftPadding: groupItem.innerSpacing / 2
rightPadding: groupItem.innerSpacing / 2
visible: false // groupGrid.visible && groupItem.groupIndex > 0 && groupItem.groupLabel.toLowerCase() !== "apps"
text: groupHeader.text
color: Universal.foreground
opacity: 0.5
Expand All @@ -152,10 +149,9 @@ Item {
id: groupGrid
width: parent.width
height: contentHeight
topMargin: groupItem.groupIndex > 0 ? groupItem.compnentSpacing / 2 : 0
cellHeight: parent.width / groupItem.columnCount * 1.28
cellWidth: parent.width / groupItem.columnCount
visible: groupItem.groupIndex === groupItem.selectedGroupIndex
visible: groupItem.isGridVisible
interactive: false

model: groupModel
Expand Down
2 changes: 1 addition & 1 deletion android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<manifest package="com.volla.launcher" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="3.0.4" android:versionCode="404" android:installLocation="auto">
<manifest package="com.volla.launcher" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="3.0.6" android:versionCode="405" android:installLocation="auto">
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="29"/>

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Expand Down

0 comments on commit 67576c1

Please sign in to comment.