Skip to content

Commit

Permalink
Indie Box Store changes
Browse files Browse the repository at this point in the history
Initial commit of Indie Box Store and brandings.
  • Loading branch information
spacefarergames committed Jan 25, 2024
1 parent 45cd30a commit 40ebbfe
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 267 deletions.
2 changes: 1 addition & 1 deletion Gavilya/Components/NavBarComponent.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
Background="Transparent"
BorderThickness="2 0 0 0"
Command="{Binding FavoritesPageCommand}"
Content=""
Cursor="Hand"
FontFamily="..\Fonts\#FluentSystemIcons-Filled"
FontSize="18"
Expand All @@ -94,6 +93,7 @@
Content="{x:Static lang:Resources.Favorites}"
Foreground="{DynamicResource Foreground}" />
</RadioButton.ToolTip>
<Image Height="30" Width="40" Source="/Assets/designnew.png"/>
</RadioButton>
<RadioButton
x:Name="RecentTabBtn"
Expand Down
40 changes: 24 additions & 16 deletions Gavilya/Gavilya.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,26 @@
<UseWPF>true</UseWPF>
<UseWindowsForms>True</UseWindowsForms>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Title>Gavilya</Title>
<Version>4.3.0.2312</Version>
<Authors>Léo Corporation</Authors>
<Description>Gavilya is a simple game launcher for Windows.</Description>
<Copyright>© 2023</Copyright>
<PackageProjectUrl>gavilya.leocorporation.dev</PackageProjectUrl>
<PackageIcon>Gavilya.png</PackageIcon>
<RepositoryUrl>https://github.com/Leo-Corporation/Gavilya</RepositoryUrl>
<ApplicationIcon>Gavilya.ico</ApplicationIcon>
<Title>Indie Box</Title>
<Version>100.0.1</Version>
<Authors>Spacefarer R&amp;D</Authors>
<Description>Indie Box provides quality indie titles for PC owners.</Description>
<Copyright>© 2024 Spacefarer R&amp;D</Copyright>
<PackageProjectUrl>https://www.spacefarergames.com</PackageProjectUrl>
<PackageIcon>designnew.png</PackageIcon>
<RepositoryUrl>https://github.com/spacefarergames</RepositoryUrl>
<ApplicationIcon>designnew.ico</ApplicationIcon>
<Company>Spacefarer R&amp;D</Company>
<Product>Indie Box</Product>
<AssemblyName>IndieBox</AssemblyName>
<AssemblyVersion>100.0.1</AssemblyVersion>
<FileVersion>100.0.1</FileVersion>
</PropertyGroup>

<ItemGroup>
<None Remove="Assets\addGamesWelcome.png" />
<None Remove="Assets\DefaultPP.png" />
<None Remove="Assets\designnew.png" />
<None Remove="Assets\Gavilya.png" />
<None Remove="Assets\recentGames.png" />
<None Remove="Assets\selectGames.png" />
Expand All @@ -34,7 +40,10 @@
</ItemGroup>

<ItemGroup>
<Content Include="Gavilya.ico" />
<Resource Include="Assets\designnew.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Content Include="designnew.ico" />
</ItemGroup>

<ItemGroup>
Expand All @@ -47,10 +56,15 @@
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\..\Downloads\designnew.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\.editorconfig" Link=".editorconfig" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2210.55" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.77" />
<PackageReference Include="MouseKeyHook" Version="5.7.1" />
<PackageReference Include="PeyrSharp.Core" Version="1.10.0.2310" />
Expand Down Expand Up @@ -110,16 +124,10 @@
<EmbeddedResource Update="Properties\Resources.en-US.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.fr-FR.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.zh-CN.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
Expand Down
27 changes: 14 additions & 13 deletions Gavilya/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
xmlns:svm="clr-namespace:Gavilya.ViewModels.Settings"
xmlns:viewmodels="clr-namespace:Gavilya.ViewModels"
xmlns:views="clr-namespace:Gavilya.Views"
Title="{x:Static lang:Resources.MainWindowTitle}"
Width="1185"
Height="700"
MinWidth="840"
MinHeight="450"
Title="Indie Box"
Width="1280"
Height="720"
MinWidth="1280"
MinHeight="720"
MaxWidth="{Binding MaxWidth}"
MaxHeight="{Binding MaxHeight}"
AllowsTransparency="True"
Background="Transparent"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
mc:Ignorable="d">
mc:Ignorable="d" Icon="/Assets/designnew.png">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="55" ResizeBorderThickness="10" />
</WindowChrome.WindowChrome>

<Window.Effect>
<DropShadowEffect
BlurRadius="10"
Opacity="0.4"
BlurRadius="20"
Opacity="0.8"
RenderingBias="Quality"
ShadowDepth="0"
ShadowDepth="5"
Color="Black" />
</Window.Effect>

