Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Icons & Bugfix for LivePreview
Browse files Browse the repository at this point in the history
  • Loading branch information
CShark committed Oct 2, 2021
1 parent 50d8cab commit 5f3196c
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 2 deletions.
3 changes: 1 addition & 2 deletions BetterMultiview/ObsMultiview/Controls/LivePreview.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public partial class LivePreview : UserControl {
}


var currentAssembly = Assembly.GetEntryAssembly();
var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;
var currentDirectory = Directory.GetCurrentDirectory();
// Default installation path of VideoLAN.LibVLC.Windows
var libDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc",
IntPtr.Size == 4 ? "win-x86" : "win-x64"));
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/Dialogs/PluginConfig.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
mc:Ignorable="d"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
SizeToContent="WidthAndHeight"
lex:LocalizeDictionary.DesignCulture="en"
lex:ResxLocalizationProvider.DefaultAssembly="ObsMultiview"
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/Dialogs/ProfileConfig.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
mc:Ignorable="d"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
lex:LocalizeDictionary.DesignCulture="en"
lex:ResxLocalizationProvider.DefaultAssembly="ObsMultiview"
lex:ResxLocalizationProvider.DefaultDictionary="Dialogs"
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/Dialogs/SlotConfig.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:local="clr-namespace:ObsMultiview"
xmlns:lex="http://wpflocalizeextension.codeplex.com"
mc:Ignorable="d"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
Closing="SlotConfig_OnClosing"
MinWidth="345"
WindowStartupLocation="CenterOwner"
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/Dialogs/TextInput.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:lex="http://wpflocalizeextension.codeplex.com"
mc:Ignorable="d"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
lex:LocalizeDictionary.DesignCulture="en"
Expand Down
Binary file added BetterMultiview/ObsMultiview/Icon.ico
Binary file not shown.
Binary file added BetterMultiview/ObsMultiview/Images/Icon.ico
Binary file not shown.
Binary file added BetterMultiview/ObsMultiview/Images/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
xmlns:converters="clr-namespace:ObsMultiview.Converters"
xmlns:services="clr-namespace:ObsMultiview.Services"
mc:Ignorable="d"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
loc:LocalizeDictionary.DesignCulture="en"
loc:ResxLocalizationProvider.DefaultAssembly="ObsMultiview"
loc:ResxLocalizationProvider.DefaultDictionary="MainWindow"
Expand Down
11 changes: 11 additions & 0 deletions BetterMultiview/ObsMultiview/ObsMultiview.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<ApplicationIcon>Icon.ico</ApplicationIcon>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand All @@ -14,6 +15,11 @@
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup>

<ItemGroup>
<None Remove="Images\Icon.ico" />
<None Remove="Images\Icon.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Autofac" Version="6.2.0" />
<PackageReference Include="JetBrains.Annotations" Version="2021.2.0" />
Expand All @@ -31,6 +37,11 @@
<ProjectReference Include="..\Plugins\ObsMultiview.Plugins.csproj" />
</ItemGroup>

<ItemGroup>
<Resource Include="Images\Icon.ico" />
<Resource Include="Images\Icon.png" />
</ItemGroup>

<ItemGroup>
<Compile Update="Strings\Dialogs.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/ObsMultiview/StreamView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
lex:ResxLocalizationProvider.DefaultDictionary="MainWindow"
ResizeMode="NoResize"
AllowsTransparency="True"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
Background="#01FFFFFF"
Title="Stream View" Height="1080" Width="1920 ">
<Window.Resources>
Expand Down
1 change: 1 addition & 0 deletions BetterMultiview/Plugins/KNX/EditGroups.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
xmlns:converters="clr-namespace:ObsMultiview.Plugins.Converters"
xmlns:knx="clr-namespace:ObsMultiview.Plugins.KNX"
mc:Ignorable="d"
Icon="pack://application:,,,/ObsMultiview;component/Images/Icon.png"
lex:LocalizeDictionary.DesignCulture="en"
lex:ResxLocalizationProvider.DefaultAssembly="ObsMultiview.Plugins"
lex:ResxLocalizationProvider.DefaultDictionary="KNX"
Expand Down

0 comments on commit 5f3196c

Please sign in to comment.