qzind / tray

Browser plugin for sending documents and raw commands to a printer or attached device.
https://qz.io
Other
823 stars 266 forks source link

Added 'default' ColorType #1247

Closed Vzor- closed 2 months ago

Vzor- commented 3 months ago

Fixes #1179 Null was intended to act as a 'default' option, but does not. Since it was not a documented feature, we will add a 'default' option rather than change the existing behavior of null.

Printers have a default color setting on windows, it can be "Black & White" or "Color". This is a table showing the test results of a given setting, with a given colorType in QZ.

Master:

colorType Printer: Black & White Printer: Color
Grayscale Black & White Black & White
Color Color Color
Null Color Color

This PR:

colorType Printer: Black & White Printer: Color
Grayscale Black & White Black & White
Color Color Color
Null Color Color
Default Black & White Color

Printing from HTML seems to have some issues when the printer is set to a color of 'Black & White', and QZ requests color. HTML also seems to have sticky color settings, requiring a restart after changing. I was able to verify that we are at least attempting to set it to the correct value in these scenarios.