diff --git a/Perfect11.sln b/Perfect11.sln new file mode 100644 index 0000000..118d3f1 --- /dev/null +++ b/Perfect11.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36429.23 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11", "Perfect11\Perfect11.csproj", "{B77C3F94-29F7-40D8-BF81-969C1BBAD7A9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B77C3F94-29F7-40D8-BF81-969C1BBAD7A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B77C3F94-29F7-40D8-BF81-969C1BBAD7A9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B77C3F94-29F7-40D8-BF81-969C1BBAD7A9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B77C3F94-29F7-40D8-BF81-969C1BBAD7A9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BC832BCD-754C-419F-9171-9DA44B471A56} + EndGlobalSection +EndGlobal diff --git a/Perfect11/App.config b/Perfect11/App.config new file mode 100644 index 0000000..5ab1a35 --- /dev/null +++ b/Perfect11/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Perfect11/Form1.Designer.cs b/Perfect11/Form1.Designer.cs new file mode 100644 index 0000000..3675774 --- /dev/null +++ b/Perfect11/Form1.Designer.cs @@ -0,0 +1,173 @@ +namespace Perfect11 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.theme = new ReaLTaiizor.Forms.FormTheme(); + this.pages = new ReaLTaiizor.Controls.PoisonTabControl(); + this.welcomePage = new ReaLTaiizor.Controls.PoisonTabPage(); + this.poisonLabel2 = new ReaLTaiizor.Controls.PoisonLabel(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.poisonLabel1 = new ReaLTaiizor.Controls.PoisonLabel(); + this.controlBoxEdit1 = new ReaLTaiizor.Controls.ControlBoxEdit(); + this.theme.SuspendLayout(); + this.pages.SuspendLayout(); + this.welcomePage.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // theme + // + this.theme.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50))))); + this.theme.Controls.Add(this.controlBoxEdit1); + this.theme.Controls.Add(this.pages); + this.theme.Dock = System.Windows.Forms.DockStyle.Fill; + this.theme.Font = new System.Drawing.Font("Segoe UI", 8F); + this.theme.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(142)))), ((int)(((byte)(142))))); + this.theme.Location = new System.Drawing.Point(0, 0); + this.theme.Name = "theme"; + this.theme.Padding = new System.Windows.Forms.Padding(3, 28, 3, 28); + this.theme.Sizable = true; + this.theme.Size = new System.Drawing.Size(1329, 788); + this.theme.SmartBounds = true; + this.theme.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.theme.TabIndex = 0; + this.theme.Text = "Perfect11"; + // + // pages + // + this.pages.Controls.Add(this.welcomePage); + this.pages.Dock = System.Windows.Forms.DockStyle.Fill; + this.pages.Location = new System.Drawing.Point(3, 28); + this.pages.Name = "pages"; + this.pages.SelectedIndex = 0; + this.pages.Size = new System.Drawing.Size(1323, 732); + this.pages.TabIndex = 1; + this.pages.UseSelectable = true; + // + // welcomePage + // + this.welcomePage.BackgroundImage = global::Perfect11.Properties.Resources.win11wallpaperdark; + this.welcomePage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.welcomePage.Controls.Add(this.poisonLabel2); + this.welcomePage.Controls.Add(this.pictureBox1); + this.welcomePage.Controls.Add(this.poisonLabel1); + this.welcomePage.HorizontalScrollbarBarColor = true; + this.welcomePage.HorizontalScrollbarHighlightOnWheel = false; + this.welcomePage.HorizontalScrollbarSize = 20; + this.welcomePage.Location = new System.Drawing.Point(4, 38); + this.welcomePage.Name = "welcomePage"; + this.welcomePage.Size = new System.Drawing.Size(1315, 690); + this.welcomePage.TabIndex = 0; + this.welcomePage.Text = "Welcome"; + this.welcomePage.VerticalScrollbarBarColor = true; + this.welcomePage.VerticalScrollbarHighlightOnWheel = false; + this.welcomePage.VerticalScrollbarSize = 22; + // + // poisonLabel2 + // + this.poisonLabel2.AutoSize = true; + this.poisonLabel2.BackColor = System.Drawing.Color.Transparent; + this.poisonLabel2.Location = new System.Drawing.Point(416, 379); + this.poisonLabel2.Name = "poisonLabel2"; + this.poisonLabel2.Size = new System.Drawing.Size(465, 38); + this.poisonLabel2.TabIndex = 3; + this.poisonLabel2.Text = "Perfect11 is a tool made by a guy who loves to optimize Windows.\r\nIt allows to in" + + "stalls apps, remove bloatware, configure services and even more."; + this.poisonLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // pictureBox1 + // + this.pictureBox1.Image = global::Perfect11.Properties.Resources.win11logo; + this.pictureBox1.Location = new System.Drawing.Point(559, 156); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(163, 160); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 1; + this.pictureBox1.TabStop = false; + // + // poisonLabel1 + // + this.poisonLabel1.AutoSize = true; + this.poisonLabel1.BackColor = System.Drawing.Color.Transparent; + this.poisonLabel1.FontSize = ReaLTaiizor.Extension.Poison.PoisonLabelSize.Tall; + this.poisonLabel1.Location = new System.Drawing.Point(374, 336); + this.poisonLabel1.Name = "poisonLabel1"; + this.poisonLabel1.Size = new System.Drawing.Size(533, 25); + this.poisonLabel1.TabIndex = 2; + this.poisonLabel1.Text = "Welcome to Perfect11, the tool that makes Windows 11 almost perfect."; + this.poisonLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // controlBoxEdit1 + // + this.controlBoxEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.controlBoxEdit1.BackColor = System.Drawing.Color.Transparent; + this.controlBoxEdit1.Cursor = System.Windows.Forms.Cursors.Hand; + this.controlBoxEdit1.DefaultLocation = true; + this.controlBoxEdit1.Location = new System.Drawing.Point(1246, 3); + this.controlBoxEdit1.Name = "controlBoxEdit1"; + this.controlBoxEdit1.Size = new System.Drawing.Size(77, 19); + this.controlBoxEdit1.TabIndex = 2; + this.controlBoxEdit1.Text = "controlBoxEdit1"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 21F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50))))); + this.ClientSize = new System.Drawing.Size(1329, 788); + this.Controls.Add(this.theme); + this.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.MinimumSize = new System.Drawing.Size(126, 50); + this.Name = "Form1"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Perfect11"; + this.TransparencyKey = System.Drawing.Color.Fuchsia; + this.Load += new System.EventHandler(this.Form1_Load); + this.theme.ResumeLayout(false); + this.pages.ResumeLayout(false); + this.welcomePage.ResumeLayout(false); + this.welcomePage.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private ReaLTaiizor.Forms.FormTheme theme; + private ReaLTaiizor.Controls.PoisonTabControl pages; + private ReaLTaiizor.Controls.PoisonTabPage welcomePage; + private ReaLTaiizor.Controls.PoisonLabel poisonLabel1; + private System.Windows.Forms.PictureBox pictureBox1; + private ReaLTaiizor.Controls.PoisonLabel poisonLabel2; + private ReaLTaiizor.Controls.ControlBoxEdit controlBoxEdit1; + } +} + diff --git a/Perfect11/Form1.cs b/Perfect11/Form1.cs new file mode 100644 index 0000000..5f7f611 --- /dev/null +++ b/Perfect11/Form1.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ReaLTaiizor.Enum.Poison; + +namespace Perfect11 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + public void DarkMode(bool status) + { + if (status) + { + pages.Theme = ThemeStyle.Dark; + welcomePage.Theme = ThemeStyle.Dark; + } + else + { + pages.Theme = ThemeStyle.Light; + welcomePage.Theme = ThemeStyle.Light; + } + } + + private void Form1_Load(object sender, EventArgs e) + { + DarkMode(true); + } + } +} diff --git a/Perfect11/Form1.resx b/Perfect11/Form1.resx new file mode 100644 index 0000000..b00bc96 --- /dev/null +++ b/Perfect11/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + \ No newline at end of file diff --git a/Perfect11/Perfect11.csproj b/Perfect11/Perfect11.csproj new file mode 100644 index 0000000..45ae410 --- /dev/null +++ b/Perfect11/Perfect11.csproj @@ -0,0 +1,126 @@ + + + + + Debug + AnyCPU + {B77C3F94-29F7-40D8-BF81-969C1BBAD7A9} + WinExe + Perfect11 + Perfect11 + v4.8.1 + 512 + true + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + none + true + bin\Release\ + TRACE + prompt + 4 + false + + + app.manifest + + + + + ..\packages\ReaLTaiizor.3.8.1.3\lib\net481\ReaLTaiizor.dll + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + False + Microsoft .NET Framework 4.8 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/Perfect11/Program.cs b/Perfect11/Program.cs new file mode 100644 index 0000000..42943b1 --- /dev/null +++ b/Perfect11/Program.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Perfect11 +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); +#if !DEBUG + Application.ThreadException += (s, e) => + { + Console.WriteLine($"Errore: {e.Exception.Message}\n{e.Exception.StackTrace}"); // Nasconde la finestra eccezioni + }; +#endif + Application.Run(new Form1()); + } + } +} diff --git a/Perfect11/Properties/AssemblyInfo.cs b/Perfect11/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b65526c --- /dev/null +++ b/Perfect11/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Perfect11")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Perfect11")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b77c3f94-29f7-40d8-bf81-969c1bbad7a9")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Perfect11/Properties/Resources.Designer.cs b/Perfect11/Properties/Resources.Designer.cs new file mode 100644 index 0000000..bf48f5c --- /dev/null +++ b/Perfect11/Properties/Resources.Designer.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Perfect11.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Perfect11.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap win11logo { + get { + object obj = ResourceManager.GetObject("win11logo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap win11wallpaperdark { + get { + object obj = ResourceManager.GetObject("win11wallpaperdark", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap win11wallpaperlight { + get { + object obj = ResourceManager.GetObject("win11wallpaperlight", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Perfect11/Properties/Resources.resx b/Perfect11/Properties/Resources.resx new file mode 100644 index 0000000..35d7756 --- /dev/null +++ b/Perfect11/Properties/Resources.resx @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\Images\win11logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Images\win11wallpaperdark.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Images\win11wallpaperlight.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Perfect11/Properties/Settings.Designer.cs b/Perfect11/Properties/Settings.Designer.cs new file mode 100644 index 0000000..4b7e6d9 --- /dev/null +++ b/Perfect11/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Perfect11.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/Perfect11/Properties/Settings.settings b/Perfect11/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Perfect11/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Perfect11/Resources/Images/win11logo.png b/Perfect11/Resources/Images/win11logo.png new file mode 100644 index 0000000..8594da8 Binary files /dev/null and b/Perfect11/Resources/Images/win11logo.png differ diff --git a/Perfect11/Resources/Images/win11wallpaperdark.jpg b/Perfect11/Resources/Images/win11wallpaperdark.jpg new file mode 100644 index 0000000..e7d139f Binary files /dev/null and b/Perfect11/Resources/Images/win11wallpaperdark.jpg differ diff --git a/Perfect11/Resources/Images/win11wallpaperlight.jpg b/Perfect11/Resources/Images/win11wallpaperlight.jpg new file mode 100644 index 0000000..6569fdd Binary files /dev/null and b/Perfect11/Resources/Images/win11wallpaperlight.jpg differ diff --git a/Perfect11/app.manifest b/Perfect11/app.manifest new file mode 100644 index 0000000..3fab929 --- /dev/null +++ b/Perfect11/app.manifest @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + true + + + + diff --git a/Perfect11/packages.config b/Perfect11/packages.config new file mode 100644 index 0000000..ad0dc73 --- /dev/null +++ b/Perfect11/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file