mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
move spinner svg into openpype
This commit is contained in:
parent
cd1e764da6
commit
4f8129acfa
2 changed files with 9 additions and 6 deletions
6
openpype/resources/images/spinner-200.svg
Normal file
6
openpype/resources/images/spinner-200.svg
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: none; display: block; shape-rendering: auto;" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
|
||||
<path d="M5 50A45 45 0 0 0 95 50A45 47 0 0 1 5 50" fill="#6c6c6c" stroke="none" transform="rotate(312.01 50 51)">
|
||||
<animateTransform attributeName="transform" type="rotate" dur="0.47846889952153115s" repeatCount="indefinite" keyTimes="0;1" values="0 50 51;360 50 51"></animateTransform>
|
||||
</path>
|
||||
<!-- [ldio] generated by https://loading.io/ --></svg>
|
||||
|
After Width: | Height: | Size: 635 B |
|
|
@ -1,5 +1,5 @@
|
|||
import os
|
||||
from avalon import style
|
||||
from openpype.resources import get_image_path
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtSvg
|
||||
|
||||
|
||||
|
|
@ -24,11 +24,8 @@ class TreeViewSpinner(QtWidgets.QTreeView):
|
|||
def __init__(self, parent=None):
|
||||
super(TreeViewSpinner, self).__init__(parent=parent)
|
||||
|
||||
loading_image_path = os.path.join(
|
||||
os.path.dirname(os.path.abspath(style.__file__)),
|
||||
"svg",
|
||||
"spinner-200.svg"
|
||||
)
|
||||
loading_image_path = get_image_path("spinner-200.svg")
|
||||
|
||||
self.spinner = QtSvg.QSvgRenderer(loading_image_path)
|
||||
|
||||
self.is_loading = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue