Skip to content

Commit 260fc18

Browse files
committed
refactor(ClusterEditWindow): rearrange UI elements for improved layout and accessibility
1 parent b424ce7 commit 260fc18

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/GalaxyEditor/ClusterEditWindow.xaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource TextBoxStyle}" Text="{Binding ClusterId, Mode=TwoWay}" IsEnabled="{Binding IsNew}"/>
6666
<Label Grid.Row="0" Grid.Column="3" Style="{StaticResource LabelStyle}">Name:</Label>
6767
<TextBox Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" Style="{StaticResource TextBoxStyle}" Text="{Binding ClusterName, Mode=TwoWay}"/>
68-
<Label Grid.Row="1" Grid.Column="0" Style="{StaticResource LabelStyle}">System Id:</Label>
69-
<ComboBox Grid.Row="1" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding SystemOptions}" SelectedItem="{Binding SystemId, Mode=TwoWay}" SelectedValuePath="Text" DisplayMemberPath="Text"/>
70-
<Button Grid.Row="1" Grid.Column="2" Content="New System Id" Click="ButtonAddSystem_Click" Style="{StaticResource ButtonStyle}"/>
71-
<Label Grid.Row="1" Grid.Column="3" Style="{StaticResource LabelStyle}">Icon:</Label>
72-
<ComboBox Grid.Row="1" Grid.Column="4" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding IconOptions}" SelectedItem="{Binding IconId, Mode=TwoWay}" SelectedValuePath="Id" DisplayMemberPath="Text"/>
73-
<Button Grid.Row="1" Grid.Column="5" Content="New Icon" Click="ButtonAddIcon_Click" Style="{StaticResource ButtonStyle}"/>
74-
<Label Grid.Row="2" Grid.Column="0" Style="{StaticResource LabelStyle}">Music:</Label>
75-
<ComboBox Grid.Row="2" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding MusicOptions}" SelectedItem="{Binding MusicId, Mode=TwoWay}" SelectedValuePath="Id" DisplayMemberPath="Text"/>
76-
<Button Grid.Row="2" Grid.Column="2" Content="New Music" Click="ButtonAddMusic_Click" Style="{StaticResource ButtonStyle}"/>
68+
<Label Grid.Row="1" Grid.Column="0" Style="{StaticResource LabelStyle}">Icon:</Label>
69+
<ComboBox Grid.Row="1" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding IconOptions}" SelectedItem="{Binding IconId, Mode=TwoWay}" SelectedValuePath="Id" DisplayMemberPath="Text"/>
70+
<Button Grid.Row="1" Grid.Column="2" Content="New Icon" Click="ButtonAddIcon_Click" Style="{StaticResource ButtonStyle}"/>
71+
<Label Grid.Row="1" Grid.Column="3" Style="{StaticResource LabelStyle}">Music:</Label>
72+
<ComboBox Grid.Row="1" Grid.Column="4" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding MusicOptions}" SelectedItem="{Binding MusicId, Mode=TwoWay}" SelectedValuePath="Id" DisplayMemberPath="Text"/>
73+
<Button Grid.Row="1" Grid.Column="5" Content="New Music" Click="ButtonAddMusic_Click" Style="{StaticResource ButtonStyle}"/>
74+
<Label Grid.Row="2" Grid.Column="0" Style="{StaticResource LabelStyle}">System Id:</Label>
75+
<ComboBox Grid.Row="2" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding SystemOptions}" SelectedItem="{Binding SystemId, Mode=TwoWay}" SelectedValuePath="Text" DisplayMemberPath="Text"/>
76+
<Button Grid.Row="2" Grid.Column="2" Content="New System Id" Click="ButtonAddSystem_Click" Style="{StaticResource ButtonStyle}"/>
7777
<Label Grid.Row="3" Grid.Column="0" Style="{StaticResource LabelStyle}">Description:</Label>
7878
<TextBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="6" Style="{StaticResource TextBoxStyle}" Text="{Binding Description, Mode=TwoWay}" Height="80" MaxWidth="800" AcceptsReturn="True" TextWrapping="Wrap"/>
7979
</Grid>

0 commit comments

Comments
 (0)