Menu

#1241 Folding line color and size

Completed
open
nobody
None
5
2021-09-22
2018-11-02
mLipok
No

When you fold a group of code then you see only first line of this code.
Above this line of code you will see additional FOLDING LINE (just line -- not line of code).

My feature request is:
To have possibility to change FOLDING LINE Color, and height.

Why Color ? because many users use dark themes and this FOLDING LINE is alomst invisible.
Why height ? Did you use SciTE on 4K montior, just try and this became a quite resonable Feature ?

Remark:
instead of the height parameter, you could just cause the whole further part of the line (trailing space) to be marked with a different color.

Discussion

  • mLipok

    mLipok - 2018-11-02

    screenshot:

     
  • Zufu Liu

    Zufu Liu - 2018-11-07

    Maybe two colors can be added to set the foreground color for vertical line and horizontal line. If the line color is same as foreground background color for default style, the line can be omited.

    Increase stroke width of folder marker and folder line has problem with box-tree scheme: burr at corner (some coordinates need adjust).

    Anothor issue is zooming, the fold margin width and stroke width should been zoomed when the document is zoomed. Picture made on a 200% display should looks similar to picture made on a 100% display zoomed at 200%.

     

    Last edit: Zufu Liu 2018-11-07
  • Neil Hodgson

    Neil Hodgson - 2018-11-22

    The line is drawn in the foreground colour of STYLE_DEFAULT so should adapt to a dark mode.

    A height setting could be included if someone provides a reasonable implementation.

     
  • mLipok

    mLipok - 2018-11-23

    ah....
    by change this following line
    style..32=$(font.base),back:#E2EDE0
    to:
    style.
    .32=$(font.base),fore:#FF0000,back:#E2EDE0

    solve it.

    As to Height setting I think this above fix is sufficent for my eyes.
    Lets see what @Zufu Liu will say about.

     
  • Neil Hodgson

    Neil Hodgson - 2021-09-22

    Added SC_ELEMENT_FOLD_LINE to change colour.

     

Log in to post a comment.