From 4d5181ef1827a4d7918687928e769f4f4202cdae Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Wed, 14 Oct 2020 09:18:06 +0200 Subject: [PATCH] Added repeat icon and fixed css path --- res/repeat-sign.svg | 1 + res/song.css | 4 ++-- src/latex_scanner.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 res/repeat-sign.svg diff --git a/res/repeat-sign.svg b/res/repeat-sign.svg new file mode 100644 index 0000000..1d0740b --- /dev/null +++ b/res/repeat-sign.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/res/song.css b/res/song.css index 80a15a7..e63f9e1 100644 --- a/res/song.css +++ b/res/song.css @@ -39,14 +39,14 @@ table.chordedline { transform: scaleX(-1); filter: FlipV; -ms-filter: "FlipV"; - background-image: url(img/repeat-sign.svg); + background-image: url(repeat-sign.svg); display: inline-block; width: 1em; height: 2em; } .rrep { - background-image: url(img/repeat-sign.svg); + background-image: url(repeat-sign.svg); display: inline-block; width: 1em; height: 2em; diff --git a/src/latex_scanner.py b/src/latex_scanner.py index b08668d..4460783 100644 --- a/src/latex_scanner.py +++ b/src/latex_scanner.py @@ -255,7 +255,7 @@ class SongLoader: def copy_static(source_dir, target_dir): for f in os.listdir(source_dir): - if re.search(r"\.(css|js)$", f): + if re.search(r"\.(css|js|svg)$", f): shutil.copy2(join(source_dir, f), target_dir)