1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Merge pull request #1375 from blat-blatnik/HighlightMatchingParens

Highlight matching parens under cursor
This commit is contained in:
Brian Fiete 2022-01-18 12:31:11 -05:00 committed by GitHub
commit fa01e7ad17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 139 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

@ -2662,6 +2662,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;