compose: Initial migration of AppDetails* logic to compose [2/*]

Deprecate setting to hide similar and related apps as they will be always
listed in the suggestions pane on widescreen devices

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-04-28 14:16:26 +08:00
parent f6f858e9f5
commit 097f5a7375
111 changed files with 1108 additions and 2571 deletions

View File

@@ -0,0 +1,22 @@
/*
* SPDX-FileCopyrightText: 2025 The Calyx Institute
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.aurora.extensions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.adaptive.WindowAdaptiveInfo
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.window.core.layout.WindowWidthSizeClass
/**
* Returns navigation icon for adaptive screens such as extra pane
*/
val WindowAdaptiveInfo.adaptiveNavigationIcon: ImageVector
get() = when (windowSizeClass.windowWidthSizeClass) {
WindowWidthSizeClass.COMPACT -> Icons.AutoMirrored.Filled.ArrowBack
else -> Icons.Default.Close
}