Skip to content

Commit 166e749

Browse files
authored
Merge pull request #4292 from IvenBach/Issue4155
Allow resizing of fonts in CodeExplorer
2 parents 6c1679b + dec571a commit 166e749

File tree

5 files changed

+127
-69
lines changed

5 files changed

+127
-69
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,23 @@ private void SwitchNodeState(CodeExplorerItemViewModel node, bool expandedState)
479479
SwitchNodeState(item, expandedState);
480480
}
481481
}
482-
483482

483+
public ObservableCollection<double> FontSizes { get; } = new ObservableCollection<double> { 8, 10, 12, 14, 16 };
484+
485+
private double _fontSize = 10;
486+
public double FontSize
487+
{
488+
get => _fontSize;
489+
set
490+
{
491+
if (!_fontSize.Equals(value))
492+
{
493+
_fontSize = value;
494+
OnPropertyChanged();
495+
}
496+
}
497+
}
498+
484499
public ReparseCommand RefreshCommand { get; set; }
485500

486501
public OpenCommand OpenCommand { get; set; }

0 commit comments

Comments
 (0)