Update for colpic thumbnails background color to match Elegoo theme (#3647)

Update Thumbnails.cpp

Changed background color from white to a dark gray to match the rest of the Elegoo touch screen theme
This commit is contained in:
VBits 2024-01-15 06:17:54 -08:00 committed by GitHub
parent 2e4e1a2e0f
commit b25617892e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,9 +160,9 @@ std::unique_ptr<CompressedImageBuffer> compress_thumbnail_colpic(const Thumbnail
b = int(pixels[pix_idx + 2]) >> 3;
a = int(pixels[pix_idx + 3]);
if (a == 0) {
r = 239 >> 3;
g = 243 >> 2;
b = 247 >> 3;
r = 46 >> 3;
g = 51 >> 2;
b = 72 >> 3;
}
rgb = (r << 11) | (g << 5) | b;
color16_buf[time--] = rgb;
@ -529,4 +529,4 @@ int ColPic_EncodeStr(unsigned short* fromcolor16, int picw, int pich, unsigned c
return qty;
}
} // namespace Slic3r::GCodeThumbnails
} // namespace Slic3r::GCodeThumbnails