Hello,
Is your feature request related to a problem? Please describe.
I used to configure LWI to:
- Not show the indicator as long as the line is within very acceptable width (e.g. 80 columns)
- Display the indicator in yellow between 80-100 columns as a warning
- Display the indicator in red after 100 columns to force me to split the line
Until recently, I implement point 1 by setting the indicator's color to fully transparent using LWI.breakpoints.
However, for better consistency with other extensions displaying information in the same area, and for better separation from the actual code, now I use a background color. The problem is that the technique of the transparent color doesn't work well anymore because even though the text of the indicator is hidden, its background is still shown.
Describe the solution you'd like
The solution I tried in #16 is to add a setting (LWI.minimalLineWidth) to disable the indicator below a threshold. I believe this is the most straightforward solution.
Describe alternatives you've considered
Another solution I tried was to implement the setting backgroundColor in the context of LWI.breakpoints, thus allowing it to become transparent too. Although this approach would have been more flexible, I'm not sure the added flexibility would provide a greater benefit in practice. Also, I believe it is preferable to disable something early rather than follow the whole process to finally make it transparent.
Additional context
None.
Hello,
Is your feature request related to a problem? Please describe.
I used to configure LWI to:
Until recently, I implement point 1 by setting the indicator's color to fully transparent using
LWI.breakpoints.However, for better consistency with other extensions displaying information in the same area, and for better separation from the actual code, now I use a background color. The problem is that the technique of the transparent color doesn't work well anymore because even though the text of the indicator is hidden, its background is still shown.
Describe the solution you'd like
The solution I tried in #16 is to add a setting (
LWI.minimalLineWidth) to disable the indicator below a threshold. I believe this is the most straightforward solution.Describe alternatives you've considered
Another solution I tried was to implement the setting
backgroundColorin the context ofLWI.breakpoints, thus allowing it to become transparent too. Although this approach would have been more flexible, I'm not sure the added flexibility would provide a greater benefit in practice. Also, I believe it is preferable to disable something early rather than follow the whole process to finally make it transparent.Additional context
None.