Skip to content

Commit 193e9e5

Browse files
committed
Update ASDocumentation.GetShortcutDocs to use theme color if set
Use the RichToolTip.ForeColor if it is set by the UI theme.
1 parent 568e841 commit 193e9e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

External/Plugins/ASCompletion/Completion/ASDocumentation.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using PluginCore.Localization;
1717
using PluginCore.Utilities;
1818
using ScintillaNet;
19+
using System.Drawing;
1920

2021
namespace ASCompletion.Completion
2122
{
@@ -456,7 +457,9 @@ static public string GetTipShortDetails(CommentBlock cb, string highlightParam)
456457

457458
static private string GetShortcutDocs()
458459
{
459-
return "\n[COLOR=#666666:MULTIPLY][i](" + TextHelper.GetString("Info.ShowDetails") + ")[/i][/COLOR]";
460+
Color themeForeColor = PluginBase.MainForm.GetThemeColor("RichToolTip.ForeColor");
461+
string foreColorString = themeForeColor != Color.Empty ? ColorTranslator.ToHtml(themeForeColor) : "#666666:MULTIPLY";
462+
return "\n[COLOR=" + foreColorString + "][i](" + TextHelper.GetString("Info.ShowDetails") + ")[/i][/COLOR]";
460463
}
461464

462465
/// <summary>

0 commit comments

Comments
 (0)