Skip to content

Commit

Permalink
Follow the docs. Doesn't really seem to matter for these unlike what …
Browse files Browse the repository at this point in the history
…the docs says but did notice it works like this when trying SC_ELEMENT_CARET_LINE_BACK.
  • Loading branch information
martijnlaan committed Jun 15, 2024
1 parent ecf7a86 commit 90b6ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Src/CompScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ procedure TCompScintEdit.UpdateThemeColorsAndStyleAttributes;
Font.Color := FTheme.Colors[tcFore];
Color := FTheme.Colors[tcBack];

var SelBackColor := FTheme.Colors[tcSelBack];
var SelBackColor := FTheme.Colors[tcSelBack] or (SC_ALPHA_OPAQUE shl 24);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_BACK, SelBackColor);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_ADDITIONAL_BACK, SelBackColor);

var SelInactiveBackColor := FTheme.Colors[tcSelInactiveBack];
var SelInactiveBackColor := FTheme.Colors[tcSelInactiveBack] or (SC_ALPHA_OPAQUE shl 24);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_SECONDARY_BACK, SelInactiveBackColor);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_INACTIVE_BACK, SelInactiveBackColor);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK, SelInactiveBackColor);
Expand Down

0 comments on commit 90b6ed3

Please sign in to comment.