aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Shiftnet.cs34
1 files changed, 27 insertions, 7 deletions
diff --git a/ShiftOS.WinForms/Applications/Shiftnet.cs b/ShiftOS.WinForms/Applications/Shiftnet.cs
index 4388ece..e97a4cb 100644
--- a/ShiftOS.WinForms/Applications/Shiftnet.cs
+++ b/ShiftOS.WinForms/Applications/Shiftnet.cs
@@ -65,6 +65,12 @@ namespace ShiftOS.WinForms.Applications
font-size: {LoadedSkin.Header3Font.SizeInPoints}pt;
}}
+ pre, code {{
+ font-family: ""{LoadedSkin.TerminalFont.Name}"";
+ font-size: {LoadedSkin.TerminalFont.SizeInPoints}pt;
+ color: rgb({LoadedSkin.TerminalForeColor.R}, {LoadedSkin.TerminalForeColor.G}, {LoadedSkin.TerminalForeColor.B});
+ background-color: rgb({LoadedSkin.TerminalBackColor.R}, {LoadedSkin.TerminalBackColor.G}, {LoadedSkin.TerminalBackColor.B});
+ }}
</style>
</head>
<body>
@@ -128,20 +134,34 @@ namespace ShiftOS.WinForms.Applications
private void btnback_Click(object sender, EventArgs e)
{
- string hist = History.Pop();
- if (!string.IsNullOrEmpty(hist))
+ try
+ {
+ string hist = History.Pop();
+ if (!string.IsNullOrEmpty(hist))
+ {
+ Future.Push(hist);
+ ShiftnetNavigate(hist, false);
+ }
+ }
+ catch
{
- Future.Push(hist);
- ShiftnetNavigate(hist, false);
+
}
}
private void btnforward_Click(object sender, EventArgs e)
{
- string fut = Future.Pop();
- if (!string.IsNullOrEmpty(fut))
+ try
{
- ShiftnetNavigate(fut);
+ string fut = Future.Pop();
+ if (!string.IsNullOrEmpty(fut))
+ {
+ ShiftnetNavigate(fut);
+ }
+ }
+ catch
+ {
+
}
}