Skip to content

Commit

Permalink
Merge pull request getavalon#11 from pypeclub/feature/PYPE-310_launch…
Browse files Browse the repository at this point in the history
…er_update

Feature/pype 310 launcher update
  • Loading branch information
mkolar authored May 7, 2019
2 parents 09ed7be + 56f12c5 commit 397146e
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions launcher/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def __init__(self, root, source):
install()

terminal.init()
app_root = os.environ['PYPE_APP_ROOT'].replace('\\', '/')
res_path = "file:///{}/resources/".format(app_root)
app_root = os.path.dirname(__file__).replace('\\', '/')
res_path = "file:///{}/res/".format(app_root)

controller = control.Controller(root, self)
engine.rootContext().setContextProperty("controller", controller)
Expand Down
4 changes: 2 additions & 2 deletions launcher/launcher_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __init__(self, root, source):
install()

terminal.init()
app_root = os.environ['PYPE_APP_ROOT'].replace('\\', '/')
res_path = "file:///{}/resources/".format(app_root)
app_root = os.path.dirname(__file__).replace('\\', '/')
res_path = "file:///{}/res/".format(app_root)

controller = control.Controller(root, self)
engine.rootContext().setContextProperty("controller", controller)
Expand Down
Binary file added launcher/res/action_icons/clockify-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/clockify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/houdini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/maya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/nuke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/premiere.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added launcher/res/action_icons/python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion launcher/res/qml/Breadcrumbs.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Item {
name: "home"
size: 18
}

background: Item { } // Hide background
height: parent.height
width: parent.height
onClicked: controller.pop(-1)
Expand Down
4 changes: 2 additions & 2 deletions launcher/res/qml/MyButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import QtQuick.Controls 2.0
Button {
id: control

property var icon: "adjust"
property var cust_icon: "adjust"

background: Rectangle {
color: "transparent"
}

AwesomeIcon {
anchors.fill: parent
name: control.icon
name: control.cust_icon
opacity: !control.checkable ? 1.0 : control.checked ? 1.0 : 0.4
}
}
8 changes: 4 additions & 4 deletions launcher/res/qml/icons.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.pragma library

var map = {
"nuke_icon": "icons/nuke.png",
"maya_icon": "icons/maya.png",
"houdini_icon": "icons/houdini.png",
"python_icon": "icons/python.png",
"nuke_icon": "action_icons/nuke.png",
"maya_icon": "action_icons/maya.png",
"houdini_icon": "action_icons/houdini.png",
"python_icon": "action_icons/python.png",
}
6 changes: 3 additions & 3 deletions launcher/res/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ApplicationWindow {
id: launchExplorerButton
implicitWidth: parent.height
implicitHeight: parent.height
icon: "folder-open"
cust_icon: "folder-open"
Layout.alignment: Qt.AlignLeft

onClicked: controller.launch_explorer()
Expand All @@ -99,7 +99,7 @@ ApplicationWindow {
*/
MyButton {
id: terminalButton
icon: "terminal"
cust_icon: "terminal"
checkable: true
implicitHeight: parent.height
implicitWidth: parent.height
Expand All @@ -115,7 +115,7 @@ ApplicationWindow {
implicitWidth: parent.height
implicitHeight: parent.height
checkable: true
icon: "adjust"
cust_icon: "adjust"
Layout.alignment: Qt.AlignRight
}
}
Expand Down

0 comments on commit 397146e

Please sign in to comment.