mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
MouseSettings: Support animated cursors in the highlighting preview
This commit is contained in:
parent
ceab9903cd
commit
3c2c6790df
2 changed files with 22 additions and 2 deletions
|
@ -6,8 +6,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibGUI/AbstractThemePreview.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/CursorParams.h>
|
||||
|
||||
namespace MouseSettings {
|
||||
|
||||
|
@ -36,7 +38,10 @@ private:
|
|||
ErrorOr<void> reload_cursor();
|
||||
|
||||
RefPtr<Gfx::Bitmap> m_cursor_bitmap;
|
||||
Gfx::CursorParams m_cursor_params;
|
||||
RefPtr<Core::Timer> m_frame_timer;
|
||||
|
||||
int m_cursor_frame { 0 };
|
||||
int m_radius { 0 };
|
||||
Gfx::Color m_color;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue