/* * Copyright(c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System.ComponentModel; using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Components { /// /// The default Button style /// [EditorBrowsable(EditorBrowsableState.Never)] public class DefaultButtonStyle : StyleBase { /// /// Return default Button style /// internal protected override ViewStyle GetViewStyle() { ButtonStyle style = new ButtonStyle { Size = new Size(100, 45), BackgroundColor = new Selector { Normal = new Color(0.88f, 0.88f, 0.88f, 1), Pressed = new Color(0.77f, 0.77f, 0.77f, 1), Disabled = new Color(0.88f, 0.88f, 0.88f, 1) }, Text = new TextLabelStyle { PointSize = new Selector { All = DefaultStyle.PointSizeNormal }, WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, TextColor = new Selector { Normal = new Color(0.22f, 0.22f, 0.22f, 1), Pressed = new Color(0.11f, 0.11f, 0.11f, 1), Disabled = new Color(0.66f, 0.66f, 0.66f, 1) }, Text = "Button", } }; return style; } } }