Highlight Open button when no files are loaded

This helps with first-run to make it clear where to start.

Fixes #37
This commit is contained in:
Tamara Hogenhout 2015-06-10 14:57:37 +02:00
parent 74cf027421
commit 5f24b70453
2 changed files with 51 additions and 1 deletions

View file

@ -192,7 +192,7 @@ UM.MainWindow {
id: openFileButton;
iconSource: UM.Theme.icons.open;
style: UM.Theme.styles.tool_button;
style: UM.Backend.progress < 0 ? UM.Theme.styles.open_file_button : UM.Theme.styles.tool_button;
anchors {
top: parent.top;
@ -433,3 +433,4 @@ UM.MainWindow {
Component.onCompleted: UM.Theme.load(UM.Resources.getPath(UM.Resources.ThemesLocation, "cura"))
}