Commit 9eb0a690 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch '263_application_icon' into 'master'

Application icon

Closes #263

See merge request !136
parents c2875a0e 4f59be4d
Pipeline #40545 passed with stages
in 25 minutes and 58 seconds
This diff is collapsed.
......@@ -36,6 +36,7 @@ import pkg_resources
from click_plugins import with_plugins
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from beat.cmdline import environments
......@@ -136,6 +137,7 @@ def start(ctx):
if not check_prefix(config.prefix):
return
app.setWindowIcon(QIcon(":/resources/appicon"))
app.installEventFilter(MouseWheelFilter(app))
mainwindow = MainWindow()
mainwindow.set_context(ctx)
......@@ -161,6 +163,7 @@ def edit(ctx, asset_type, asset_name):
"""Edit one specific asset"""
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(":/resources/appicon"))
asset_widget = AssetWidget()
asset_widget.set_context(ctx)
......
......@@ -8,5 +8,6 @@
<file alias="loop">resources/img/loop.png</file>
<file alias="analyzer">resources/img/analyzer.png</file>
<file alias="toolchain_style_config">resources/json/toolchain_style_config.json</file>
<file alias="appicon">resources/img/appicon.svg</file>
</qresource>
</RCC>
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment