mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-04 06:57:56 +00:00
fe8bd257d1
- No more UDP - Lots of random refactoring as well
30 lines
918 B
C#
30 lines
918 B
C#
using Xamarin.Forms;
|
|
namespace qController
|
|
{
|
|
public class QLevelsButton : ShadowButton
|
|
{
|
|
public Button button;
|
|
public QLevelsButton()
|
|
{
|
|
button = new Button
|
|
{
|
|
Text = QIcon.SLIDERS,
|
|
TextColor = Color.Black,
|
|
FontFamily = App.QFont,
|
|
FontSize = App.HeightUnit * 4,
|
|
VerticalOptions = LayoutOptions.FillAndExpand,
|
|
HorizontalOptions = LayoutOptions.FillAndExpand,
|
|
HeightRequest = App.HeightUnit * 8,
|
|
WidthRequest = App.HeightUnit * 8,
|
|
CornerRadius = (int)(App.HeightUnit * 4),
|
|
BackgroundColor = Color.LightBlue
|
|
};
|
|
|
|
HeightRequest = button.Height;
|
|
WidthRequest = button.Width;
|
|
CornerRadius = button.CornerRadius;
|
|
Content = button;
|
|
}
|
|
}
|
|
}
|