qdesk 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,9 +49,9 @@ function buildGammaRamp(redScale, greenScale, blueScale) {
49
49
  function buildColorEffectMatrix(mode) {
50
50
  // MAGCOLOREFFECT is a 5x5 float matrix.
51
51
  const matrix = Buffer.alloc(25 * 4);
52
- const redScale = mode === "record" ? 1.0 : mode === "remove" ? 0.35 : 1.0;
53
- const greenScale = mode === "record" ? 0.3 : mode === "remove" ? 1.0 : 1.0;
54
- const blueScale = mode === "record" ? 0.18 : mode === "remove" ? 0.35 : 1.0;
52
+ const redScale = mode === "record" ? 0.35 : mode === "remove" ? 1.0 : 1.0;
53
+ const greenScale = mode === "record" ? 1.0 : mode === "remove" ? 0.3 : 1.0;
54
+ const blueScale = mode === "record" ? 0.35 : mode === "remove" ? 0.18 : 1.0;
55
55
  const values = [
56
56
  redScale,
57
57
  0,
@@ -108,13 +108,13 @@ export function setScreenHue(mode) {
108
108
  if (mode !== "off") {
109
109
  // Try requested tint first, then a milder fallback accepted by more drivers.
110
110
  const primaryRamp = mode === "record"
111
- ? buildGammaRamp(1.0, 0.22, 0.35)
112
- : buildGammaRamp(0.4, 1.0, 0.4);
111
+ ? buildGammaRamp(0.4, 1.0, 0.4)
112
+ : buildGammaRamp(1.0, 0.22, 0.35);
113
113
  let ok = Number(SetDeviceGammaRamp(screenDc, primaryRamp));
114
114
  if (!ok) {
115
115
  const fallbackRamp = mode === "record"
116
- ? buildGammaRamp(1.0, 0.58, 0.35)
117
- : buildGammaRamp(0.65, 1.0, 0.65);
116
+ ? buildGammaRamp(0.65, 1.0, 0.65)
117
+ : buildGammaRamp(1.0, 0.58, 0.35);
118
118
  ok = Number(SetDeviceGammaRamp(screenDc, fallbackRamp));
119
119
  }
120
120
  if (ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdesk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",