mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-07 08:23:49 +00:00
Move Colors to App resources
This commit is contained in:
@@ -63,9 +63,9 @@ namespace qController.Cell
|
||||
HorizontalOptions = LayoutOptions.FillAndExpand,
|
||||
Padding = 0,
|
||||
Margin = new Thickness(10,10,10,10),
|
||||
CornerRadius=20,
|
||||
BackgroundColor = Color.FromHex("D8D8D8")
|
||||
CornerRadius=20
|
||||
};
|
||||
f.SetDynamicResource(Frame.BackgroundColorProperty, "WorkspaceCellBackgroundColor");
|
||||
View = f;
|
||||
|
||||
|
||||
@@ -77,11 +77,13 @@ namespace qController.Cell
|
||||
nameLabel.FontAttributes = FontAttributes.Bold;
|
||||
nameLabel.FontSize = App.HeightUnit * 3;
|
||||
nameLabel.Margin = new Thickness(0, 20, 0, 0);
|
||||
nameLabel.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
|
||||
addressLabel.HorizontalTextAlignment = TextAlignment.Center;
|
||||
addressLabel.VerticalTextAlignment = TextAlignment.Start;
|
||||
addressLabel.FontSize = App.HeightUnit * 2.5;
|
||||
addressLabel.Margin = new Thickness(0, 0, 0, 20);
|
||||
addressLabel.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
|
||||
connectLabel.HorizontalOptions = LayoutOptions.StartAndExpand;
|
||||
connectLabel.VerticalOptions = LayoutOptions.CenterAndExpand;
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace qController.UI
|
||||
Padding = new Thickness(10,0,0,0)
|
||||
};
|
||||
cueLabel.SetBinding(Label.TextProperty, "name", BindingMode.OneWay);
|
||||
cueLabel.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
|
||||
//Section for selecting a cue by tapping the name Label
|
||||
var selectCueGesture = new TapGestureRecognizer();
|
||||
|
||||
@@ -10,17 +10,18 @@ namespace qController.UI
|
||||
{
|
||||
//Colored border size
|
||||
Padding = 8;
|
||||
|
||||
HeightRequest = 175;
|
||||
CornerRadius = 0;
|
||||
this.SetBinding(Frame.BackgroundColorProperty, "color", BindingMode.OneWay);
|
||||
this.SetBinding(Frame.BorderColorProperty, "color", BindingMode.OneWay);
|
||||
|
||||
Frame frameInt = new Frame
|
||||
{
|
||||
Padding = 0,
|
||||
BackgroundColor = Color.FromHex("#D8D8D8")
|
||||
Padding = 0
|
||||
};
|
||||
|
||||
frameInt.SetDynamicResource(Frame.BackgroundColorProperty, "SelectedCueCellBackgroundColor");
|
||||
|
||||
|
||||
Grid selectedCueGrid = new Grid
|
||||
{
|
||||
@@ -54,6 +55,7 @@ namespace qController.UI
|
||||
Padding = new Thickness(15,5,0,0),
|
||||
FontSize = App.HeightUnit * 3
|
||||
};
|
||||
number.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
number.SetBinding(Label.TextProperty, "number", BindingMode.OneWay);
|
||||
selectedCueGrid.Children.Add(number,0,0);
|
||||
Grid.SetColumnSpan(number, 2);
|
||||
@@ -69,6 +71,7 @@ namespace qController.UI
|
||||
FontSize = App.HeightUnit * 4,
|
||||
FontFamily = App.QFont
|
||||
};
|
||||
type.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
type.SetBinding(Label.TextProperty, "type", BindingMode.OneWay);
|
||||
selectedCueGrid.Children.Add(type, 4, 0);
|
||||
|
||||
@@ -82,6 +85,7 @@ namespace qController.UI
|
||||
BackgroundColor = Color.Transparent,
|
||||
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label))
|
||||
};
|
||||
name.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
name.SetBinding(Label.TextProperty, "name", BindingMode.TwoWay);
|
||||
selectedCueGrid.Children.Add(name, 0, 1);
|
||||
Grid.SetColumnSpan(name, 5);
|
||||
@@ -94,6 +98,7 @@ namespace qController.UI
|
||||
BackgroundColor = Color.Transparent,
|
||||
FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Editor))
|
||||
};
|
||||
notes.SetDynamicResource(Label.TextColorProperty, "PrimaryTextColor");
|
||||
notes.SetBinding(Editor.TextProperty, "notes", BindingMode.TwoWay);
|
||||
|
||||
selectedCueGrid.Children.Add(notes, 0, 2);
|
||||
|
||||
@@ -57,9 +57,9 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Acr.UserDialogs" Version="7.1.0.452" />
|
||||
<PackageReference Include="Acr.UserDialogs" Version="7.1.0.462" />
|
||||
<PackageReference Include="Zeroconf" Version="3.4.2" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1560" />
|
||||
<PackageReference Include="Acr.Settings" Version="9.0.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
|
||||
|
||||
Reference in New Issue
Block a user