mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-04-29 01:53:35 +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;
|
||||
}
|
||||
|
||||
private async Task ShowModsPage()
|
||||
public async Task ShowModsPage()
|
||||
{
|
||||
void OpenModsPage()
|
||||
{
|
||||
|
|
|
@ -37,10 +37,11 @@ namespace VRCMelonAssistant.Pages
|
|||
MainWindow.Instance.ModsButton.IsEnabled = true;
|
||||
|
||||
string text = (string) FindResource("Intro:ModsTabEnabled");
|
||||
Utils.SendNotify(text);
|
||||
MainWindow.Instance.MainText = text;
|
||||
Properties.Settings.Default.Agreed = true;
|
||||
Properties.Settings.Default.Save();
|
||||
|
||||
MainWindow.Instance.ShowModsPage().NoAwait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<TextBlock
|
||||
Name="SearchText"
|
||||
Grid.Row="0"
|
||||
Height="0"
|
||||
Height="20"
|
||||
Padding="5,0,0,0"
|
||||
Panel.ZIndex="1"
|
||||
Background="{DynamicResource BottomStatusBarBackground}"
|
||||
|
@ -37,7 +37,7 @@
|
|||
<TextBox
|
||||
Name="SearchBar"
|
||||
Grid.Row="0"
|
||||
Height="0"
|
||||
Height="20"
|
||||
Margin="0,-1,0,0"
|
||||
Padding="3,1,0,0"
|
||||
Panel.ZIndex="2"
|
||||
|
|
|
@ -509,14 +509,14 @@ namespace VRCMelonAssistant.Pages
|
|||
if (SearchBar.Height == 0)
|
||||
{
|
||||
SearchBar.Focus();
|
||||
Animate(SearchBar, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
|
||||
Animate(SearchText, 0, 16, new TimeSpan(0, 0, 0, 0, 300));
|
||||
Animate(SearchBar, 0, 20, 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);
|
||||
}
|
||||
else
|
||||
{
|
||||
Animate(SearchBar, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||
Animate(SearchText, 16, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||
Animate(SearchBar, 20, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||
Animate(SearchText, 20, 0, new TimeSpan(0, 0, 0, 0, 300));
|
||||
ModsListView.Items.Filter = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue