Skip to content

Commit

Permalink
Merge pull request #1 from splintPRO/master
Browse files Browse the repository at this point in the history
Color(Favorit fishka)
  • Loading branch information
borseno authored Feb 9, 2019
2 parents 01e77de + f31a94d commit 5cfcc5d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 26 deletions.
10 changes: 5 additions & 5 deletions BorsenoTextEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<Compile Include="FileMode.cs" />
<Compile Include="IFilePicker.cs" />
<Compile Include="IFileManager.cs" />
<Compile Include="Main menu.cs">
<Compile Include="Mainmenu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Main menu.Designer.cs">
<DependentUpon>Main menu.cs</DependentUpon>
<Compile Include="Mainmenu.Designer.cs">
<DependentUpon>Mainmenu.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand All @@ -83,8 +83,8 @@
<EmbeddedResource Include="ChooseFileFromDBForm.resx">
<DependentUpon>ChooseFileFromDBForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Main menu.resx">
<DependentUpon>Main menu.cs</DependentUpon>
<EmbeddedResource Include="Mainmenu.resx">
<DependentUpon>Mainmenu.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand Down
34 changes: 18 additions & 16 deletions Main menu.Designer.cs → Mainmenu.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions Main menu.cs → Mainmenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public partial class MainForm : Form
private IFilePicker _filePicker;
private IFileManager _fileManager;
private FileMode _fileMode;
bool darkenable;

private string CurrentFilePath
{
Expand Down Expand Up @@ -138,13 +139,20 @@ private void FileMode_Click(object sender, EventArgs e)
CurrentFilePath = null;
}

// TODO: Screen Mode (color) change
private void ScreenMode_Click(object sender, EventArgs e)
{
bool isDark = ScreenMode.Text.StartsWith("Dark");
{
if (darkenable == false)
{
this.BackColor = System.Drawing.Color.Black;
darkenable = true;
}

if (isDark)
this.BackColor = new Color();
else if (darkenable == true)
{
this.BackColor = System.Drawing.Color.White;
darkenable = false;
return;
}
}
}
}
File renamed without changes.

0 comments on commit 5cfcc5d

Please sign in to comment.