mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-20 20:32:32 +12:00
move warning to center of mods panel
This commit is contained in:
parent
5a36a2f4db
commit
272251f79b
|
@ -12,34 +12,42 @@
|
|||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<Grid x:Name="NoModsGrid" Visibility="Visible">
|
||||
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="32" FontWeight="SemiBold">
|
||||
<TextBlock Text="{DynamicResource Mods:NoMods}" />.
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
|
||||
<Grid Visibility="Hidden">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Name="SearchText"
|
||||
Padding="5,0,0,0"
|
||||
Height="0"
|
||||
Grid.Row="0"
|
||||
Text="{DynamicResource Mods:SearchLabel}"
|
||||
Height="0"
|
||||
Padding="5,0,0,0"
|
||||
Panel.ZIndex="1"
|
||||
Background="{DynamicResource BottomStatusBarBackground}"
|
||||
Foreground="{DynamicResource TextColor}"
|
||||
Background="{DynamicResource BottomStatusBarBackground}" />
|
||||
Text="{DynamicResource Mods:SearchLabel}" />
|
||||
<TextBox
|
||||
Name="SearchBar"
|
||||
Grid.Row="0"
|
||||
Height="0"
|
||||
Margin="0,-1,0,0"
|
||||
Padding="3,1,0,0"
|
||||
Height="0"
|
||||
Grid.Row="0"
|
||||
Panel.ZIndex="2"
|
||||
Background="#00000000"
|
||||
BorderThickness="0"
|
||||
Foreground="{DynamicResource TextColor}"
|
||||
TextChanged="SearchBar_TextChanged"
|
||||
BorderThickness="0" />
|
||||
TextChanged="SearchBar_TextChanged" />
|
||||
<ListView
|
||||
Name="ModsListView"
|
||||
Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
SelectionChanged="ModsListView_SelectionChanged"
|
||||
SelectionMode="Single">
|
||||
<ListView.View>
|
||||
|
@ -49,11 +57,11 @@
|
|||
<GridViewColumn.Header>
|
||||
<Button
|
||||
Name="SearchButton"
|
||||
Margin="-5"
|
||||
Padding="9,-1,9,0"
|
||||
Background="#00000000"
|
||||
BorderThickness="0"
|
||||
Click="SearchButton_Click"
|
||||
Padding="9,-1,9,0"
|
||||
Margin="-5"
|
||||
Content="🔍"
|
||||
FontSize="11" />
|
||||
</GridViewColumn.Header>
|
||||
|
@ -92,7 +100,7 @@
|
|||
<Run Text="{Binding PromotionText}" />
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ModDescription}" MouseLeftButtonDown="CopyText" />
|
||||
<TextBlock MouseLeftButtonDown="CopyText" Text="{Binding ModDescription}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
|
@ -134,4 +142,5 @@
|
|||
</ListView.GroupStyle>
|
||||
</ListView>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Page>
|
||||
|
|
|
@ -135,10 +135,11 @@ namespace ModAssistant.Pages
|
|||
this.DataContext = this;
|
||||
|
||||
RefreshModsList();
|
||||
ModsListView.Visibility = Visibility.Visible;
|
||||
MainWindow.Instance.MainText = ModList.Count == 0 ? $"{FindResource("Mods:NoMods")}." : $"{FindResource("Mods:FinishedLoadingMods")}.";
|
||||
ModsListView.Visibility = ModList.Count == 0 ? Visibility.Hidden : Visibility.Visible;
|
||||
NoModsGrid.Visibility = ModList.Count == 0 ? Visibility.Visible : Visibility.Hidden;
|
||||
|
||||
MainWindow.Instance.InstallButton.IsEnabled = true;
|
||||
MainWindow.Instance.MainText = $"{FindResource("Mods:FinishedLoadingMods")}.";
|
||||
MainWindow.Instance.InstallButton.IsEnabled = ModList.Count != 0;
|
||||
MainWindow.Instance.GameVersionsBox.IsEnabled = true;
|
||||
}
|
||||
finally
|
||||
|
|
Loading…
Reference in a new issue