Skip to content

Commit

Permalink
macos fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ozmartian committed Aug 18, 2018
1 parent 7eeedbe commit 8fcef6d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion _build/pyinstaller/build.pyinstaller.osx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

rm -rf build dist
python3 -m pip install pyopengl
python3 -m PyInstaller --clean vidcutter.osx.spec
2 changes: 1 addition & 1 deletion _build/pyinstaller/vidcutter.osx.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ a = Analysis(['../../vidcutter/__main__.py'],
('../../README.md', '.'),
('../../bin/*', 'bin')
],
hiddenimports=[],
hiddenimports=['PyQt5.sip'],
hookspath=[],
runtime_hooks=[],
excludes=['numpy'],
Expand Down
4 changes: 2 additions & 2 deletions vidcutter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ def main():
QSurfaceFormat.setDefaultFormat(fmt)
QGuiApplication.setAttribute(Qt.AA_ShareOpenGLContexts, True)

if sys.platform == 'darwin':
qApp.setStyle('Fusion')
# if sys.platform == 'darwin':
# qApp.setStyle('Fusion')

app = SingleApplication(vidcutter.__appid__, sys.argv)
app.setApplicationName(vidcutter.__appname__)
Expand Down
2 changes: 1 addition & 1 deletion vidcutter/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def __init__(self, service: VideoService, parent: QWidget, flags=Qt.WindowCloseB
self.settings = self.parent.settings
self.theme = self.parent.theme
self.setObjectName('settingsdialog')
if sys.platform == 'win32':
if sys.platform in {'win32', 'darwin'}:
self.setStyle(QStyleFactory.create('Fusion'))
self.setWindowTitle('Settings')
self.categories = QListWidget(self)
Expand Down
2 changes: 0 additions & 2 deletions vidcutter/videocutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def __init__(self, parent: QMainWindow):
self.volSlider = VCVolumeSlider(orientation=Qt.Horizontal, toolTip='Volume', statusTip='Adjust volume level',
cursor=Qt.PointingHandCursor, value=self.parent.startupvol, minimum=0,
maximum=130, minimumHeight=22, sliderMoved=self.setVolume)
if sys.platform == 'darwin':
self.volSlider.setStyle(QStyleFactory.create('Macintosh'))

# noinspection PyArgumentList
self.fullscreenButton = QPushButton(objectName='fullscreenButton', icon=self.fullscreenIcon, flat=True,
Expand Down

0 comments on commit 8fcef6d

Please sign in to comment.