mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-14 09:22:21 +12:00
On Agree Removed Windows Notif + Move To Mods. Search bar enabled by default + made bigger
This commit is contained in:
parent
59cd085130
commit
2adb976b21
|
@ -103,7 +103,7 @@ namespace VRCMelonAssistant
|
||||||
InstallButton.IsEnabled = false;
|
InstallButton.IsEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ShowModsPage()
|
public async Task ShowModsPage()
|
||||||
{
|
{
|
||||||
void OpenModsPage()
|
void OpenModsPage()
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,10 +37,11 @@ namespace VRCMelonAssistant.Pages
|
||||||
MainWindow.Instance.ModsButton.IsEnabled = true;
|
MainWindow.Instance.ModsButton.IsEnabled = true;
|
||||||
|
|
||||||
string text = (string) FindResource("Intro:ModsTabEnabled");
|
string text = (string) FindResource("Intro:ModsTabEnabled");
|
||||||
Utils.SendNotify(text);
|
|
||||||
MainWindow.Instance.MainText = text;
|
MainWindow.Instance.MainText = text;
|
||||||
Properties.Settings.Default.Agreed = true;
|
Properties.Settings.Default.Agreed = true;
|
||||||
Properties.Settings.Default.Save();
|
Properties.Settings.Default.Save();
|
||||||
|
|
||||||
|
MainWindow.Instance.ShowModsPage().NoAwait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Name="SearchText"
|
Name="SearchText"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Height="0"
|
Height="20"
|
||||||
Padding="5,0,0,0"
|
Padding="5,0,0,0"
|
||||||
Panel.ZIndex="1"
|
Panel.ZIndex="1"
|
||||||
Background="{DynamicResource BottomStatusBarBackground}"
|
Background="{DynamicResource BottomStatusBarBackground}"
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<TextBox
|
<TextBox
|
||||||
Name="SearchBar"
|
Name="SearchBar"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Height="0"
|
Height="20"
|
||||||
Margin="0,-1,0,0"
|
Margin="0,-1,0,0"
|
||||||
Padding="3,1,0,0"
|
Padding="3,1,0,0"
|
||||||
Panel.ZIndex="2"
|
Panel.ZIndex="2"
|
||||||
|
|
|
@ -509,14 +509,14 @@ namespace VRCMelonAssistant.Pages
|
||||||
if (SearchBar.Height == 0)
|
if (SearchBar.Height == 0)
|
||||||
{
|
{
|
||||||
SearchBar.Focus();
|
SearchBar.Focus();
|
||||||
Animate(SearchBar, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
|
Animate(SearchBar, 0, 20, new TimeSpan(0, 0, 0, 0, 300));
|
||||||
Animate(SearchText, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
|
Animate(SearchText, 0, 20, new TimeSpan(0, 0, 0, 0, 300));
|
||||||
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
|
ModsListView.Items.Filter = new Predicate<object>(SearchFilter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Animate(SearchBar, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
|
Animate(SearchBar, 20, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||||
Animate(SearchText, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
|
Animate(SearchText, 20, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||||
ModsListView.Items.Filter = null;
|
ModsListView.Items.Filter = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue