Skip to content

Commit 81fa0be

Browse files
committed
- Theming helper methods added
- New global theme settings added
1 parent 399cc6e commit 81fa0be

File tree

23 files changed

+80
-11
lines changed

23 files changed

+80
-11
lines changed

External/Plugins/ASCompletion/CustomControls/ModelsExplorer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ private void SetMatch(TreeNode node)
484484
lastMatch = node;
485485
if (lastMatch != null)
486486
{
487-
lastMatch.BackColor = SystemColors.Highlight;
488-
lastMatch.ForeColor = SystemColors.HighlightText;
487+
lastMatch.BackColor = PluginBase.MainForm.GetThemeColor("Global.Highlight", SystemColors.Highlight);
488+
lastMatch.ForeColor = PluginBase.MainForm.GetThemeColor("Global.HighlightText", SystemColors.HighlightText);
489489
outlineTreeView.SelectedNode = node;
490490
}
491491
}

External/Plugins/ASCompletion/PluginUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,8 @@ private void ShowAndHilightNode(TreeNode node, bool hilight)
10361036
if (hilight)
10371037
{
10381038
node.EnsureVisible();
1039-
node.ForeColor = SystemColors.HighlightText;
1040-
node.BackColor = SystemColors.Highlight;
1039+
node.BackColor = PluginBase.MainForm.GetThemeColor("Global.Highlight", SystemColors.Highlight);
1040+
node.ForeColor = PluginBase.MainForm.GetThemeColor("Global.HighlightText", SystemColors.HighlightText);
10411041
}
10421042
else
10431043
{

External/Plugins/ProjectManager/Helpers/TreeViews/DragDropTreeView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ private void HighlightTarget(TreeNode node)
194194
originalColor = node.BackColor;
195195
originalText = node.ForeColor;
196196
highlightedNode = node;
197-
highlightedNode.BackColor = SystemColors.Highlight;
198-
highlightedNode.ForeColor = SystemColors.HighlightText;
197+
highlightedNode.BackColor = PluginCore.PluginBase.MainForm.GetThemeColor("Global.Highlight", SystemColors.Highlight);
198+
highlightedNode.ForeColor = PluginCore.PluginBase.MainForm.GetThemeColor("Global.HighlightText", SystemColors.HighlightText);
199199
}
200200
}
201201

External/Plugins/ProjectManager/Helpers/TreeViews/MultiSelectTreeView.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,8 @@ private void PaintNode(TreeNode node)
290290
if (!originalColor.Contains(node))
291291
{
292292
originalColor[node] = node.ForeColor;
293-
node.BackColor = SystemColors.Highlight;
294-
node.ForeColor = SystemColors.HighlightText;
295-
293+
node.BackColor = PluginCore.PluginBase.MainForm.GetThemeColor("Global.Highlight", SystemColors.Highlight);
294+
node.ForeColor = PluginCore.PluginBase.MainForm.GetThemeColor("Global.HighlightText", SystemColors.HighlightText);
296295
MultiSelectTreeNode mNode = node as MultiSelectTreeNode;
297296
if (mNode != null) mNode.Painted = true;
298297
}

External/Plugins/ResultsPanel/PluginUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ public void NextEntry(Object sender, System.EventArgs e)
947947
this.entryIndex = (this.entryIndex + 1) % this.entriesView.Items.Count;
948948
this.entriesView.SelectedItems.Clear();
949949
this.entriesView.Items[this.entryIndex].Selected = true;
950-
this.entriesView.Items[this.entryIndex].ForeColor = Color.Blue;
950+
this.entriesView.Items[this.entryIndex].ForeColor = PluginBase.MainForm.GetThemeColor("Global.Highlight", Color.Blue);
951951
this.entriesView.EnsureVisible(this.entryIndex);
952952
this.EntriesViewDoubleClick(null, null);
953953
}
@@ -965,7 +965,7 @@ public void PreviousEntry(Object sender, System.EventArgs e)
965965
if (--this.entryIndex < 0) this.entryIndex = this.entriesView.Items.Count - 1;
966966
this.entriesView.SelectedItems.Clear();
967967
this.entriesView.Items[this.entryIndex].Selected = true;
968-
this.entriesView.Items[this.entryIndex].ForeColor = Color.Blue;
968+
this.entriesView.Items[this.entryIndex].ForeColor = PluginBase.MainForm.GetThemeColor("Global.Highlight", Color.Blue);
969969
this.entriesView.EnsureVisible(this.entryIndex);
970970
this.EntriesViewDoubleClick(null, null);
971971
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# FD UI THEME (5.1+)
44

5+
# In: Projects, Results, Outline, Models
6+
#Global.Highlight=#3399ff
7+
#Global.HighlightText=#ffffff
8+
59
#OutputPanel.InfoColor=#808080
610
#OutputPanel.DebugColor=#000000
711
#OutputPanel.WarningColor=#ffa500

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# FD UI THEME (5.1+)
44

5+
# In: Projects, Results, Outline, Models
6+
#Global.Highlight=#3399ff
7+
#Global.HighlightText=#ffffff
8+
59
#OutputPanel.InfoColor=#808080
610
#OutputPanel.DebugColor=#000000
711
#OutputPanel.WarningColor=#ffa500

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# FD UI THEME (5.1+)
44

5+
# In: Projects, Results, Outline, Models
6+
#Global.Highlight=#3399ff
7+
#Global.HighlightText=#ffffff
8+
59
#OutputPanel.InfoColor=#808080
610
#OutputPanel.DebugColor=#000000
711
#OutputPanel.WarningColor=#ffa500

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# FD UI THEME (5.1+)
44

5+
# In: Projects, Results, Outline, Models
6+
#Global.Highlight=#3399ff
7+
#Global.HighlightText=#ffffff
8+
59
#OutputPanel.InfoColor=#808080
610
#OutputPanel.DebugColor=#000000
711
#OutputPanel.WarningColor=#ffa500

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# FD UI THEME (5.1+)
44

5+
# In: Projects, Results, Outline, Models
6+
#Global.Highlight=#3399ff
7+
#Global.HighlightText=#ffffff
8+
59
#OutputPanel.InfoColor=#808080
610
#OutputPanel.DebugColor=#000000
711
#OutputPanel.WarningColor=#ffa500

0 commit comments

Comments
 (0)