mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibGUI: Add CommonMenus
Right now only the accessibility menu is shared across apps but it's a good bit of boilerplate that can be consolidated and will make adding ColorBlindnessFilters to other widgets trivial.
This commit is contained in:
parent
7252a1aa4d
commit
f31a56d086
3 changed files with 86 additions and 0 deletions
|
@ -10,12 +10,19 @@
|
|||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ColorFilterer.h>
|
||||
#include <LibGUI/Event.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
namespace CommonMenus {
|
||||
|
||||
ErrorOr<NonnullRefPtr<Menu>> make_accessibility_menu(GUI::ColorFilterer&);
|
||||
|
||||
};
|
||||
|
||||
class Menu final : public Core::Object {
|
||||
C_OBJECT(Menu)
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue