+chg: Tooltip/Calltip style using Segoe UI font

This commit is contained in:
METANEOCORTEX\Kotti 2023-06-19 12:06:24 +02:00
parent 4b42126dd2
commit 2c8b105134
4 changed files with 15 additions and 6 deletions

View File

@ -18,6 +18,7 @@ Makefile.in
*.la
*.pc
*.log
*.trs
*.dll
*.lib
*.exe

View File

@ -2,7 +2,7 @@
regcomp.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2022 K.Kosako
* Copyright (c) 2002-2023 K.Kosako
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -3290,9 +3290,10 @@ get_tree_head_literal(Node* node, int exact, regex_t* reg)
case BAG_OPTION:
case BAG_MEMORY:
case BAG_STOP_BACKTRACK:
case BAG_IF_ELSE:
n = get_tree_head_literal(ND_BODY(node), exact, reg);
break;
default:
break;
}
}
break;

View File

@ -474,6 +474,7 @@ DeclareSciCallV2(CallTipShow, CALLTIPSHOW, DocPos, position, const char*, text);
DeclareSciCallV2(CallTipSetHlt, CALLTIPSETHLT, int, beg, int, end);
DeclareSciCallR0(CallTipActive, CALLTIPACTIVE, bool);
DeclareSciCallV0(CallTipCancel, CALLTIPCANCEL);
DeclareSciCallV1(CallTipUseStyle, CALLTIPUSESTYLE, int, tabsize);
DeclareSciCallV1(SetMouseDWellTime, SETMOUSEDWELLTIME, int, millisec);
DeclareSciCallR0(AutoCActive, AUTOCACTIVE, bool);
@ -584,7 +585,8 @@ DeclareSciCallV1(SetViewEOL, SETVIEWEOL, bool, eols);
DeclareSciCallR2(StyleGetFont, STYLEGETFONT, int, int, style, char*, fontname);
DeclareSciCallV2(StyleSetFont, STYLESETFONT, int, style, const char*, fontname);
DeclareSciCallV2(StyleSetWeight, STYLESETWEIGHT, int, style, int, weight);
DeclareSciCallV2(StyleSetItalic, STYLESETITALIC, int, style, bool, oblique);
DeclareSciCallV2(StyleSetBold, STYLESETBOLD, int, style, bool, bold);
DeclareSciCallV2(StyleSetItalic, STYLESETITALIC, int, style, bool, italic);
DeclareSciCallV1(SetFontQuality, SETFONTQUALITY, int, qual);
DeclareSciCallV01(SetFontLocale, SETFONTLOCALE, const char*, localeName);

View File

@ -2173,11 +2173,16 @@ void Style_SetMargin(HWND hwnd, LPCWSTR lpszStyle) /// iStyle == STYLE_LINENUMBE
// --- CallTips ---
SciCall_CallTipSetBack(clrMarginBack);
SciCall_CallTipSetFore(RGB(0x80, 0x80, 0x80));
//SciCall_CallTipSetFore(RGB(0x80, 0x80, 0x80)); // clrLineNumFore
//SciCall_CallTipSetBack(clrMarginBack);
SciCall_StyleSetFont(STYLE_CALLTIP, "Segoe UI");
SciCall_StyleSetItalic(STYLE_CALLTIP, false);
SciCall_StyleSetBold(STYLE_CALLTIP, false);
SciCall_StyleSetFore(STYLE_CALLTIP, RGB(0x80, 0x80, 0x80)); // clrLineNumFore
SciCall_StyleSetBack(STYLE_CALLTIP, clrMarginBack);
SciCall_CallTipUseStyle(24); // tabsize
SciCall_CallTipSetForeHlt(clrLineNumFore);
// --- Bookmarks ---
LPCWSTR const wchBookMarkStyleStrg = GetCurrentStdLexer()->Styles[STY_BOOK_MARK].szValue;