Skip to content

Commit

Permalink
A large code-overhaul of the beets ui:
Browse files Browse the repository at this point in the history
 - Allow user to change UI colors in config file.
 - "Change Representation" class allows Albums and Track
   matches to reuse similar formatting code
 - Functions to split text into lines for printing
 - Tests for the new UI to check wrapping functions
  • Loading branch information
JOJ0 committed Oct 14, 2023
1 parent 821e629 commit be290e5
Show file tree
Hide file tree
Showing 4 changed files with 1,005 additions and 323 deletions.
35 changes: 28 additions & 7 deletions beets/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,34 @@ ui:
length_diff_thresh: 10.0
color: yes
colors:
text_success: green
text_warning: yellow
text_error: red
text_highlight: red
text_highlight_minor: lightgray
action_default: turquoise
action: blue
text_success: ['bold', 'green']
text_warning: ['bold', 'yellow']
text_error: ['bold', 'red']
text_highlight: ['bold', 'red']
text_highlight_minor: ['white']
action_default: ['bold', 'cyan']
action: ['bold', 'blue']
# New Colors
text: ['normal']
text_faint: ['faint']
import_path: ['bold', 'inverse', 'blue']
import_path_items: ['bold', 'blue']
added: ['green']
removed: ['red']
changed: ['yellow']
added_highlight: ['bold', 'green']
removed_highlight: ['bold', 'red']
changed_highlight: ['bold', 'yellow']
text_diff_added: ['bold', 'red']
text_diff_removed: ['bold', 'red']
text_diff_changed: ['bold', 'red']
action_description: ['blue']
import:
indentation:
match_header: 2
match_details: 2
match_tracklist: 5
layout: column

format_item: $artist - $album - $title
format_album: $albumartist - $album
Expand Down

0 comments on commit be290e5

Please sign in to comment.