mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
FontEditor: Remove weird focus rects and optimize repaint while drawing.
I added focus rects to these widgets because I had just started working on focus support and I was excited but it doesn't really make sense for these things to have focus rects. :^) While I was here I also optimized the repaint code to only update the edited glyph in the glyph map when editing its pixels.
This commit is contained in:
parent
ac6c7d3e19
commit
f2580dcfeb
Notes:
sideshowbarker
2024-07-19 14:48:11 +09:00
Author: https://github.com/awesomekling
Commit: f2580dcfeb
5 changed files with 15 additions and 14 deletions
|
@ -80,8 +80,8 @@ FontEditorWidget::FontEditorWidget(const String& path, RetainPtr<Font>&& edited_
|
|||
demo_label_2->update();
|
||||
};
|
||||
|
||||
m_glyph_editor_widget->on_glyph_altered = [this, update_demo] {
|
||||
m_glyph_map_widget->update();
|
||||
m_glyph_editor_widget->on_glyph_altered = [this, update_demo] (byte glyph) {
|
||||
m_glyph_map_widget->update_glyph(glyph);
|
||||
update_demo();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue