Restyling of the save to toolpath button

The save to button only shows a short description, not the entire description including device-name.

Contributes to #54
This commit is contained in:
Tamara Hogenhout 2015-06-25 18:38:43 +02:00
parent d13eedee64
commit c6151c2343
3 changed files with 5 additions and 2 deletions

View file

@ -117,6 +117,7 @@ class CuraApplication(QtApplication):
"id": "local_file",
"function": self._writeToLocalFile,
"description": self._i18n_catalog.i18nc("Save button tooltip", "Save to Disk"),
"shortDescription": "Save to Disk",
"icon": "save",
"priority": 0
})
@ -442,6 +443,7 @@ class CuraApplication(QtApplication):
"id": drive,
"function": self._writeToSD,
"description": self._i18n_catalog.i18nc("Save button tooltip. {0} is sd card name", "Save to SD Card {0}").format(drive),
"shortDescription": "Save to SD Card",
"icon": "save_sd",
"priority": 1
})

View file

@ -224,7 +224,8 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
Application.getInstance().addOutputDevice(serial_port, {
"id": serial_port,
"function": self.spawnControlInterface,
"description": "Write to USB {0}".format(serial_port),
"description": "Print through USB {0}".format(serial_port),
"shortDescription": "Print through USB",
"icon": "print_usb",
"priority": 1
})

View file

@ -147,7 +147,7 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
color: UM.Theme.colors.save_button_safe_to_text;
font: UM.Theme.fonts.sidebar_save_to;
text: Printer.outputDevices[base.currentDevice].description;
text: Printer.outputDevices[base.currentDevice].shortDescription;
}
}
}