Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Jan 1, 2025
1 parent 48a5837 commit 5534075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions HandheldCompanion/Managers/ControllerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ public static void Stop()

private static void OnColorValuesChanged(UISettings sender, object args)
{
var _systemBackground = MainWindow.uiSettings.GetColorValue(UIColorType.Background);
var _systemAccent = MainWindow.uiSettings.GetColorValue(UIColorType.Accent);

Color _systemAccent = MainWindow.uiSettings.GetColorValue(UIColorType.AccentDark1);
targetController?.SetLightColor(_systemAccent.R, _systemAccent.G, _systemAccent.B);
}

Expand Down Expand Up @@ -1047,8 +1045,7 @@ public static void SetTargetController(string baseContainerDeviceInstanceId, boo
targetController.InputsUpdated += UpdateInputs;
targetController.Plug();

Color _systemBackground = MainWindow.uiSettings.GetColorValue(UIColorType.Background);
Color _systemAccent = MainWindow.uiSettings.GetColorValue(UIColorType.Accent);
Color _systemAccent = MainWindow.uiSettings.GetColorValue(UIColorType.AccentDark1);
targetController.SetLightColor(_systemAccent.R, _systemAccent.G, _systemAccent.B);

// update HIDInstancePath
Expand Down
1 change: 1 addition & 0 deletions HandheldCompanion/Managers/VirtualManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ private static void QuerySettings()

// apply settings
SettingsManager_SettingValueChanged("HIDmode", selectedHIDMode, false);
SettingsManager_SettingValueChanged("HIDstatus", HIDstatus, false);
SettingsManager_SettingValueChanged("DSUEnabled", ManagerFactory.settingsManager.GetString("DSUEnabled"), false);
}

Expand Down

0 comments on commit 5534075

Please sign in to comment.