mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibGUI: Add DialogButton convenience class
DialogButton is a small convenience class, that just gives a button to be used in dialogs for a more consistent look around the system.
This commit is contained in:
parent
1a641f9af7
commit
4c84e64b2a
3 changed files with 14 additions and 0 deletions
|
@ -76,4 +76,16 @@ private:
|
|||
bool m_mimic_pressed { false };
|
||||
};
|
||||
|
||||
class DialogButton final : public Button {
|
||||
C_OBJECT(DialogButton);
|
||||
|
||||
public:
|
||||
virtual ~DialogButton() override {};
|
||||
explicit DialogButton(String text = {})
|
||||
: Button(move(text))
|
||||
{
|
||||
set_fixed_width(80);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue