Skip to content

Commit 399cc6e

Browse files
committed
Added theme settings for OutputPanel colors...
1 parent 3a5c027 commit 399cc6e

File tree

22 files changed

+163
-9
lines changed

22 files changed

+163
-9
lines changed

External/Plugins/OutputPanel/PluginUI.cs

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -398,28 +398,62 @@ public void AddTraces()
398398
switch (state)
399399
{
400400
case 0: // Info
401-
newColor = Color.Gray;
401+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.InfoColor") != Color.Empty)
402+
{
403+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.InfoColor");
404+
}
405+
else newColor = Color.Gray;
402406
break;
403407
case 1: // Debug
404-
newColor = this.ForeColor;
408+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.DebugColor") != Color.Empty)
409+
{
410+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.DebugColor");
411+
}
412+
else newColor = this.ForeColor;
405413
break;
406414
case 2: // Warning
407-
newColor = Color.Orange;
415+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.WarningColor") != Color.Empty)
416+
{
417+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.WarningColor");
418+
}
419+
else newColor = Color.Orange;
408420
break;
409421
case 3: // Error
410-
newColor = Color.Red;
422+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.ErrorColor") != Color.Empty)
423+
{
424+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.ErrorColor");
425+
}
426+
else newColor = Color.Red;
411427
break;
412428
case 4: // Fatal
413-
newColor = Color.Magenta;
429+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.FatalColor") != Color.Empty)
430+
{
431+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.FatalColor");
432+
}
433+
else newColor = Color.Magenta;
414434
break;
415435
case -1: // ProcessStart
416-
newColor = Color.Blue;
436+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.ProcessStartColor") != Color.Empty)
437+
{
438+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.ProcessStartColor");
439+
}
440+
else newColor = Color.Blue;
417441
break;
418442
case -2: // ProcessEnd
419-
newColor = Color.Blue;
443+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.ProcessEndColor") != Color.Empty)
444+
{
445+
newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.ProcessEndColor");
446+
}
447+
else newColor = Color.Blue;
420448
break;
421449
case -3: // ProcessError
422-
newColor = (message.IndexOf("Warning") >= 0) ? Color.Orange : Color.Red;
450+
if (PluginBase.MainForm.GetThemeColor("OutputPanel.WarningColor") != Color.Empty
451+
&& PluginBase.MainForm.GetThemeColor("OutputPanel.ErrorColor") != Color.Empty)
452+
{
453+
if (message.IndexOf("Warning") >= 0) newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.WarningColor");
454+
else newColor = PluginBase.MainForm.GetThemeColor("OutputPanel.ErrorColor");
455+
}
456+
else newColor = (message.IndexOf("Warning") >= 0) ? Color.Orange : Color.Red;
423457
break;
424458
}
425459
if (newColor != currentColor)

External/Themes/FullThemes/DefaultTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Default.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/DefaultTheme/$(BaseDir)/Settings/Themes/Default.fdi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Default.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/DimGrayTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### DimGray.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/DimGrayTheme/$(BaseDir)/Settings/Themes/DimGray.fdi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### DimGray.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/ObsidianTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Obsidian.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/ObsidianTheme/$(BaseDir)/Settings/Themes/Obsidian.fdi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Obsidian.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/ThyleusTheme/$(BaseDir)/Settings/Themes/CURRENT

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Thyleus.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?

External/Themes/FullThemes/ThyleusTheme/$(BaseDir)/Settings/Themes/Thyleus.fdi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
### Thyleus.fdi
22

3+
# FD UI THEME (5.1+)
4+
5+
#OutputPanel.InfoColor=#808080
6+
#OutputPanel.DebugColor=#000000
7+
#OutputPanel.WarningColor=#ffa500
8+
#OutputPanel.ErrorColor=#ff0000
9+
#OutputPanel.FatalColor=#ff00ff
10+
#OutputPanel.ProcessStartColor=#ff0000
11+
#OutputPanel.ProcessEndColor=ff0000
12+
313
# FD UI THEME (5.0+)
414

515
# Use inherited base styles?
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
### NONE
22

3-
# FD UI THEME (5.0+)
3+
# FD UI THEME (5.1+)

0 commit comments

Comments
 (0)