Skip to content

Commit

Permalink
Added choice of light or dark AON themes
Browse files Browse the repository at this point in the history
  • Loading branch information
bogga committed Apr 10, 2019
1 parent 926659f commit 1ab14ea
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 6 deletions.
54 changes: 49 additions & 5 deletions PFSpells/GeneratorWindow.Designer.cs

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

14 changes: 13 additions & 1 deletion PFSpells/GeneratorWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,14 @@ private void button1_Click(object sender, EventArgs e)
writer.WriteLine("<title>" + charName + "</title>");
InsertHead();
writer.WriteLine("</head>");
writer.WriteLine("<body>");

if (!d20Radio.Checked)
if (darkRadio.Checked)
writer.WriteLine("<body class=\"dark\">");
else
writer.WriteLine("<body class=\"light\">");
else
writer.WriteLine("<body>");

web = new HtmlWeb();
failedSpells = new List<string>();
Expand Down Expand Up @@ -242,5 +249,10 @@ private void checkBox1_CheckedChanged(object sender, EventArgs e)
{

}

private void aonRadio_CheckedChanged(object sender, EventArgs e)
{
sourceOptions.Enabled = aonRadio.Checked;
}
}
}

0 comments on commit 1ab14ea

Please sign in to comment.