Skip to content

Commit

Permalink
Merge branch 'seerge:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaYslmn authored Apr 7, 2023
2 parents 3acfe89 + 9d2b8b5 commit b606f23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/CustomControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class RForm : Form
[DllImport("DwmApi")] //System.Runtime.InteropServices
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, int[] attrValue, int attrSize);

public bool darkTheme;
public bool darkTheme = false;

public static void InitColors(bool darkTheme)
{
Expand Down
10 changes: 6 additions & 4 deletions app/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ static void SystemEvents_UserPreferenceChanged(object sender, UserPreferenceChan
{

if (Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastTheme) < 2000) return;
lastTheme = DateTimeOffset.Now.ToUnixTimeMilliseconds();

switch (e.Category)
{
case UserPreferenceCategory.General:
Debug.WriteLine("Theme Changed");
Thread.Sleep(1000);
settingsForm.InitTheme();
bool changed = settingsForm.InitTheme();
if (changed)
{
Debug.WriteLine("Theme Changed");
lastTheme = DateTimeOffset.Now.ToUnixTimeMilliseconds();
}

if (settingsForm.fans is not null && settingsForm.fans.Text != "")
settingsForm.fans.InitTheme();
Expand Down
9 changes: 5 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [G-Helper](https://github.com/seerge/g-helper)
# G-Helper (GHelper)

[![Github all releases](https://img.shields.io/github/downloads/seerge/g-helper/total.svg)](https://GitHub.com/seerge/g-helper/releases/) [![GitHub release](https://img.shields.io/github/release/seerge/g-helper.svg)](https://GitHub.com/seerge/g-helper/releases/) [![GitHub stars](https://img.shields.io/github/stars/seerge/g-helper.svg?style=social&label=Star)](https://GitHub.com/seerge/g-helper/stargazers/)

Expand All @@ -7,17 +7,18 @@

A small utility that allows you to do almost everything you could do with Armoury Crate but without extra bloat and unnecessary services.

### :gift: Main advantages
## :gift: Main advantages

1. Seamless and automatic GPU switching (without asking you to close all apps, etc)
2. All performance modes can be fully customized (with fan curves and PPTs)
3. Very lightweight and consumes almost no resources, doesn't install any services. Just a single exe to run
4. Simple and clean native UI with easy access to all settings
5. Doesn't need administrator privileges to run!

### [:floppy_disk: Download latest release](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
## [:floppy_disk: Download App](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)

If you like this app, please [star :star: it on Github](https://github.com/seerge/g-helper) and spread a word about it!

_If you post about the app - please include a link. Thanks._

![Screenshot 2023-03-30 115149](https://user-images.githubusercontent.com/5920850/228799078-bc93148f-6580-4319-b9e6-fbde4d246cd2.png)
Expand All @@ -40,7 +41,7 @@ _If you post about the app - please include a link. Thanks._
- Auto Screen refresh rate (60hz on battery, 120+ hz when plugged)
- Keyboard backlight can be turned off on battery

To keep auto switching and hotkeys working the app needs to stay in running in the tray. It doesn't consume any resources.
To keep auto switching and hotkeys working the app needs to stay running in the tray. It doesn't consume any resources.

### :rocket: Performance Modes

Expand Down

0 comments on commit b606f23

Please sign in to comment.