Skip to content

Commit

Permalink
Fix TabControl Memory Leak & Add SVGs
Browse files Browse the repository at this point in the history
Fixed:
- TabControl Memory Leak
-- When created objects such as bitmaps in the function DrawDoubleBuffer would not dispose resources after execution

Added:
- Added SVG Icon Files for Transitioning
  • Loading branch information
DavidCarbon committed May 16, 2024
1 parent 246404a commit f8f3bff
Show file tree
Hide file tree
Showing 18 changed files with 686 additions and 173 deletions.
375 changes: 208 additions & 167 deletions SBRW.Launcher.Core.Theme/Control_TabControl.cs

Large diffs are not rendered by default.

158 changes: 153 additions & 5 deletions SBRW.Launcher.Core.Theme/Conversion_/Embeded_Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,78 @@ namespace SBRW.Launcher.Core.Theme.Conversion_
/// </summary>
public class Embeded_Files
{
/// <summary>
///
/// </summary>
internal const string SBRW_Resources_Root_Path = "SBRW.Launcher.Core.Theme.Resources.";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string BootFlow_GFX_File = $"{SBRW_Resources_Root_Path}BootScreen.BootFlow.gfx";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string Cursor_Ani_File = $"{SBRW_Resources_Root_Path}Cursors.Cursor.ani";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string DejaVuSans_Ttf_File = $"{SBRW_Resources_Root_Path}Fonts.DejaVuSans.ttf";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string BootFlow_GFX_File = "SBRW.Launcher.Core.Theme.Resources.BootScreen.BootFlow.gfx";
internal const string DejaVuSans_Bold_Ttf_File = $"{SBRW_Resources_Root_Path}Fonts.DejaVuSans-Bold.ttf";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string Cursor_Ani_File = "SBRW.Launcher.Core.Theme.Resources.Cursors.Cursor.ani";
internal const string SBRW_Ico_File = $"{SBRW_Resources_Root_Path}Ico.SBRW.ico";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string DejaVuSans_Ttf_File = "SBRW.Launcher.Core.Theme.Resources.Fonts.DejaVuSans.ttf";
internal const string SVG_Check_Engine = $"{SBRW_Resources_Root_Path}SVGs.Icon_Check_Engine.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string DejaVuSans_Bold_Ttf_File = "SBRW.Launcher.Core.Theme.Resources.Fonts.DejaVuSans-Bold.ttf";
internal const string SVG_Cross = $"{SBRW_Resources_Root_Path}SVGs.Icon_Cross.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SBRW_Ico_File = "SBRW.Launcher.Core.Theme.Resources.Ico.SBRW.ico";
internal const string SVG_Discord = $"{SBRW_Resources_Root_Path}SVGs.Icon_Discord.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Facebook = $"{SBRW_Resources_Root_Path}SVGs.Icon_Facebook.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Gear = $"{SBRW_Resources_Root_Path}SVGs.Icon_Gear.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Globe = $"{SBRW_Resources_Root_Path}SVGs.Icon_Globe.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Home = $"{SBRW_Resources_Root_Path}SVGs.Icon_Home.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Plug_Connect = $"{SBRW_Resources_Root_Path}SVGs.Icon_Plug_Disconnected.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Save = $"{SBRW_Resources_Root_Path}SVGs.Icon_Save_Alt.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Shield = $"{SBRW_Resources_Root_Path}SVGs.Icon_Shield.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Twitter = $"{SBRW_Resources_Root_Path}SVGs.Icon_Twitter.svg";
/// <summary>
/// At Compilee Time Constant Static String File
/// </summary>
internal const string SVG_Inputs = $"{SBRW_Resources_Root_Path}SVGs.Input_Global.svg";
/// <summary>
/// BootFlow GFX File
/// </summary>
Expand Down Expand Up @@ -67,5 +119,101 @@ public static byte[] SBRW_Ico_Bytes()
{
return Extract_Resource.AsByte(SBRW_Ico_File);
}
/// <summary>
/// Check Engine SVG File
/// </summary>
/// <returns>Embeded Resource Check Engine SVG File in Bytes</returns>
public static byte[] SVG_Check_Engine_Bytes()
{
return Extract_Resource.AsByte(SVG_Check_Engine);
}
/// <summary>
/// Cross SVG File
/// </summary>
/// <returns>Embeded Resource Cross SVG File in Bytes</returns>
public static byte[] SVG_Cross_Bytes()
{
return Extract_Resource.AsByte(SVG_Cross);
}
/// <summary>
/// Discord SVG File
/// </summary>
/// <returns>Embeded Resource Discord SVG File in Bytes</returns>
public static byte[] SVG_Discord_Bytes()
{
return Extract_Resource.AsByte(SVG_Discord);
}
/// <summary>
/// Facebook SVG File
/// </summary>
/// <returns>Embeded Resource Facebook SVG File in Bytes</returns>
public static byte[] SVG_Facebook_Bytes()
{
return Extract_Resource.AsByte(SVG_Facebook);
}
/// <summary>
/// Gear SVG File
/// </summary>
/// <returns>Embeded Resource Gear SVG File in Bytes</returns>
public static byte[] SVG_Gear_Bytes()
{
return Extract_Resource.AsByte(SVG_Gear);
}
/// <summary>
/// Globe SVG File
/// </summary>
/// <returns>Embeded Resource Globe SVG File in Bytes</returns>
public static byte[] SVG_Globe_Bytes()
{
return Extract_Resource.AsByte(SVG_Globe);
}
/// <summary>
/// Home SVG File
/// </summary>
/// <returns>Embeded Resource Home SVG File in Bytes</returns>
public static byte[] SVG_Home_Bytes()
{
return Extract_Resource.AsByte(SVG_Home);
}
/// <summary>
/// Plug Connect SVG File
/// </summary>
/// <returns>Embeded Resource Plug Connect SVG File in Bytes</returns>
public static byte[] SVG_Plug_Connect_Bytes()
{
return Extract_Resource.AsByte(SVG_Plug_Connect);
}
/// <summary>
/// Save SVG File
/// </summary>
/// <returns>Embeded Resource Save SVG File in Bytes</returns>
public static byte[] SVG_Save_Bytes()
{
return Extract_Resource.AsByte(SVG_Save);
}
/// <summary>
/// Shield SVG File
/// </summary>
/// <returns>Embeded Resource Shield SVG File in Bytes</returns>
public static byte[] SVG_Shield_Bytes()
{
return Extract_Resource.AsByte(SVG_Shield);
}
/// <summary>
/// Twitter SVG File
/// </summary>
/// <returns>Embeded Resource Twitter SVG File in Bytes</returns>
public static byte[] SVG_Twitter_Bytes()
{
return Extract_Resource.AsByte(SVG_Twitter);
}
/// <summary>
/// Inputs Box SVG File
/// </summary>
/// <returns>Embeded Resource Inputs Box SVG File in Bytes</returns>
public static byte[] SVG_Inputs_Box_Bytes()
{
return Extract_Resource.AsByte(SVG_Inputs);
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions SBRW.Launcher.Core.Theme/Resources/SVGs/Icon_Cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions SBRW.Launcher.Core.Theme/Resources/SVGs/Icon_Discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f8f3bff

Please sign in to comment.