mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
parent
d8a3285d78
commit
368fe0f7f8
Notes:
sideshowbarker
2024-07-18 22:04:21 +09:00
Author: https://github.com/linusg
Commit: 368fe0f7f8
Pull-request: https://github.com/SerenityOS/serenity/pull/5443
Issue: https://github.com/SerenityOS/serenity/issues/5442
1 changed files with 2 additions and 3 deletions
|
@ -351,9 +351,8 @@ void TerminalWidget::paint_event(GUI::PaintEvent& event)
|
||||||
auto character_rect = glyph_rect(visual_row, column);
|
auto character_rect = glyph_rect(visual_row, column);
|
||||||
auto cell_rect = character_rect.inflated(0, m_line_spacing);
|
auto cell_rect = character_rect.inflated(0, m_line_spacing);
|
||||||
auto text_color = color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_background_color() : attribute.effective_foreground_color());
|
auto text_color = color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_background_color() : attribute.effective_foreground_color());
|
||||||
if ((!visual_beep_active && !has_only_one_background_color) || should_reverse_fill_for_cursor_or_selection) {
|
if ((!visual_beep_active && !has_only_one_background_color) || should_reverse_fill_for_cursor_or_selection)
|
||||||
painter.clear_rect(cell_rect, color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_foreground_color() : attribute.effective_background_color()).with_alpha(m_opacity));
|
painter.clear_rect(cell_rect, color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_foreground_color() : attribute.effective_background_color()));
|
||||||
}
|
|
||||||
|
|
||||||
enum class UnderlineStyle {
|
enum class UnderlineStyle {
|
||||||
None,
|
None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue