mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
PixelPaint: Add GUI for editing layer names :^)
This commit is contained in:
parent
955d3c22c7
commit
65ec655b0d
4 changed files with 30 additions and 1 deletions
|
@ -69,4 +69,12 @@ void Layer::set_opacity_percent(int opacity_percent)
|
|||
m_image.layer_did_modify_properties({}, *this);
|
||||
}
|
||||
|
||||
void Layer::set_name(const String& name)
|
||||
{
|
||||
if (m_name == name)
|
||||
return;
|
||||
m_name = name;
|
||||
m_image.layer_did_modify_properties({}, *this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue