mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
FontEditor: Update GML for new layout system
This patch removes deprecated GML properties and manual sizing calculations in favor of the new UIDimensions, and registers more widgets in the FontEditor namespace to simplify widget setup.
This commit is contained in:
parent
1b9dff5fb1
commit
dc3ee84aca
9 changed files with 149 additions and 173 deletions
|
@ -14,6 +14,10 @@
|
|||
#include <LibGfx/Palette.h>
|
||||
#include <string.h>
|
||||
|
||||
REGISTER_WIDGET(FontEditor, GlyphEditorWidget);
|
||||
|
||||
namespace FontEditor {
|
||||
|
||||
void GlyphEditorWidget::initialize(Gfx::BitmapFont& mutable_font)
|
||||
{
|
||||
if (m_font == mutable_font)
|
||||
|
@ -271,3 +275,5 @@ void GlyphEditorWidget::set_scale(int scale)
|
|||
m_scale = clamp(scale, 1, 15);
|
||||
update();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue