Swap icons of PerformanceOverlay and PowerControl

This commit is contained in:
Kamil Trzciński 2022-11-16 22:02:57 +01:00
parent c223a11d57
commit e4914dbffb
15 changed files with 28 additions and 26 deletions

View file

@ -85,7 +85,7 @@ namespace PerformanceOverlay
exitItem.Click += ExitItem_Click;
notifyIcon = new System.Windows.Forms.NotifyIcon(components);
notifyIcon.Icon = Resources.traffic_light_outline;
notifyIcon.Icon = Resources.poll;
notifyIcon.Text = TitleWithVersion;
notifyIcon.Visible = true;
notifyIcon.ContextMenuStrip = contextMenu;
@ -179,12 +179,12 @@ namespace PerformanceOverlay
try
{
notifyIcon.Text = TitleWithVersion + ". RTSS Version: " + OSD.Version;
notifyIcon.Icon = Resources.traffic_light_outline;
notifyIcon.Icon = Resources.poll;
}
catch
{
notifyIcon.Text = TitleWithVersion + ". RTSS Not Available.";
notifyIcon.Icon = Resources.traffic_light_outline_red;
notifyIcon.Icon = Resources.poll_red;
osdReset();
return;
}

View file

@ -7,7 +7,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>Resources\traffic-light-outline.ico</ApplicationIcon>
<ApplicationIcon>Resources\poll.ico</ApplicationIcon>
<UseWPF>True</UseWPF>
</PropertyGroup>
@ -20,7 +20,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="Resources\traffic-light-outline.ico" />
<Content Include="Resources\poll.ico" />
</ItemGroup>
<ItemGroup>

View file

@ -63,9 +63,9 @@ namespace PerformanceOverlay {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon traffic_light_outline {
internal static System.Drawing.Icon poll {
get {
object obj = ResourceManager.GetObject("traffic_light_outline", resourceCulture);
object obj = ResourceManager.GetObject("poll", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
@ -73,9 +73,9 @@ namespace PerformanceOverlay {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon traffic_light_outline_red {
internal static System.Drawing.Icon poll_red {
get {
object obj = ResourceManager.GetObject("traffic_light_outline_red", resourceCulture);
object obj = ResourceManager.GetObject("poll_red", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}

View file

@ -118,10 +118,10 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="traffic_light_outline" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\traffic-light-outline.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="poll" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\poll.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="traffic_light_outline_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\traffic-light-outline-red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="poll_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\poll_red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View file

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

View file

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 B

View file

@ -78,7 +78,7 @@ namespace PowerControl
exitItem.Click += ExitItem_Click;
notifyIcon = new System.Windows.Forms.NotifyIcon(components);
notifyIcon.Icon = Resources.poll;
notifyIcon.Icon = Resources.traffic_light_outline;
notifyIcon.Text = TitleWithVersion;
notifyIcon.Visible = true;
notifyIcon.ContextMenuStrip = contextMenu;
@ -194,12 +194,12 @@ namespace PowerControl
try
{
notifyIcon.Text = TitleWithVersion + ". RTSS Version: " + OSD.Version;
notifyIcon.Icon = Resources.poll;
notifyIcon.Icon = Resources.traffic_light_outline;
}
catch
{
notifyIcon.Text = TitleWithVersion + ". RTSS Not Available.";
notifyIcon.Icon = Resources.poll_red;
notifyIcon.Icon = Resources.traffic_light_outline_red;
}
updateOSD();

View file

@ -8,7 +8,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>True</UseWPF>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>Resources\poll.ico</ApplicationIcon>
<ApplicationIcon>Resources\traffic-light-outline.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
@ -20,7 +20,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="Resources\poll.ico" />
<Content Include="Resources\traffic-light-outline.ico" />
</ItemGroup>
<ItemGroup>

View file

@ -63,9 +63,9 @@ namespace PowerControl {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon poll {
internal static System.Drawing.Icon traffic_light_outline {
get {
object obj = ResourceManager.GetObject("poll", resourceCulture);
object obj = ResourceManager.GetObject("traffic_light_outline", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
@ -73,9 +73,9 @@ namespace PowerControl {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon poll_red {
internal static System.Drawing.Icon traffic_light_outline_red {
get {
object obj = ResourceManager.GetObject("poll_red", resourceCulture);
object obj = ResourceManager.GetObject("traffic_light_outline_red", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}

View file

@ -118,10 +118,10 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="poll" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\poll.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="traffic_light_outline" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\traffic-light-outline.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="poll_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\poll_red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="traffic_light_outline_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\traffic-light-outline-red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View file

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

View file

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View file

@ -8,5 +8,7 @@
- Add battery remaining
- Add FPSWithBattery overlay
- Add FPS Limit using RTSS
- Fix ryzenadj creating console window
- Swap icons of PerformanceOverlay and PowerControl
If you found it useful buy me [Ko-fi](https://ko-fi.com/ayufan).