Skip to content

Commit

Permalink
AudioThumbnail.png => AudioThumbnail.svg
Browse files Browse the repository at this point in the history
- The .png file only exists in the Qt resource file, since the
  image resources were moved out of the packaged tree.
  The SVG version is still present in src/images/.
  • Loading branch information
ferdnyc committed Sep 8, 2020
1 parent 67f62e5 commit 7a9ba71
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/timeline/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ App.controller("TimelineCtrl", function ($scope) {
var has_video = clip["reader"]["has_video"];
var has_audio = clip["reader"]["has_audio"];
if (!has_video && has_audio) {
return "../images/AudioThumbnail.png";
return "../images/AudioThumbnail.svg";
}
var file_fps = clip["reader"]["fps"]["num"] / clip["reader"]["fps"]["den"];
return $scope.ThumbServer + clip.file_id + "/" + ((file_fps * clip.start) + 1) + "/";
Expand Down
2 changes: 1 addition & 1 deletion src/windows/add_to_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def accept(self):
thumb_path = os.path.join(info.THUMBNAIL_PATH, "%s.png" % file.data["id"])
else:
# Audio file
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.png")
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.svg")

# Get file name
filename = os.path.basename(file.data["path"])
Expand Down
14 changes: 7 additions & 7 deletions src/windows/models/add_to_timeline_model.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
"""
"""
@file
@brief This file contains the add to timeline model
@author Jonathan Thomas <jonathan@openshot.org>
@section LICENSE
Copyright (c) 2008-2018 OpenShot Studios, LLC
(http://www.openshotstudios.com). This file is part of
OpenShot Video Editor (http://www.openshot.org), an open-source project
dedicated to delivering high quality video editing and animation solutions
to the world.
OpenShot Video Editor is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenShot Video Editor is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
"""
Expand Down Expand Up @@ -69,7 +69,7 @@ def update_model(self, files=[], clear=True):
thumb_path = os.path.join(info.THUMBNAIL_PATH, "%s.png" % file.data["id"])
else:
# Audio file
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.png")
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.svg")

row = []

Expand Down
2 changes: 1 addition & 1 deletion src/windows/models/files_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def update_model(self, clear=True, delete_file_id=None):
thumb_path = self.get_thumb_path(file.id, thumbnail_frame)
else:
# Audio file
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.png")
thumb_path = os.path.join(info.PATH, "images", "AudioThumbnail.svg")

row = []

Expand Down

0 comments on commit 7a9ba71

Please sign in to comment.