1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.launcher3.taskbar.customization 18 19 /** Taskbar Icon Specs */ 20 object TaskbarIconSpecs { 21 22 val iconSize40dp = TaskbarIconSize(40) 23 val iconSize44dp = TaskbarIconSize(44) 24 val iconSize48dp = TaskbarIconSize(48) 25 val iconSize52dp = TaskbarIconSize(52) 26 27 val transientTaskbarIconSizes = arrayOf(iconSize44dp, iconSize48dp, iconSize52dp) 28 29 val defaultPersistentIconSize = iconSize40dp 30 val defaultTransientIconSize = iconSize44dp 31 32 // defined as row, columns 33 val transientTaskbarIconSizeByGridSize = 34 mapOf( 35 Pair(6, 5) to iconSize52dp, 36 Pair(4, 5) to iconSize48dp, 37 Pair(5, 4) to iconSize48dp, 38 Pair(4, 4) to iconSize48dp, 39 Pair(5, 6) to iconSize44dp, 40 ) 41 } 42