1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

Minesweeper: Use one premade mine palette for all mine widgets

Fixes #6283
This commit is contained in:
Jean-Baptiste Boric 2021-04-13 20:48:02 +02:00 committed by Andreas Kling
parent c130161d9f
commit 900fe5633a
2 changed files with 8 additions and 5 deletions

View file

@ -29,6 +29,7 @@
#include <AK/Noncopyable.h>
#include <LibCore/Timer.h>
#include <LibGUI/Frame.h>
#include <LibGfx/Palette.h>
class Field;
class SquareButton;
@ -118,6 +119,7 @@ private:
RefPtr<Gfx::Bitmap> m_good_face_bitmap;
RefPtr<Gfx::Bitmap> m_bad_face_bitmap;
RefPtr<Gfx::Bitmap> m_number_bitmap[8];
Gfx::Palette m_mine_palette;
GUI::Button& m_face_button;
GUI::Label& m_flag_label;
GUI::Label& m_time_label;