1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:17:44 +00:00

LibDraw: Add Selection and SelectionText system theme colors

This commit is contained in:
Andreas Kling 2019-12-24 12:13:10 +01:00
parent 033de7efe2
commit b6eba388e3
16 changed files with 43 additions and 22 deletions

View file

@ -492,7 +492,7 @@ void HexEditor::paint_event(GPaintEvent& event)
text_color = Color::Red;
}
Color highlight_color = Color::from_rgb(0x84351a);
Color highlight_color = SystemColor::Selection;
auto highlight_flag = false;
if (m_selection_start > -1 && m_selection_end > -1) {
if (byte_position >= m_selection_start && byte_position <= m_selection_end) {
@ -541,4 +541,4 @@ void HexEditor::leave_event(CEvent&)
{
ASSERT(window());
window()->set_override_cursor(GStandardCursor::None);
}
}