Skip to content

Commit

Permalink
try to fix stylesheets for linux / mac
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Oct 12, 2021
1 parent 7e3999a commit c8f855a
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 163 deletions.
8 changes: 7 additions & 1 deletion fastflix/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ def start_app(worker_queue, status_queue, log_queue, queue_list, queue_lock):
file = QtCore.QFile(f"{app.fastflix.config.theme}:stylesheet.qss")
file.open(QtCore.QFile.OpenModeFlag.ReadOnly | QtCore.QFile.OpenModeFlag.Text)
stream = QtCore.QTextStream(file)
app.setStyleSheet(stream.readAll().replace("{{base_dir}}", str(breeze_styles_path)))
data = stream.readAll()
if not reusables.win_based:
data = data.replace("url(dark:", f"url({str(breeze_styles_path / 'dark')}/")
data = data.replace("url(light:", f"url({str(breeze_styles_path / 'light')}/")
data = data.replace("url(onyx:", f"url({str(breeze_styles_path / 'onyx')}/")

app.setStyleSheet(data)

logger.setLevel(app.fastflix.config.logging_level)

Expand Down
Binary file modified fastflix/data/icons/white/onyx-magnifier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c8f855a

Please sign in to comment.