refactor: Consolidate text color decorators and update related properties

This commit is contained in:
sha
2026-01-04 20:49:55 +00:00
parent 3f8b158135
commit 336b030a6b
11 changed files with 136 additions and 280 deletions
+4 -4
View File
@@ -92,14 +92,14 @@ class ProposedFilenameView:
@property
@conditional_decorators.wrap(">> ", " <<")
@text_decorators.green()
@text_decorators.colour(name="green")
def rename_line_similar(self) -> str:
"""Generate a simplified proposed filename for similarity checks."""
return escape(str(self))
@property
@conditional_decorators.wrap(">> ", " <<")
@text_decorators.orange()
@conditional_decorators.wrap(left=">> ", right=" <<")
@text_decorators.colour(name="orange")
def rename_line_different(self) -> str:
"""Generate a detailed proposed filename for difference checks."""
return escape(str(self))
return escape(str(self))