Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Feb 7, 2024
1 parent 3bdcb5a commit e5e0798
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
9 changes: 9 additions & 0 deletions app/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ public partial class SettingsForm : RForm

bool batteryMouseOver = false;
bool batteryFullMouseOver = false;
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}

public SettingsForm()
{
Expand Down
10 changes: 0 additions & 10 deletions app/UI/RButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ namespace GHelper.UI
public class RButton : Button
{

protected override CreateParams CreateParams
{
get
{
var parms = base.CreateParams;
parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN
return parms;
}
}

//Fields
private int borderSize = 5;

Expand Down
10 changes: 0 additions & 10 deletions app/UI/RForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ public class RForm : Form

public bool darkTheme = false;

protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}

public static void InitColors(bool darkTheme)
{
if (darkTheme)
Expand Down

0 comments on commit e5e0798

Please sign in to comment.