mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 10:35:33 +00:00
Added high-res icons to Example Browser
The Example Browser should now look better on high resolution screens.
This commit is contained in:
parent
cfdb5bc95a
commit
fcc9049d18
|
@ -608,6 +608,9 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Resources\v3x.png" />
|
<None Include="Resources\v3x.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Resources\Game.ico" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
|
|
42
Source/Examples/Properties/Resources.Designer.cs
generated
42
Source/Examples/Properties/Resources.Designer.cs
generated
|
@ -1,7 +1,7 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.1
|
// Runtime Version:4.0.30319.18051
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
@ -60,6 +60,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Icon App {
|
internal static System.Drawing.Icon App {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("App", resourceCulture);
|
object obj = ResourceManager.GetObject("App", resourceCulture);
|
||||||
|
@ -67,6 +70,19 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Icon Game {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Game", resourceCulture);
|
||||||
|
return ((System.Drawing.Icon)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap OpenAL {
|
internal static System.Drawing.Bitmap OpenAL {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("OpenAL", resourceCulture);
|
object obj = ResourceManager.GetObject("OpenAL", resourceCulture);
|
||||||
|
@ -74,6 +90,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap OpenCL {
|
internal static System.Drawing.Bitmap OpenCL {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("OpenCL", resourceCulture);
|
object obj = ResourceManager.GetObject("OpenCL", resourceCulture);
|
||||||
|
@ -81,6 +100,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap OpenGL {
|
internal static System.Drawing.Bitmap OpenGL {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("OpenGL", resourceCulture);
|
object obj = ResourceManager.GetObject("OpenGL", resourceCulture);
|
||||||
|
@ -88,6 +110,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap OpenGLES {
|
internal static System.Drawing.Bitmap OpenGLES {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("OpenGLES", resourceCulture);
|
object obj = ResourceManager.GetObject("OpenGLES", resourceCulture);
|
||||||
|
@ -95,6 +120,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap OpenTK {
|
internal static System.Drawing.Bitmap OpenTK {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("OpenTK", resourceCulture);
|
object obj = ResourceManager.GetObject("OpenTK", resourceCulture);
|
||||||
|
@ -102,6 +130,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap v1x {
|
internal static System.Drawing.Bitmap v1x {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("v1x", resourceCulture);
|
object obj = ResourceManager.GetObject("v1x", resourceCulture);
|
||||||
|
@ -109,6 +140,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap v2x {
|
internal static System.Drawing.Bitmap v2x {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("v2x", resourceCulture);
|
object obj = ResourceManager.GetObject("v2x", resourceCulture);
|
||||||
|
@ -116,6 +150,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap v3x {
|
internal static System.Drawing.Bitmap v3x {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("v3x", resourceCulture);
|
object obj = ResourceManager.GetObject("v3x", resourceCulture);
|
||||||
|
@ -123,6 +160,9 @@ namespace OpenTK.Examples.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap v4x {
|
internal static System.Drawing.Bitmap v4x {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("v4x", resourceCulture);
|
object obj = ResourceManager.GetObject("v4x", resourceCulture);
|
||||||
|
|
|
@ -117,11 +117,13 @@
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="App" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="App" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>../Resources/App.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>../Resources/App.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<data name="Game" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Game.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="OpenAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="OpenAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\OpenAL.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\OpenAL.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 74 KiB |
BIN
Source/Examples/Resources/Game.ico
Normal file
BIN
Source/Examples/Resources/Game.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -37,7 +37,7 @@ namespace Examples
|
||||||
{
|
{
|
||||||
ExampleAttribute info = GetExampleAttribute(window.GetType());
|
ExampleAttribute info = GetExampleAttribute(window.GetType());
|
||||||
window.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
window.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
||||||
window.Icon = OpenTK.Examples.Properties.Resources.App;
|
window.Icon = OpenTK.Examples.Properties.Resources.Game;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -48,7 +48,7 @@ namespace Examples
|
||||||
{
|
{
|
||||||
ExampleAttribute info = GetExampleAttribute(window.GetType());
|
ExampleAttribute info = GetExampleAttribute(window.GetType());
|
||||||
window.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
window.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
||||||
window.Icon = OpenTK.Examples.Properties.Resources.App;
|
window.Icon = OpenTK.Examples.Properties.Resources.Game;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ExampleAttribute GetExampleAttribute(Type type)
|
static ExampleAttribute GetExampleAttribute(Type type)
|
||||||
|
|
Loading…
Reference in a new issue