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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user