mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
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:
parent
d13eedee64
commit
c6151c2343
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue