Skip to content

Commit 155a21d

Browse files
committed
Fixing AppImage button icon paths for Play/Pause button
1 parent 845af9b commit 155a21d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/themes/cosmic/theme.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@
2525
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
2626
"""
2727

28-
from ..base import BaseTheme
28+
import os
29+
2930
from PyQt5.QtCore import Qt
30-
from PyQt5.QtWidgets import QTabWidget, QWidget
3131
from PyQt5.QtGui import QIcon
32+
from PyQt5.QtWidgets import QTabWidget, QWidget
33+
34+
from classes.info import PATH
35+
from ..base import BaseTheme
3236

3337

3438
class CosmicTheme(BaseTheme):
@@ -640,6 +644,8 @@ def togglePlayIcon(self, isPlay):
640644
button = self.app.window.videoToolbar.widgetForAction(self.app.window.actionPlay)
641645
if button:
642646
if not isPlay:
643-
button.setIcon(QIcon("themes/cosmic/images/tool-media-play.svg"))
647+
play_icon_path = os.path.join(PATH, "themes/cosmic/images/tool-media-play.svg")
648+
button.setIcon(QIcon(play_icon_path))
644649
else:
645-
button.setIcon(QIcon("themes/cosmic/images/tool-media-pause.svg"))
650+
pause_icon_path = os.path.join(PATH, "themes/cosmic/images/tool-media-pause.svg")
651+
button.setIcon(QIcon(pause_icon_path))

0 commit comments

Comments
 (0)