1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Hilite matching parentheses under cursor

This commit is contained in:
blat-blatnik 2022-01-11 22:48:08 +01:00
parent ed6959973a
commit 85ac4d5f83
4 changed files with 129 additions and 7 deletions

View file

@ -185,13 +185,14 @@ namespace Beefy.theme.dark
COUNT
};
public static uint32 COLOR_TEXT = 0xFFFFFFFF;
public static uint32 COLOR_WINDOW = 0xFF595962;
public static uint32 COLOR_BKG = 0xFF26262A;
public static uint32 COLOR_SELECTED_OUTLINE = 0xFFCFAE11;
public static uint32 COLOR_MENU_FOCUSED = 0xFFE5A910;
public static uint32 COLOR_MENU_SELECTED = 0xFFCB9B80;
public static uint32 COLOR_CURRENT_LINE_HILITE = 0xFF4C4C54;
public static uint32 COLOR_TEXT = 0xFFFFFFFF;
public static uint32 COLOR_WINDOW = 0xFF595962;
public static uint32 COLOR_BKG = 0xFF26262A;
public static uint32 COLOR_SELECTED_OUTLINE = 0xFFCFAE11;
public static uint32 COLOR_MENU_FOCUSED = 0xFFE5A910;
public static uint32 COLOR_MENU_SELECTED = 0xFFCB9B80;
public static uint32 COLOR_CURRENT_LINE_HILITE = 0xFF4C4C54;
public static uint32 COLOR_MATCHING_PARENS_HILITE = 0x28FFFFFF;
public static float sScale = 1.0f;
public static int32 sSrcImgScale = 1;

View file

@ -2661,6 +2661,12 @@ namespace Beefy.widgets
GetLineAndColumnAtCoord(x, y, out line2, out column);
}
public void GetLineColumnAtIdx(int idx, out int line, out int column)
{
GetLineCharAtIdx(idx, out line, var lineChar);
GetColumnAtLineChar(line, lineChar, out column);
}
public virtual void GetLineCharAtIdx(int idx, out int line, out int theChar)
{
int lineA;