Skip to content

Commit 1c34da6

Browse files
committed
Tried to fix text editor bg
1 parent 26e260d commit 1c34da6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CutCode/ViewModels/AddViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ private void SetAppearance()
3636
{
3737
// 40444B
3838
textBoxBackground = themeService.IsLightTheme ? ColorCon.Convert("#DADBDC") : ColorCon.Convert("#2A2E33");
39-
textBoxForeground = themeService.IsLightTheme ? ColorCon.Convert("#000000") : ColorCon.Convert("#FFFFFF");
40-
richtextBoxBackground = themeService.IsLightTheme ? ColorCon.Convert("#E3E5E8") : ColorCon.Convert("#40444B");
39+
textBoxForeground = themeService.IsLightTheme ? ColorCon.Convert("#1A1A1A") : ColorCon.Convert("#F7F7F7");
40+
richtextBoxBackground = themeService.IsLightTheme ? ColorCon.Convert("#E3E5E8") : ColorCon.Convert("#2C3036");
4141
btnHoverColor = themeService.IsLightTheme ? ColorCon.Convert("#D0D1D2") : ColorCon.Convert("#373737");
4242
}
4343

CutCode/Views/AddView.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
109109
<local:BindableAvalonEditor
110110
xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
111-
Background="{Binding richtextBoxBackground}"
111+
Background="Transparent"
112112
Foreground="{Binding textBoxForeground}"
113113
BorderThickness="0"
114114
Margin="5,9,0,0"
@@ -117,6 +117,8 @@
117117
FontFamily="{StaticResource firacode}"
118118
FontSize="14"
119119
ShowLineNumbers="True"
120+
121+
LineNumbersForeground="{Binding textBoxForeground}"
120122
ScrollViewer.CanContentScroll="True"
121123
ScrollViewer.HorizontalScrollBarVisibility="Auto"
122124
ScrollViewer.VerticalScrollBarVisibility="Auto"

0 commit comments

Comments
 (0)