1 /* 2 * Copyright (C) 2022 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.settingslib.spa.framework.theme 18 19 import androidx.compose.foundation.layout.PaddingValues 20 import androidx.compose.ui.unit.dp 21 22 object SettingsDimension { 23 val itemIconSize = 24.dp 24 val itemIconContainerSize = 72.dp 25 val itemPaddingStart = 24.dp 26 val itemPaddingEnd = 16.dp 27 val itemPaddingVertical = 16.dp 28 val itemPadding = PaddingValues( 29 start = itemPaddingStart, 30 top = itemPaddingVertical, 31 end = itemPaddingEnd, 32 bottom = itemPaddingVertical, 33 ) 34 val itemPaddingAround = 8.dp 35 val itemDividerHeight = 32.dp 36 37 /** The size when app icon is displayed in list. */ 38 val appIconItemSize = 32.dp 39 40 /** The size when app icon is displayed in App info page. */ 41 val appIconInfoSize = 48.dp 42 43 /** The [PaddingValues] for buttons. */ 44 val buttonPadding = PaddingValues(horizontal = itemPaddingEnd, vertical = 12.dp) 45 46 /** The sizes info of illustration widget. */ 47 val illustrationMaxWidth = 412.dp 48 val illustrationMaxHeight = 300.dp 49 val illustrationPadding = 16.dp 50 val illustrationCornerRadius = 28.dp 51 } 52