Commit graph

5538 commits

Author SHA1 Message Date
Maximilian Merz
6de8e5423c Add ChangeRepresentation class
The class should make it easier to handle state when showing a change.

- Move show_match_header and show_match_details to the new class.
2018-04-01 17:29:21 +02:00
Maximilian Merz
275931ecc7 Use unicode string when showing empty artist 2018-04-01 17:19:39 +02:00
Maximilian Merz
9232e1528a Improve comments 2018-04-01 17:18:38 +02:00
Maximilian Merz
df2d7adc24 Modify disambig_string to return colorized string 2018-04-01 17:17:12 +02:00
Maximilian Merz
1df0689e26 Whitespace 2018-04-01 12:10:18 +02:00
Maximilian Merz
26c2e1f862 Simplify handling of overlong last lines in split_into_lines
Instead of sometimes moving the last word in the last line, just always add an empty line as the new last line.
2018-04-01 12:10:06 +02:00
Maximilian Merz
ac03469c72 Improve comments in ui/__init__.py 2018-04-01 12:09:50 +02:00
Maximilian Merz
de7717efaa Refactor mapper functions in _colordiff
Create color mapper functions outside of the forloop.
2018-04-01 12:09:33 +02:00
Maximilian Merz
bd0b564012 Remove unused kwargs from colordiff and _colordiff 2018-04-01 12:08:54 +02:00
Maximilian Merz
87c38c18e9 add indentation to info dict
- add 'changed' key to info dict to indicate whether rhs should be displayed at all
2016-02-20 16:46:18 +01:00
Maximilian Merz
36f53ef00b move format_index to show_match_tracks 2016-02-19 17:20:42 +01:00
Maximilian Merz
8f578e4495 new make_line method
- move construction of lhs and rhs dicts to make_line
- move make_track_titles, make_track_numbers, and make_track_lengths to make_line
2016-02-19 12:59:53 +01:00
Maximilian Merz
1b424db7bc restructure format_tracks_as_columns 2016-02-19 12:59:04 +01:00
Maximilian Merz
0b1ba738ba minor whitespace change 2016-02-18 19:47:35 +01:00
Maximilian Merz
9a50224500 remove unused show_album(artist, album) 2016-02-18 19:47:14 +01:00
Maximilian Merz
1584c0720c move two methods into show_match_tracks() 2016-02-18 19:46:40 +01:00
Maximilian Merz
55493a1605 fixup comment 2016-01-27 14:46:06 +01:00
Maximilian Merz
d36fcec095 minor fixup and reordering 2016-01-25 17:35:19 +01:00
Maximilian Merz
7a8194c6f3 move column width calculation and line to new funs
- change line data model: now tuple of (info, lhs, rhs) instead of (prefix, lhs, rhs, lhs_width, rhs_width). info is a dict
2016-01-25 17:34:53 +01:00
Maximilian Merz
f3c766d084 add uncolorize and color_len functions 2016-01-25 17:28:54 +01:00
Maximilian Merz
c88f560572 fixup unicode errors 2016-01-25 17:28:10 +01:00
Maximilian Merz
605b73181c split show_change method into parts 2016-01-23 17:19:57 +01:00
Maximilian Merz
7c8ac73e5f change string to unicode; add whitespace 2016-01-23 17:17:21 +01:00
Maximilian Merz
0bb39799a4 refactor printing the match header 2016-01-23 13:04:50 +01:00
Maximilian Merz
69e2f3afd1 UI: refactor calculation of available columns 2015-11-17 21:24:38 +01:00
Maximilian Merz
9a4a15f815 UI: fixup track # alignment in column view 2015-11-17 21:24:07 +01:00
Maximilian Merz
c593327b2a UI: refactor code for change of track # or length 2015-11-17 21:22:15 +01:00
Maximilian Merz
8f44173fd6 UI: cleanup: colorize functions
- reintroduce support for legacy colors
- replace DARK_COLORS and LIGHT_COLORS with LEGACY_COLORS and map color names onto their counterpart in the new “advanced” color definition system
- also continue to support new “advanced” colors
- cleaner code (at least I think so)
2015-11-17 20:43:50 +01:00
Maximilian Merz
3ce0638077 UI: fixup typo in comment, remove debug statement 2015-11-17 20:41:54 +01:00
Maximilian Merz
bd34709499 UI: add text, text_faint colors 2015-11-17 20:41:05 +01:00
Maximilian Merz
6a006ede8f UI: change default configs for import layout 2015-11-01 23:10:24 +01:00
Maximilian Merz
3356afb2c5 UI: Always show disk info in tracklist 2015-11-01 23:08:37 +01:00
Maximilian Merz
ced7dc48ee UI: Add config options to set match indentation 2015-11-01 22:29:47 +01:00
Maximilian Merz
42f55b1bba UI: Implement two layouts for track changes 2015-11-01 21:17:41 +01:00
Maximilian Merz
e9caa7a6f7 UI: Apply ANSI styles to import task path string 2015-11-01 19:25:19 +01:00
Maximilian Merz
d70802286c UI: Change candidate selection view 2015-11-01 19:23:55 +01:00
Maximilian Merz
c541ec8229 UI: Change show_change header style
- more concise format
2015-11-01 19:18:27 +01:00
Maximilian Merz
238efe525c UI: Prefix penalties string with NOT EQUAL TO sign 2015-11-01 19:17:15 +01:00
Maximilian Merz
daf635a96b UI: Add dist_colorize function
- colors arbitrary strings according to a distance
- refactor dest_string
2015-11-01 19:16:09 +01:00
Maximilian Merz
6a556c95d1 UI: Separate disambiguation elements with pipe 2015-11-01 19:14:16 +01:00
Maximilian Merz
6b1f215738 UI: place ANSI codes at word borders in _colordiff
- when linebreaking, ANSI codes should end at word borders
- this removes change markers for whitespace!
2015-11-01 19:13:17 +01:00
Maximilian Merz
f43a5c8b56 UI: fixup color names 2015-11-01 19:11:04 +01:00
Maximilian Merz
6bb68983ab UI: Colorize prompt 2015-11-01 19:10:07 +01:00
Maximilian Merz
1cf39db538 UI: Add ui.indent() method
for easy indentation and alignment
2015-11-01 19:09:22 +01:00
Maximilian Merz
a9ed100012 UI: Add more ANSI colors
- Add ANSI styles, colors and background-colors
- Modify colorize functions to adopt new colors
- Modify default configuration to adopt new color scheme:
   - Define colors by arrays with their ANSI codes as strings
- Deprecated DARK_COLORS and LIGHT_COLORS
2015-11-01 17:25:27 +01:00
Adrian Sampson
5f5a8946c3 convert: Debug log when embedding images
To help diagnose #1671.
2015-10-30 15:25:01 -04:00
Adrian Sampson
16ad174d29 A debug message for ReplayGain 2015-10-29 17:43:31 -04:00
Frederik “Freso” S. Olesen
0fbd8d2dfb lastgenre: Clean up of the reggae related genres.
Fixes #1661.
2015-10-29 05:06:40 +01:00
Frederik “Freso” S. Olesen
41cbb47918 Add changelog entry for #1661. 2015-10-29 05:04:59 +01:00
Frederik “Freso” S. Olesen
5f5365021d lastgenre: Clean up Spanish reggae in the genre list.
* Add missing subgenres to whitelist and tree.
* Use proper terminology.
  * Add English term as child of Spanish one.

Source: https://en.wikipedia.org/wiki/Reggae_en_Espa%C3%B1ol
2015-10-29 05:00:33 +01:00