diff --git a/BandagedBD/FormMain.Designer.cs b/BandagedBD/FormMain.Designer.cs index de2167c..e3e7f93 100644 --- a/BandagedBD/FormMain.Designer.cs +++ b/BandagedBD/FormMain.Designer.cs @@ -43,7 +43,8 @@ namespace BandagedBD { // // panelDock // - this.panelDock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.panelDock.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelDock.BackColor = System.Drawing.Color.Transparent; this.panelDock.Location = new System.Drawing.Point(12, 96); @@ -152,8 +153,7 @@ namespace BandagedBD { // // FormMain // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = global::BandagedBD.Properties.Settings.Default.PrimaryBackground; this.ClientSize = new System.Drawing.Size(776, 501); this.Controls.Add(this.linkLabel1); diff --git a/BandagedBD/Panels/InstallConfigPanel.Designer.cs b/BandagedBD/Panels/InstallConfigPanel.Designer.cs index 8e42db4..1416341 100644 --- a/BandagedBD/Panels/InstallConfigPanel.Designer.cs +++ b/BandagedBD/Panels/InstallConfigPanel.Designer.cs @@ -37,6 +37,8 @@ // this.cbShouldRestart.Anchor = System.Windows.Forms.AnchorStyles.None; this.cbShouldRestart.AutoSize = true; + this.cbShouldRestart.BoxBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); + this.cbShouldRestart.BoxForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(130)))), ((int)(((byte)(229))))); this.cbShouldRestart.Checked = true; this.cbShouldRestart.CheckState = System.Windows.Forms.CheckState.Checked; this.cbShouldRestart.Cursor = System.Windows.Forms.Cursors.Hand; diff --git a/BandagedBD/Utilities.cs b/BandagedBD/Utilities.cs index c19bbb5..d7ad22b 100644 --- a/BandagedBD/Utilities.cs +++ b/BandagedBD/Utilities.cs @@ -12,16 +12,21 @@ namespace BandagedBD { public class Utilities { public static readonly Regex _matcher = new Regex(@"[0-9]+\.[0-9]+\.[0-9]+"); - public static string StablePath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Discord"; - public static bool StableExists() => Directory.Exists(StablePath); - public static string CanaryPath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\DiscordCanary"; - public static bool CanaryExists() => Directory.Exists(CanaryPath); - public static string PtbPath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\DiscordPTB"; - public static bool PtbExists() => Directory.Exists(PtbPath); + public static string LADPath(string append) => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\{append}"; + public static string PDPath(string append) => $"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\{Environment.UserName}\\{append}"; - public static string CurrentStablePath = StableExists() ? StablePath : null; - public static string CurrentCanaryPath = CanaryExists() ? CanaryPath : null; - public static string CurrentPtbPath = PtbExists() ? PtbPath : null; + public static string StablePath => LADPath("Discord"); + public static string StablePathPD => PDPath("Discord"); + + public static string CanaryPath => LADPath("DiscordCanary"); + public static string CanaryPathPD => PDPath("DiscordCanary"); + + public static string PtbPath => LADPath("DiscordPTB"); + public static string PtbPathPD => PDPath("DiscordPTB"); + + public static string CurrentStablePath = Directory.Exists(StablePathPD) ? StablePathPD : Directory.Exists(StablePath) ? StablePath : null; + public static string CurrentCanaryPath = Directory.Exists(CanaryPathPD) ? CanaryPathPD : Directory.Exists(CanaryPath) ? CanaryPath : null; + public static string CurrentPtbPath = Directory.Exists(PtbPathPD) ? PtbPathPD : Directory.Exists(PtbPath) ? PtbPath : null; public static void OpenProcess(string url) { Process.Start(url);