1 /* 2 * Copyright (C) 2023 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 18 package com.android.wallpaper.picker.common.button.ui.viewmodel 19 20 import androidx.annotation.ColorRes 21 import androidx.annotation.DrawableRes 22 import androidx.annotation.StyleRes 23 import com.android.wallpaper.R 24 25 sealed class ButtonStyle( 26 @ColorRes open val textColorRes: Int, 27 @DrawableRes open val backgroundDrawableRes: Int, 28 ) { 29 data object Primary : 30 ButtonStyle( 31 textColorRes = R.color.system_on_primary, 32 backgroundDrawableRes = R.drawable.primary_dialog_button_background, 33 ) 34 data object Secondary : 35 ButtonStyle( 36 textColorRes = R.color.system_on_surface, 37 backgroundDrawableRes = R.drawable.secondary_dialog_button_background, 38 ) 39 } 40