File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 25
25
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
26
26
"""
27
27
28
- from ..base import BaseTheme
28
+ import os
29
+
29
30
from PyQt5 .QtCore import Qt
30
- from PyQt5 .QtWidgets import QTabWidget , QWidget
31
31
from PyQt5 .QtGui import QIcon
32
+ from PyQt5 .QtWidgets import QTabWidget , QWidget
33
+
34
+ from classes .info import PATH
35
+ from ..base import BaseTheme
32
36
33
37
34
38
class CosmicTheme (BaseTheme ):
@@ -640,6 +644,8 @@ def togglePlayIcon(self, isPlay):
640
644
button = self .app .window .videoToolbar .widgetForAction (self .app .window .actionPlay )
641
645
if button :
642
646
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 ))
644
649
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 ))
You can’t perform that action at this time.
0 commit comments