Expand Down Expand Up @@ -68,11 +68,11 @@
<Image
x:Name="GavilyaLogo"
Grid.Column="1"
Width="26"
Height="26"
Width="32"
Height="32"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Source="Assets/Gavilya.png" Grid.ColumnSpan="3" Margin="18,0,0,0">
Source="/Assets/designnew.png" Grid.ColumnSpan="3" Margin="18,0,0,0">
</Image>

<Button
Expand Down Expand Up @@ -177,6 +177,7 @@
FontFamily="Fonts\#FluentSystemIcons-Regular"
FontSize="12"
Style="{StaticResource TitleBarCloseButtonStyle}" />
<TextBlock Grid.Column="3" HorizontalAlignment="Left" Margin="64,0,0,0" TextWrapping="Wrap" Text="Indie Box" VerticalAlignment="Center" Foreground="White" FontSize="14"/>
</Grid>
</Border>
<Grid x:Name="ContentGrid" Grid.Row="1">
Expand Down Expand Up @@ -221,7 +222,7 @@
<components:NavBarComponent />
</DataTemplate>
</Grid.Resources>
<components:NavBarComponent />
<components:NavBarComponent Loaded="NavBarComponent_Loaded" />
</Grid>
</Grid>
<Popup
Expand Down
5 changes: 5 additions & 0 deletions Gavilya/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ public MainWindow()
{
InitializeComponent();
}

private void NavBarComponent_Loaded(object sender, RoutedEventArgs e)
{

}
}
2 changes: 1 addition & 1 deletion Gavilya/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gavilya/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<value>Please complete the game's information.</value>
</data>
<data name="Favorites" xml:space="preserve">
<value>Favorites</value>
<value>Indie Box Store</value>
</data>
<data name="Edit" xml:space="preserve">
<value>Edit</value>
Expand Down
2 changes: 1 addition & 1 deletion Gavilya/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<value>Please complete the game's information.</value>
</data>
<data name="Favorites" xml:space="preserve">
<value>Favorites</value>
<value>Indie Box Store</value>
</data>
<data name="Edit" xml:space="preserve">
<value>Edit</value>
Expand Down
10 changes: 5 additions & 5 deletions Gavilya/Themes/Dark.xaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="Background" Color="#000014" />
<SolidColorBrush x:Key="Background2" Color="#141428" />
<SolidColorBrush x:Key="Background" Color="#FF0D0014" />
<SolidColorBrush x:Key="Background2" Color="#FF1F1428" />
<SolidColorBrush x:Key="Foreground" Color="White" />
<SolidColorBrush x:Key="Accent" Color="#6600FF" />
<SolidColorBrush x:Key="DarkAccent" Color="#5200CC" />
<SolidColorBrush x:Key="SelectedBackground" Color="#28283C" />
<SolidColorBrush x:Key="Accent" Color="#FF9400FF" />
<SolidColorBrush x:Key="DarkAccent" Color="#FF6400CC" />
<SolidColorBrush x:Key="SelectedBackground" Color="#FF390D3E" />
<SolidColorBrush x:Key="Gray" Color="#C6C6C6" />
<SolidColorBrush x:Key="LightForeground" Color="#64648C" />
<SolidColorBrush x:Key="HoverForeground" Color="White" />
Expand Down
15 changes: 1 addition & 14 deletions Gavilya/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,19 +297,6 @@ private void DeleteGames(object obj)

private async void CheckUpdateOnStart()
{
if (!CurrentSettings.UpdatesAvNotification) return;
System.Windows.Forms.NotifyIcon notifyIcon = new();

if (await Internet.IsAvailableAsync())
{
notifyIcon.Icon = System.Drawing.Icon.ExtractAssociatedIcon(AppDomain.CurrentDomain.BaseDirectory + @"\Gavilya.exe");

if (Update.IsAvailable(await Update.GetLastVersionAsync(Context.LastVersionLink), Context.Version))
{
notifyIcon.Visible = true; // Show
notifyIcon.ShowBalloonTip(5000, Properties.Resources.MainWindowTitle, Properties.Resources.UpdateAvMessageNotify, System.Windows.Forms.ToolTipIcon.Info);
notifyIcon.Visible = false; // Hide
}
}
//Void update
}
}
2 changes: 1 addition & 1 deletion Gavilya/ViewModels/Settings/DataOptionsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void Reset(object? obj)
_profiles.Save();

MessageBox.Show(Properties.Resources.GavilyaNeedsRestartChanges, Properties.Resources.ResetSettings, MessageBoxButton.OK, MessageBoxImage.Information);
Process.Start(Directory.GetCurrentDirectory() + @"\Gavilya.exe");
Process.Start(Directory.GetCurrentDirectory() + @"\IndieBox.exe");
Environment.Exit(0); // Quit
}
}
Expand Down
Loading

0 comments on commit 40ebbfe

Please sign in to comment.