mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fusion: rebranding
This commit is contained in:
parent
c2554b241e
commit
8befe94fcf
5 changed files with 16 additions and 19 deletions
|
|
@ -15,7 +15,7 @@ from .lib import (
|
||||||
update_frame_range
|
update_frame_range
|
||||||
)
|
)
|
||||||
|
|
||||||
from .menu import launch_pype_menu
|
from .menu import launch_openpype_menu
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
|
@ -34,5 +34,5 @@ __all__ = [
|
||||||
"update_frame_range",
|
"update_frame_range",
|
||||||
|
|
||||||
# menu
|
# menu
|
||||||
"launch_pype_menu",
|
"launch_openpype_menu",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,11 @@ class Spacer(QtWidgets.QWidget):
|
||||||
self.setLayout(layout)
|
self.setLayout(layout)
|
||||||
|
|
||||||
|
|
||||||
class PypeMenu(QtWidgets.QWidget):
|
class OpenPypeMenu(QtWidgets.QWidget):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(self.__class__, self).__init__(*args, **kwargs)
|
super(self.__class__, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.setObjectName("PypeMenu")
|
self.setObjectName("OpenPypeMenu")
|
||||||
|
|
||||||
self.setWindowFlags(
|
self.setWindowFlags(
|
||||||
QtCore.Qt.Window
|
QtCore.Qt.Window
|
||||||
|
|
@ -63,14 +63,14 @@ class PypeMenu(QtWidgets.QWidget):
|
||||||
| QtCore.Qt.WindowStaysOnTopHint
|
| QtCore.Qt.WindowStaysOnTopHint
|
||||||
)
|
)
|
||||||
self.render_mode_widget = None
|
self.render_mode_widget = None
|
||||||
self.setWindowTitle("Pype")
|
self.setWindowTitle("OpenPype")
|
||||||
workfiles_btn = QtWidgets.QPushButton("Workfiles", self)
|
workfiles_btn = QtWidgets.QPushButton("Workfiles ...", self)
|
||||||
create_btn = QtWidgets.QPushButton("Create", self)
|
create_btn = QtWidgets.QPushButton("Create ...", self)
|
||||||
publish_btn = QtWidgets.QPushButton("Publish", self)
|
publish_btn = QtWidgets.QPushButton("Publish ...", self)
|
||||||
load_btn = QtWidgets.QPushButton("Load", self)
|
load_btn = QtWidgets.QPushButton("Load ...", self)
|
||||||
inventory_btn = QtWidgets.QPushButton("Inventory", self)
|
inventory_btn = QtWidgets.QPushButton("Inventory ...", self)
|
||||||
libload_btn = QtWidgets.QPushButton("Library", self)
|
libload_btn = QtWidgets.QPushButton("Library ...", self)
|
||||||
rendermode_btn = QtWidgets.QPushButton("Set render mode", self)
|
rendermode_btn = QtWidgets.QPushButton("Set render mode ...", self)
|
||||||
duplicate_with_inputs_btn = QtWidgets.QPushButton(
|
duplicate_with_inputs_btn = QtWidgets.QPushButton(
|
||||||
"Duplicate with input connections", self
|
"Duplicate with input connections", self
|
||||||
)
|
)
|
||||||
|
|
@ -156,11 +156,11 @@ class PypeMenu(QtWidgets.QWidget):
|
||||||
print("Clicked Reset Resolution")
|
print("Clicked Reset Resolution")
|
||||||
|
|
||||||
|
|
||||||
def launch_pype_menu():
|
def launch_openpype_menu():
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
app.setQuitOnLastWindowClosed(False)
|
app.setQuitOnLastWindowClosed(False)
|
||||||
|
|
||||||
pype_menu = PypeMenu()
|
pype_menu = OpenPypeMenu()
|
||||||
|
|
||||||
stylesheet = load_stylesheet()
|
stylesheet = load_stylesheet()
|
||||||
pype_menu.setStyleSheet(stylesheet)
|
pype_menu.setStyleSheet(stylesheet)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ QPushButton:hover {
|
||||||
color: #e64b3d;
|
color: #e64b3d;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PypeMenu {
|
#OpenPypeMenu {
|
||||||
border: 1px solid #fef9ef;
|
border: 1px solid #fef9ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,6 @@ import pype.hosts.fusion
|
||||||
|
|
||||||
log = Logger().get_logger(__name__)
|
log = Logger().get_logger(__name__)
|
||||||
|
|
||||||
|
|
||||||
AVALON_CONFIG = os.getenv("AVALON_CONFIG", "pype")
|
|
||||||
|
|
||||||
HOST_DIR = os.path.dirname(os.path.abspath(pype.hosts.fusion.__file__))
|
HOST_DIR = os.path.dirname(os.path.abspath(pype.hosts.fusion.__file__))
|
||||||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ def main(env):
|
||||||
|
|
||||||
log.info(f"Avalon registred hosts: {avalon.api.registered_host()}")
|
log.info(f"Avalon registred hosts: {avalon.api.registered_host()}")
|
||||||
|
|
||||||
menu.launch_pype_menu()
|
menu.launch_openpype_menu()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Loading…
Add table
Add a link
Reference in a new issue