Skip to content

Commit 2c4e7a7

Browse files
committed
Improve the contrast of the highlights a little...
1 parent 99a67b3 commit 2c4e7a7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

External/Plugins/FlashDebugger/Helpers/ScintillaHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,17 @@ public static void AddHighlight(ScintillaControl sci, Int32 line, Int32 indicato
210210
if (indicator == indicatorDebugCurrentLine)
211211
{
212212
sci.SetIndicFore(indicator, lang.editorstyle.DebugLineBack);
213+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
213214
}
214215
else if (indicator == indicatorDebugEnabledBreakpoint)
215216
{
216217
sci.SetIndicFore(indicator, lang.editorstyle.ErrorLineBack);
218+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
217219
}
218220
else if (indicator == indicatorDebugDisabledBreakpoint)
219221
{
220222
sci.SetIndicFore(indicator, lang.editorstyle.DisabledLineBack);
223+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
221224
}
222225
sci.SetIndicStyle(indicator, 7);
223226
sci.CurrentIndicator = indicator;
@@ -241,14 +244,17 @@ public static void RemoveHighlight(ScintillaControl sci, Int32 line, Int32 indic
241244
if (indicator == indicatorDebugCurrentLine)
242245
{
243246
sci.SetIndicFore(indicator, lang.editorstyle.DebugLineBack);
247+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
244248
}
245249
else if (indicator == indicatorDebugEnabledBreakpoint)
246250
{
247251
sci.SetIndicFore(indicator, lang.editorstyle.ErrorLineBack);
252+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
248253
}
249254
else if (indicator == indicatorDebugDisabledBreakpoint)
250255
{
251256
sci.SetIndicFore(indicator, lang.editorstyle.DisabledLineBack);
257+
sci.SetIndicSetAlpha(indicator, 40); // Improve contrast
252258
}
253259
sci.SetIndicStyle(indicator, 7);
254260
sci.CurrentIndicator = indicator;

PluginCore/ScintillaNet/ScintillaControl.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3219,12 +3219,10 @@ unsafe public void MarkerDefinePixmap(int markerNumber, string pixmap )
32193219
unsafe public void MarkerDefineRGBAImage(int markerNumber, Bitmap image)
32203220
{
32213221
var rgba = RGBA.ConvertToRGBA(image);
3222-
32233222
//SCI_RGBAIMAGESETWIDTH
32243223
SPerform(2624, (uint)image.Width, 0);
32253224
//SCI_RGBAIMAGESETHEIGHT
32263225
SPerform(2625, (uint)image.Height, 0);
3227-
32283226
fixed (byte* b = rgba)
32293227
{
32303228
//SCI_MARKERDEFINERGBAIMAGE
@@ -6613,8 +6611,10 @@ public void AddHighlight(Int32 indicator, Int32 indicStyle, Int32 highlightColor
66136611
// Define indics in both controls...
66146612
doc.SplitSci1.SetIndicStyle(indicator, indicStyle);
66156613
doc.SplitSci1.SetIndicFore(indicator, highlightColor);
6614+
doc.SplitSci1.SetIndicSetAlpha(indicator, 40); // Improve contrast
66166615
doc.SplitSci2.SetIndicStyle(indicator, indicStyle);
66176616
doc.SplitSci2.SetIndicFore(indicator, highlightColor);
6617+
doc.SplitSci2.SetIndicSetAlpha(indicator, 40); // Improve contrast
66186618
this.CurrentIndicator = indicator;
66196619
this.IndicatorValue = 1;
66206620
this.IndicatorFillRange(start, length);
@@ -6645,8 +6645,10 @@ public void AddHighlights(Int32 indicator, Int32 indicStyle, List<SearchMatch> m
66456645
// Define indics in both controls...
66466646
doc.SplitSci1.SetIndicStyle(indicator, (Int32)ScintillaNet.Enums.IndicatorStyle.RoundBox);
66476647
doc.SplitSci1.SetIndicFore(indicator, highlightColor);
6648+
doc.SplitSci1.SetIndicSetAlpha(indicator, 40); // Improve contrast
66486649
doc.SplitSci2.SetIndicStyle(indicator, (Int32)ScintillaNet.Enums.IndicatorStyle.RoundBox);
66496650
doc.SplitSci2.SetIndicFore(indicator, highlightColor);
6651+
doc.SplitSci2.SetIndicSetAlpha(indicator, 40); // Improve contrast
66506652
this.CurrentIndicator = indicator;
66516653
this.IndicatorValue = 1;
66526654
this.IndicatorFillRange(start, this.MBSafeTextLength(match.Value));

0 commit comments

Comments
 (0)