Skip to content

Commit

Permalink
Revert previous. Not needed because SELECTIONLAYER defaults to SC_LAY…
Browse files Browse the repository at this point in the history
…ER_BASE which is always opaque.
  • Loading branch information
martijnlaan committed Jun 15, 2024
1 parent 90b6ed3 commit 65647e7
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] or (SC_ALPHA_OPAQUE shl 24);
var SelBackColor := FTheme.Colors[tcSelBack];
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_BACK, SelBackColor);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_ADDITIONAL_BACK, SelBackColor);

var SelInactiveBackColor := FTheme.Colors[tcSelInactiveBack] or (SC_ALPHA_OPAQUE shl 24);
var SelInactiveBackColor := FTheme.Colors[tcSelInactiveBack];
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 65647e7

Please sign in to comment.