Add whitespace change detection utility and integrate into PatchTree. Enhanced PatchTree to count line changes specifically for Source properties, distinguishing between total and whitespace-only changes. Updated theme colors for visual representation of whitespace changes in the UI.

This commit is contained in:
Joe 2026-01-13 21:46:57 -06:00
parent 00872e65a4
commit 9bedbd70fd
4 changed files with 128 additions and 24 deletions

View file

@ -173,6 +173,8 @@ function StudioProvider:updateTheme()
Row = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
Warning = studioTheme:GetColor(Enum.StudioStyleGuideColor.WarningText),
WhitespaceOnly = if isDark then Color3.fromRGB(140, 140, 140) else Color3.fromRGB(110, 110, 110),
Changes = if isDark then Color3.fromRGB(100, 140, 220) else Color3.fromRGB(40, 100, 180),
Background = {
-- Studio doesn't have good colors since their diffs use backgrounds, not text