From b25617892e9e180ef7d6a7af1ee432d178f9a68b Mon Sep 17 00:00:00 2001 From: VBits <62845219+VBitsHub@users.noreply.github.com> Date: Mon, 15 Jan 2024 06:17:54 -0800 Subject: [PATCH] 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 --- src/libslic3r/GCode/Thumbnails.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/GCode/Thumbnails.cpp b/src/libslic3r/GCode/Thumbnails.cpp index 3d1ae9eec4..5d78584a4c 100644 --- a/src/libslic3r/GCode/Thumbnails.cpp +++ b/src/libslic3r/GCode/Thumbnails.cpp @@ -160,9 +160,9 @@ std::unique_ptr 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 \ No newline at end of file +} // namespace Slic3r::GCodeThumbnails