mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Added taskbar icon and standardized locations of images
This commit is contained in:
parent
3c47375229
commit
e4b0eb5779
@ -30,6 +30,9 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>Resources\Images\Icon.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="MahApps.Metro">
|
<Reference Include="MahApps.Metro">
|
||||||
<HintPath>..\packages\MahApps.Metro.0.9.0.0\lib\net40\MahApps.Metro.dll</HintPath>
|
<HintPath>..\packages\MahApps.Metro.0.9.0.0\lib\net40\MahApps.Metro.dll</HintPath>
|
||||||
@ -132,7 +135,13 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Resources\mblogo.png" />
|
<Resource Include="Resources\Images\mblogoblack.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Images\Icon.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\Images\mblogowhite.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
BIN
MediaBrowser.Common/Resources/Images/Icon.ico
Normal file
BIN
MediaBrowser.Common/Resources/Images/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
BIN
MediaBrowser.Common/Resources/Images/mblogowhite.png
Normal file
BIN
MediaBrowser.Common/Resources/Images/mblogowhite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -68,18 +68,5 @@ namespace MediaBrowser.Common.UI
|
|||||||
|
|
||||||
Kernel.Dispose();
|
Kernel.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public BitmapImage GetLogoImage()
|
|
||||||
{
|
|
||||||
BitmapImage bitmap = new BitmapImage();
|
|
||||||
|
|
||||||
bitmap.CacheOption = BitmapCacheOption.Default;
|
|
||||||
|
|
||||||
bitmap.BeginInit();
|
|
||||||
bitmap.StreamSource = Assembly.GetExecutingAssembly().GetManifestResourceStream("MediaBrowser.Common.Resources.mblogo.png");
|
|
||||||
bitmap.EndInit();
|
|
||||||
|
|
||||||
return bitmap;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,14 @@
|
|||||||
WindowState="Normal"
|
WindowState="Normal"
|
||||||
FontSize="14">
|
FontSize="14">
|
||||||
<Window.Background>
|
<Window.Background>
|
||||||
<RadialGradientBrush>
|
<RadialGradientBrush RadiusX=".75" RadiusY=".75">
|
||||||
<GradientStop Color="#ffffff" Offset="1"/>
|
<GradientStop Color="White" Offset="0.0"/>
|
||||||
<GradientStop Color="#f8f8f8"/>
|
<GradientStop Color="WhiteSmoke" Offset="0.65"/>
|
||||||
|
<GradientStop Color="#cfcfcf" Offset="1.0"/>
|
||||||
</RadialGradientBrush>
|
</RadialGradientBrush>
|
||||||
</Window.Background>
|
</Window.Background>
|
||||||
<Grid Name="splashGrid">
|
<Grid Name="splashGrid">
|
||||||
<Image x:Name="imgLogo" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Uniform" Grid.Row="0" Margin="10 10 10 10"/>
|
<Image x:Name="imgLogo" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Uniform" Grid.Row="0" Margin="10 10 10 10" Source="../Resources/Images/mblogoblack.png"/>
|
||||||
<ProgressBar Name="pbProgress" Minimum="0" Maximum="100" HorizontalAlignment="Left" Height="24" Margin="30,110,30,0" Width="460" Grid.Row="1"/>
|
<ProgressBar Name="pbProgress" Minimum="0" Maximum="100" HorizontalAlignment="Left" Height="24" Margin="30,110,30,0" Width="460" Grid.Row="1"/>
|
||||||
<Label Name="lblProgress" Content="Label" Margin="0,190,10,0" VerticalContentAlignment="Center" HorizontalAlignment="Center" Grid.Row="2"/>
|
<Label Name="lblProgress" Content="Label" Margin="0,190,10,0" VerticalContentAlignment="Center" HorizontalAlignment="Center" Grid.Row="2"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
@ -35,8 +35,6 @@ namespace MediaBrowser.Common.UI
|
|||||||
{
|
{
|
||||||
// Setting this in markup throws an exception at runtime
|
// Setting this in markup throws an exception at runtime
|
||||||
ShowTitleBar = false;
|
ShowTitleBar = false;
|
||||||
|
|
||||||
imgLogo.Source = (Application.Current as BaseApplication).GetLogoImage();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ namespace MediaBrowser.Controller
|
|||||||
user.Id = Guid.NewGuid();
|
user.Id = Guid.NewGuid();
|
||||||
list.Add(user);
|
list.Add(user);
|
||||||
|
|
||||||
user = new User();
|
/*user = new User();
|
||||||
user.Name = "Test User 4";
|
user.Name = "Test User 4";
|
||||||
user.Id = Guid.NewGuid();
|
user.Id = Guid.NewGuid();
|
||||||
list.Add(user);
|
list.Add(user);
|
||||||
@ -262,7 +262,7 @@ namespace MediaBrowser.Controller
|
|||||||
user = new User();
|
user = new User();
|
||||||
user.Name = "Test User 6";
|
user.Name = "Test User 6";
|
||||||
user.Id = Guid.NewGuid();
|
user.Id = Guid.NewGuid();
|
||||||
list.Add(user);
|
list.Add(user);*/
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
@ -4,7 +4,7 @@
|
|||||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||||
Title="MainWindow" Height="350" Width="525" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ShowInTaskbar="False">
|
Title="MainWindow" Height="350" Width="525" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ShowInTaskbar="False">
|
||||||
<Grid>
|
<Grid>
|
||||||
<tb:TaskbarIcon Name="MbTaskbarIcon" IconSource="/Icons/Icon.ico" ToolTipText="MediaBrowser Server">
|
<tb:TaskbarIcon Name="MbTaskbarIcon" IconSource="/Resources/Images/Icon.ico" ToolTipText="MediaBrowser Server">
|
||||||
|
|
||||||
<tb:TaskbarIcon.ContextMenu>
|
<tb:TaskbarIcon.ContextMenu>
|
||||||
<ContextMenu Background="White">
|
<ContextMenu Background="White">
|
||||||
|
@ -36,6 +36,9 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<StartupObject>MediaBrowser.ServerApplication.App</StartupObject>
|
<StartupObject>MediaBrowser.ServerApplication.App</StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>Resources\Images\Icon.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Hardcodet.Wpf.TaskbarNotification">
|
<Reference Include="Hardcodet.Wpf.TaskbarNotification">
|
||||||
<HintPath>..\packages\Hardcodet.Wpf.TaskbarNotification.1.0.4.0\lib\net40\Hardcodet.Wpf.TaskbarNotification.dll</HintPath>
|
<HintPath>..\packages\Hardcodet.Wpf.TaskbarNotification.1.0.4.0\lib\net40\Hardcodet.Wpf.TaskbarNotification.dll</HintPath>
|
||||||
@ -119,7 +122,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Icons\Icon.ico" />
|
<Resource Include="Resources\Images\Icon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
BIN
MediaBrowser.ServerApplication/Resources/Images/Icon.ico
Normal file
BIN
MediaBrowser.ServerApplication/Resources/Images/Icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
x
Reference in New Issue
Block a user