mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Expose hightlight colors to theming.
This commit is contained in:
parent
9ae172c43f
commit
633fb97e68
2 changed files with 6 additions and 2 deletions
|
@ -6906,8 +6906,8 @@ namespace IDE
|
|||
|
||||
var editWidgetContent = (SourceEditWidgetContent)editWidget.Content;
|
||||
//mEditWidget.mVertScrollbar.mScrollIncrement = editWidgetContent.mFont.GetLineSpacing();
|
||||
editWidgetContent.mHiliteColor = 0xFF384858;
|
||||
editWidgetContent.mUnfocusedHiliteColor = 0x80384858;
|
||||
editWidgetContent.mHiliteColor = mSettings.mUISettings.mColors.mCodeHighlight;
|
||||
editWidgetContent.mUnfocusedHiliteColor = mSettings.mUISettings.mColors.mCodeHighlightUnfocused;
|
||||
editWidgetContent.mHiliteCurrentLine = mSettings.mEditorSettings.mHiliteCurrentLine;
|
||||
|
||||
return editWidget;
|
||||
|
|
|
@ -350,6 +350,8 @@ namespace IDE
|
|||
public Color mCurrentLineHilite = 0xFF4C4C54;
|
||||
public Color mCurrentLineNumberHilite = 0x18FFFFFF;
|
||||
public Color mCharPairHilite = 0x1DFFFFFF;
|
||||
public Color mCodeHighlight = 0xFF384858;
|
||||
public Color mCodeHighlightUnfocused = 0x80384858;
|
||||
|
||||
public void Deserialize(StructuredData sd)
|
||||
{
|
||||
|
@ -418,6 +420,8 @@ namespace IDE
|
|||
GetColor("CurrentLineHilite", ref mCurrentLineHilite);
|
||||
GetColor("CurrentLineNumberHilite", ref mCurrentLineNumberHilite);
|
||||
GetColor("CharPairHilite", ref mCharPairHilite);
|
||||
GetColor("CodeHighlight", ref mCodeHighlight);
|
||||
GetColor("CodeHighlightUnfocused", ref mCodeHighlightUnfocused);
|
||||
}
|
||||
|
||||
public void Apply()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue