Skip to content

Commit a80b1b7

Browse files
committed
Merge pull request #865 from JoeRobich/patch-15
Update ASDocumentation.GetShortcutDocs to use theme color if set
2 parents 2027389 + 193e9e5 commit a80b1b7

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)