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 e5e0798 commit c4e251a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 0 additions & 9 deletions app/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ 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: 9 additions & 1 deletion app/UI/RForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ public class RForm : Form
private static extern int DwmSetWindowAttribute(nint hwnd, int attr, int[] attrValue, int attrSize);

public bool darkTheme = false;

protected override CreateParams CreateParams
{
get
{
var parms = base.CreateParams;
parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN
return parms;
}
}
public static void InitColors(bool darkTheme)
{
if (darkTheme)
Expand Down

0 comments on commit c4e251a

Please sign in to comment.