mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Merge branch 'master' of https://github.com/Ultimaker/Cura
This commit is contained in:
commit
5cab8b9467
27 changed files with 47 additions and 64 deletions
|
|
@ -43,7 +43,7 @@ Item {
|
|||
Action {
|
||||
id: undoAction;
|
||||
//: Undo action
|
||||
text: qsTr("&Undo");
|
||||
text: qsTr("Undo");
|
||||
iconName: "edit-undo";
|
||||
shortcut: StandardKey.Undo;
|
||||
}
|
||||
|
|
@ -51,7 +51,7 @@ Item {
|
|||
Action {
|
||||
id: redoAction;
|
||||
//: Redo action
|
||||
text: qsTr("&Redo");
|
||||
text: qsTr("Redo");
|
||||
iconName: "edit-redo";
|
||||
shortcut: StandardKey.Redo;
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ Item {
|
|||
Action {
|
||||
id: quitAction;
|
||||
//: Quit action
|
||||
text: qsTr("&Quit");
|
||||
text: qsTr("Quit");
|
||||
iconName: "application-exit";
|
||||
shortcut: StandardKey.Quit;
|
||||
}
|
||||
|
|
@ -67,20 +67,20 @@ Item {
|
|||
Action {
|
||||
id: preferencesAction;
|
||||
//: Preferences action
|
||||
text: qsTr("&Preferences...");
|
||||
text: qsTr("Preferences...");
|
||||
iconName: "configure";
|
||||
}
|
||||
|
||||
Action {
|
||||
id: addMachineAction;
|
||||
//: Add Printer action
|
||||
text: qsTr("&Add Printer...");
|
||||
text: qsTr("Add Printer...");
|
||||
}
|
||||
|
||||
Action {
|
||||
id: settingsAction;
|
||||
//: Configure Printers action
|
||||
text: qsTr("&Configure Printers");
|
||||
text: qsTr("Configure Printers");
|
||||
iconName: "configure";
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ Item {
|
|||
Action {
|
||||
id: aboutAction;
|
||||
//: About action
|
||||
text: qsTr("&About...");
|
||||
text: qsTr("About...");
|
||||
iconName: "help-about";
|
||||
}
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ Item {
|
|||
Action {
|
||||
id: openAction;
|
||||
//: Open file action
|
||||
text: qsTr("&Open...");
|
||||
text: qsTr("Load file");
|
||||
iconName: "document-open";
|
||||
shortcut: StandardKey.Open;
|
||||
}
|
||||
|
|
@ -198,7 +198,7 @@ Item {
|
|||
Action {
|
||||
id: saveAction;
|
||||
//: Save file action
|
||||
text: qsTr("&Save...");
|
||||
text: qsTr("Save...");
|
||||
iconName: "document-save";
|
||||
shortcut: StandardKey.Save;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,17 +239,15 @@ UM.MainWindow {
|
|||
|
||||
Button {
|
||||
id: openFileButton;
|
||||
|
||||
iconSource: UM.Theme.icons.open;
|
||||
style: UM.Backend.progress < 0 ? UM.Theme.styles.open_file_button : UM.Theme.styles.tool_button;
|
||||
//style: UM.Backend.progress < 0 ? UM.Theme.styles.open_file_button : UM.Theme.styles.tool_button;
|
||||
style: UM.Theme.styles.open_file_button
|
||||
tooltip: '';
|
||||
anchors {
|
||||
top: parent.top;
|
||||
topMargin: UM.Theme.sizes.window_margin.height;
|
||||
topMargin: UM.Theme.sizes.loadfile_margin.height
|
||||
left: parent.left;
|
||||
leftMargin: UM.Theme.sizes.window_margin.width;
|
||||
leftMargin: UM.Theme.sizes.loadfile_margin.width
|
||||
}
|
||||
|
||||
action: actions.open;
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
resources/themes/cura/fonts/ProximaNova-Black.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-Black.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-Bold.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-Bold.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-BoldIt.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-BoldIt.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-Extrabold.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-Extrabold.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-Light.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-Light.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-LightItalic.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-LightItalic.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-Regular.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-Regular.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNova-RegularItalic.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNova-RegularItalic.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNovaCond-Light.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNovaCond-Light.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNovaCond-LightIt.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNovaCond-LightIt.otf
Normal file
Binary file not shown.
BIN
resources/themes/cura/fonts/ProximaNovaCond-Regular.otf
Normal file
BIN
resources/themes/cura/fonts/ProximaNovaCond-Regular.otf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -35,54 +35,32 @@ QtObject {
|
|||
}
|
||||
}
|
||||
|
||||
property Component open_file_button: Component {
|
||||
property Component open_file_button: Component {
|
||||
ButtonStyle {
|
||||
background: Item {
|
||||
implicitWidth: UM.Theme.sizes.button.width;
|
||||
implicitHeight: UM.Theme.sizes.button.height;
|
||||
|
||||
background: Item{
|
||||
implicitWidth: UM.Theme.sizes.loadfile_button.width
|
||||
implicitHeight: UM.Theme.sizes.loadfile_button.height
|
||||
Rectangle {
|
||||
anchors.bottom: parent.verticalCenter;
|
||||
width: parent.width;
|
||||
height: control.hovered ? parent.height / 2 + label.height : 0;
|
||||
Behavior on height { NumberAnimation { duration: 100; } }
|
||||
|
||||
opacity: control.hovered ? 1.0 : 0.0;
|
||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
||||
|
||||
Label {
|
||||
id: label;
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
text: control.text.replace("&", "");
|
||||
font: UM.Theme.fonts.button_tooltip;
|
||||
color: UM.Theme.colors.button_tooltip_text;
|
||||
}
|
||||
}
|
||||
|
||||
UM.AngledCornerRectangle {
|
||||
anchors.fill: parent;
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
color: {
|
||||
if(control.hovered) {
|
||||
return UM.Theme.colors.button_active_hover;
|
||||
return UM.Theme.colors.open_file_button_hover
|
||||
} else {
|
||||
return UM.Theme.colors.button_active;
|
||||
return UM.Theme.colors.open_file_button
|
||||
}
|
||||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||
}
|
||||
Label {
|
||||
anchors.centerIn: parent
|
||||
text: control.text
|
||||
color: UM.Theme.colors.open_file_button_text
|
||||
font: UM.Theme.fonts.default
|
||||
}
|
||||
}
|
||||
|
||||
label: Item {
|
||||
Image {
|
||||
anchors.centerIn: parent;
|
||||
|
||||
source: control.iconSource;
|
||||
width: UM.Theme.sizes.button_icon.width;
|
||||
height: UM.Theme.sizes.button_icon.height;
|
||||
|
||||
sourceSize: UM.Theme.sizes.button_icon;
|
||||
}
|
||||
label: Label{
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,52 +3,52 @@
|
|||
"large": {
|
||||
"size": 1.5,
|
||||
"bold": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"default": {
|
||||
"size": 1,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"default_allcaps": {
|
||||
"size": 1,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"small": {
|
||||
"size": 0.75,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"tiny": {
|
||||
"size": 0.5,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"caption": {
|
||||
"size": 0.75,
|
||||
"italic": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"sidebar_header": {
|
||||
"size": 0.75,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"sidebar_save_to": {
|
||||
"size": 1.0,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"timeslider_time": {
|
||||
"size": 1.0,
|
||||
"bold": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"button_tooltip": {
|
||||
"size": 0.75,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
},
|
||||
"setting_category": {
|
||||
"size": 1.5,
|
||||
"family": "Roboto"
|
||||
"family": "ProximaNova"
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -75,6 +75,10 @@
|
|||
"button_disabled": [245, 245, 245, 255],
|
||||
"button_tooltip_text": [35, 35, 35, 255],
|
||||
|
||||
"open_file_button": [0, 0, 0, 255],
|
||||
"open_file_button_text": [255, 255, 255, 255],
|
||||
"open_file_button_hover": [43, 45, 46, 255],
|
||||
|
||||
"scrollbar_background": [245, 245, 245, 255],
|
||||
"scrollbar_handle": [205, 202, 201, 255],
|
||||
"scrollbar_handle_hover": [174, 174, 174, 255],
|
||||
|
|
@ -140,6 +144,9 @@
|
|||
"toolbar_button": [2.0, 2.0],
|
||||
"toolbar_spacing": [1.0, 1.0],
|
||||
|
||||
"loadfile_button": [11.0, 2.4],
|
||||
"loadfile_margin": [0.8, 0.4],
|
||||
|
||||
"section": [22.0, 3.0],
|
||||
"section_icon": [2.14, 2.14],
|
||||
"section_text_margin": [0.33, 0.33],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue