mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-15 12:23:59 +00:00
Adjust UI
This commit is contained in:
@@ -18,12 +18,13 @@ namespace qController
|
||||
Grid mainG = new Grid
|
||||
{
|
||||
Padding = new Thickness(0),
|
||||
RowDefinitions = {
|
||||
new RowDefinition{Height = GridLength.Auto},
|
||||
RowDefinitions =
|
||||
{
|
||||
new RowDefinition{Height = GridLength.Auto},
|
||||
new RowDefinition{Height = GridLength.Auto}
|
||||
},
|
||||
ColumnDefinitions = {
|
||||
ColumnDefinitions =
|
||||
{
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
@@ -31,6 +32,40 @@ namespace qController
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)}
|
||||
}
|
||||
};
|
||||
Grid topGrid = new Grid
|
||||
{
|
||||
Padding = new Thickness(0),
|
||||
RowDefinitions =
|
||||
{
|
||||
new RowDefinition{Height = GridLength.Auto}
|
||||
},
|
||||
ColumnDefinitions =
|
||||
{
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)}
|
||||
}
|
||||
};
|
||||
Grid bottomGrid = new Grid
|
||||
{
|
||||
Padding = new Thickness(0),
|
||||
RowDefinitions =
|
||||
{
|
||||
new RowDefinition{Height = GridLength.Auto},
|
||||
new RowDefinition{Height = GridLength.Auto}
|
||||
},
|
||||
ColumnDefinitions =
|
||||
{
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)},
|
||||
new ColumnDefinition{Width = new GridLength(1,GridUnitType.Star)}
|
||||
}
|
||||
};
|
||||
|
||||
number = new Label { Text = "N/A"};
|
||||
number.FontAttributes = FontAttributes.Bold;
|
||||
number.FontSize = 30;
|
||||
@@ -46,20 +81,28 @@ namespace qController
|
||||
type = new Label { Text = "N/A" };
|
||||
type.FontAttributes = FontAttributes.Bold;
|
||||
type.VerticalTextAlignment = TextAlignment.Center;
|
||||
type.HorizontalTextAlignment = TextAlignment.Center;
|
||||
type.HorizontalTextAlignment = TextAlignment.End;
|
||||
type.Margin = new Thickness(5);
|
||||
|
||||
notes = new Label { Text = "Viewing Notes Currently Unavailable" };
|
||||
notes.HorizontalTextAlignment = TextAlignment.Center;
|
||||
notes.Margin = new Thickness(0, 0, 0, 10);
|
||||
|
||||
mainG.Children.Add(number, 0, 0);
|
||||
mainG.Children.Add(type, 4, 0);
|
||||
mainG.Children.Add(name, 0, 1);
|
||||
mainG.Children.Add(notes, 0, 2);
|
||||
topGrid.Children.Add(number, 0, 0);
|
||||
topGrid.Children.Add(type, 4, 0);
|
||||
Grid.SetColumnSpan(number, 2);
|
||||
Grid.SetColumnSpan(type, 3);
|
||||
|
||||
bottomGrid.Children.Add(name, 0, 0);
|
||||
bottomGrid.Children.Add(notes, 0, 1);
|
||||
Grid.SetColumnSpan(name, 5);
|
||||
Grid.SetColumnSpan(notes,5);
|
||||
|
||||
mainG.Children.Add(topGrid, 0, 0);
|
||||
Grid.SetColumnSpan(topGrid, 5);
|
||||
|
||||
mainG.Children.Add(bottomGrid, 0, 1);
|
||||
Grid.SetColumnSpan(bottomGrid, 5);
|
||||
|
||||
Margin = new Thickness(10);
|
||||
Content = mainG;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace qController
|
||||
Slider rightSlider;
|
||||
public QSelectedCueOptionsCell(QController qController)
|
||||
{
|
||||
qController.qParser.AudioLevelsUpdated += AudioLevelsUpdated;
|
||||
qController.qClient.qParser.AudioLevelsUpdated += AudioLevelsUpdated;
|
||||
Padding = new Thickness(5);
|
||||
CornerRadius = 20;
|
||||
BackgroundColor = Color.FromHex("D8D8D8");
|
||||
|
||||
Reference in New Issue
Block a user