mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
PixelPaint: Update text tool font color on primary color change
This commit is contained in:
parent
230c0b34d4
commit
d4cb089acb
Notes:
sideshowbarker
2024-07-17 02:23:25 +09:00
Author: https://github.com/tcl3
Commit: d4cb089acb
Pull-request: https://github.com/SerenityOS/serenity/pull/17247
2 changed files with 8 additions and 0 deletions
|
@ -41,6 +41,13 @@ TextTool::TextTool()
|
|||
}).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
void TextTool::on_tool_activation()
|
||||
{
|
||||
m_editor->on_primary_color_change = [this](auto color) {
|
||||
m_text_color = color;
|
||||
};
|
||||
}
|
||||
|
||||
void TextTool::on_tool_deactivation()
|
||||
{
|
||||
reset_tool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue