Skip to content

Commit

Permalink
Add subtle fold line after contraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Jun 19, 2024
1 parent 4174bd3 commit b7b9cef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Projects/Src/CompScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ procedure TCompScintEdit.CreateWnd;
Call(SCI_MARKERDEFINE, SC_MARKNUM_FOLDEREND, SC_MARK_EMPTY);
Call(SCI_MARKERDEFINE, SC_MARKNUM_FOLDEROPENMID, SC_MARK_EMPTY);
Call(SCI_MARKERDEFINE, SC_MARKNUM_FOLDERMIDTAIL, SC_MARK_EMPTY);
FoldFlags := [{sffLevelNumbers, }sffLineAfterContracted]; { sffLevelNumbers can be used to debug fold levels}

{ Set up the line markers }
Call(SCI_MARKERDEFINE, mlmError, SC_MARK_BACKFORE);
Expand Down Expand Up @@ -341,7 +342,7 @@ procedure TCompScintEdit.UpdateMarginsAndSquigglyWidths(const IconMarkersWidth,

procedure TCompScintEdit.UpdateThemeColorsAndStyleAttributes;
begin
if FTheme <> nil then begin
if FTheme <> nil then begin { Always True at the moment }
Font.Color := FTheme.Colors[tcFore];
Color := FTheme.Colors[tcBack];

Expand All @@ -352,6 +353,7 @@ procedure TCompScintEdit.UpdateThemeColorsAndStyleAttributes;
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_INACTIVE_BACK, SelBackColor);
Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK, SelBackColor);

Call(SCI_SETELEMENTCOLOUR, SC_ELEMENT_FOLD_LINE, FTheme.Colors[tcIndentGuideFore] or (70 shl 24));
Call(SCI_SETFOLDMARGINCOLOUR, Ord(True), FTheme.Colors[tcBack]);
Call(SCI_SETFOLDMARGINHICOLOUR, Ord(True), FTheme.Colors[tcBack]);

Expand Down

0 comments on commit b7b9cef

Please sign in to comment.