diff --git a/plugins/SimulationView/SimulationViewMainComponent.qml b/plugins/SimulationView/SimulationViewMainComponent.qml
index 16b9aeaae6..16b049c921 100644
--- a/plugins/SimulationView/SimulationViewMainComponent.qml
+++ b/plugins/SimulationView/SimulationViewMainComponent.qml
@@ -61,10 +61,9 @@ Item
iconSource: !is_simulation_playing ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg"
width: UM.Theme.getSize("small_button").width
height: UM.Theme.getSize("small_button").height
- hoverBackgroundColor: UM.Theme.getColor("small_button_hover")
- hoverColor: UM.Theme.getColor("small_button_text_hover")
- color: UM.Theme.getColor("small_button_text")
- iconMargin: 0.5 * UM.Theme.getSize("wide_lining").width
+ hoverColor: UM.Theme.getColor("slider_handle_active")
+ color: UM.Theme.getColor("slider_handle")
+ iconMargin: UM.Theme.getSize("thick_lining").width
visible: !UM.SimulationView.compatibilityMode
Connections
diff --git a/resources/qml/ActionButton.qml b/resources/qml/ActionButton.qml
index 54d77f7d59..fc4a1c05f4 100644
--- a/resources/qml/ActionButton.qml
+++ b/resources/qml/ActionButton.qml
@@ -7,6 +7,7 @@ import QtQuick.Controls 2.1
import QtGraphicalEffects 1.0 // For the dropshadow
import UM 1.1 as UM
+import Cura 1.0 as Cura
Button
{
@@ -16,6 +17,7 @@ Button
property alias textFont: buttonText.font
property alias cornerRadius: backgroundRect.radius
property alias tooltip: tooltip.text
+ property alias cornerSide: backgroundRect.cornerSide
property color color: UM.Theme.getColor("primary")
property color hoverColor: UM.Theme.getColor("primary_hover")
@@ -82,9 +84,10 @@ Button
}
}
- background: Rectangle
+ background: Cura.RoundedRectangle
{
id: backgroundRect
+ cornerSide: Cura.RoundedRectangle.Direction.All
color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor
radius: UM.Theme.getSize("action_button_radius").width
border.width: UM.Theme.getSize("default_lining").width
diff --git a/resources/qml/ActionPanel/OutputDevicesActionButton.qml b/resources/qml/ActionPanel/OutputDevicesActionButton.qml
index 12e4ac42fd..95750e6d11 100644
--- a/resources/qml/ActionPanel/OutputDevicesActionButton.qml
+++ b/resources/qml/ActionPanel/OutputDevicesActionButton.qml
@@ -17,6 +17,7 @@ Item
id: saveToButton
height: parent.height
fixedWidthMode: true
+ cornerSide: deviceSelectionMenu.visible ? Cura.RoundedRectangle.Direction.Left : Cura.RoundedRectangle.Direction.All
anchors
{
@@ -44,6 +45,7 @@ Item
shadowEnabled: true
shadowColor: UM.Theme.getColor("primary_shadow")
+ cornerSide: Cura.RoundedRectangle.Direction.Right
anchors
{
diff --git a/resources/qml/ActionPanel/OutputProcessWidget.qml b/resources/qml/ActionPanel/OutputProcessWidget.qml
index d1790b3791..1d1a1e44e1 100644
--- a/resources/qml/ActionPanel/OutputProcessWidget.qml
+++ b/resources/qml/ActionPanel/OutputProcessWidget.qml
@@ -101,16 +101,24 @@ Column
}
}
- Row
+ Item
{
id: buttonRow
- spacing: UM.Theme.getSize("default_margin").width
- width: parent.width
+ anchors.right: parent.right
+ anchors.left: parent.left
+ height: UM.Theme.getSize("action_button").height
Cura.SecondaryButton
{
id: previewStageShortcut
+ anchors
+ {
+ left: parent.left
+ right: outputDevicesButton.left
+ rightMargin: UM.Theme.getSize("default_margin").width
+ }
+
height: UM.Theme.getSize("action_button").height
leftPadding: UM.Theme.getSize("default_margin").width
rightPadding: UM.Theme.getSize("default_margin").width
@@ -125,6 +133,9 @@ Column
Cura.OutputDevicesActionButton
{
+ id: outputDevicesButton
+
+ anchors.right: parent.right
width: previewStageShortcut.visible ? UM.Theme.getSize("action_button").width : parent.width
height: UM.Theme.getSize("action_button").height
}
diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml
index 3578888886..a75ab44b99 100644
--- a/resources/qml/Cura.qml
+++ b/resources/qml/Cura.qml
@@ -88,6 +88,30 @@ UM.MainWindow
window: base
}
+ Rectangle
+ {
+ id: headerBackground
+ anchors
+ {
+ top: applicationMenu.bottom
+ left: parent.left
+ right: parent.right
+ }
+ height: stageMenu.source != "" ? Math.round(mainWindowHeader.height + stageMenu.height / 2) : mainWindowHeader.height
+ color: UM.Theme.getColor("main_window_header_background")
+
+ // This is the new fancy pattern
+ Image
+ {
+ id: backgourndPattern
+ anchors.fill: parent
+ fillMode: Image.Tile
+ source: UM.Theme.getImage("header_pattern")
+ horizontalAlignment: Image.AlignLeft
+ verticalAlignment: Image.AlignTop
+ }
+ }
+
MainWindowHeader
{
id: mainWindowHeader
@@ -144,44 +168,6 @@ UM.MainWindow
}
}
- Rectangle
- {
- id: stageMenuBackground
- anchors
- {
- left: parent.left
- right: parent.right
- top: parent.top
- }
- visible: stageMenu.source != ""
- height: visible ? Math.round(UM.Theme.getSize("stage_menu").height / 2) : 0
-
- LinearGradient
- {
- anchors.fill: parent
- start: Qt.point(0, 0)
- end: Qt.point(parent.width, 0)
- gradient: Gradient
- {
- GradientStop
- {
- position: 0.0
- color: UM.Theme.getColor("main_window_header_background")
- }
- GradientStop
- {
- position: 0.5
- color: UM.Theme.getColor("main_window_header_background_gradient")
- }
- GradientStop
- {
- position: 1.0
- color: UM.Theme.getColor("main_window_header_background")
- }
- }
- }
- }
-
Connections
{
target: stageMenu.item
@@ -257,7 +243,8 @@ UM.MainWindow
anchors
{
- top: stageMenuBackground.bottom
+ // Align to the top of the stageMenu since the stageMenu may not exist
+ top: parent.top
left: parent.left
right: parent.right
bottom: parent.bottom
diff --git a/resources/qml/Dialogs/AboutDialog.qml b/resources/qml/Dialogs/AboutDialog.qml
index 94eca4e7c0..add84614e0 100644
--- a/resources/qml/Dialogs/AboutDialog.qml
+++ b/resources/qml/Dialogs/AboutDialog.qml
@@ -35,9 +35,9 @@ UM.Dialog
{
id: logo
width: (base.minimumWidth * 0.85) | 0
- height: (width * (1/4.25)) | 0
+ height: (width * (UM.Theme.getSize("logo").height / UM.Theme.getSize("logo").width)) | 0
- source: UM.Theme.getImage("logo")
+ source: UM.Theme.getImage("logo_about")
anchors.top: parent.top
anchors.topMargin: ((base.minimumWidth - width) / 2) | 0
diff --git a/resources/qml/MainWindow/MainWindowHeader.qml b/resources/qml/MainWindow/MainWindowHeader.qml
index fa0594e2ae..ae1c13d9c3 100644
--- a/resources/qml/MainWindow/MainWindowHeader.qml
+++ b/resources/qml/MainWindow/MainWindowHeader.qml
@@ -12,38 +12,13 @@ import QtGraphicalEffects 1.0
import "../Account"
-Rectangle
+Item
{
id: base
implicitHeight: UM.Theme.getSize("main_window_header").height
implicitWidth: UM.Theme.getSize("main_window_header").width
- LinearGradient
- {
- anchors.fill: parent
- start: Qt.point(0, 0)
- end: Qt.point(parent.width, 0)
- gradient: Gradient
- {
- GradientStop
- {
- position: 0.0
- color: UM.Theme.getColor("main_window_header_background")
- }
- GradientStop
- {
- position: 0.5
- color: UM.Theme.getColor("main_window_header_background_gradient")
- }
- GradientStop
- {
- position: 1.0
- color: UM.Theme.getColor("main_window_header_background")
- }
- }
- }
-
Image
{
id: logo
diff --git a/resources/qml/PrinterSelector/MachineSelector.qml b/resources/qml/PrinterSelector/MachineSelector.qml
index 91b5591cd8..95abfd6644 100644
--- a/resources/qml/PrinterSelector/MachineSelector.qml
+++ b/resources/qml/PrinterSelector/MachineSelector.qml
@@ -25,29 +25,52 @@ Cura.ExpandableComponent
name: "cura"
}
- headerItem: Cura.IconLabel
+ headerItem: Item
{
- text: isNetworkPrinter ? Cura.MachineManager.activeMachineNetworkGroupName : Cura.MachineManager.activeMachineName
- source:
- {
- if (isNetworkPrinter)
- {
- if (machineSelector.outputDevice != null && machineSelector.outputDevice.clusterSize > 1)
- {
- return UM.Theme.getIcon("printer_group")
- }
- return UM.Theme.getIcon("printer_single")
- }
- return ""
- }
- font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("text")
- iconSize: UM.Theme.getSize("machine_selector_icon").width
+ implicitHeight: icon.height
UM.RecolorImage
{
id: icon
+ anchors.left: parent.left
+ anchors.verticalCenter: parent.verticalCenter
+
+ source:
+ {
+ if (isNetworkPrinter)
+ {
+ if (machineSelector.outputDevice != null && machineSelector.outputDevice.clusterSize > 1)
+ {
+ return UM.Theme.getIcon("printer_group")
+ }
+ return UM.Theme.getIcon("printer_single")
+ }
+ return ""
+ }
+ width: UM.Theme.getSize("machine_selector_icon").width
+ height: width
+
+ color: UM.Theme.getColor("machine_selector_printer_icon")
+ visible: source != ""
+ }
+
+ Label
+ {
+ id: label
+ anchors.left: icon.visible ? icon.right : parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: UM.Theme.getSize("thin_margin").width
+ anchors.verticalCenter: icon.verticalCenter
+ text: isNetworkPrinter ? Cura.MachineManager.activeMachineNetworkGroupName : Cura.MachineManager.activeMachineName
+ elide: Text.ElideRight
+ color: UM.Theme.getColor("text")
+ font: UM.Theme.getFont("medium")
+ renderType: Text.NativeRendering
+ }
+
+ UM.RecolorImage
+ {
anchors
{
bottom: parent.bottom
diff --git a/resources/themes/cura-light/images/header_pattern.svg b/resources/themes/cura-light/images/header_pattern.svg
index 2a9de2f3e9..eff5f01cfa 100644
--- a/resources/themes/cura-light/images/header_pattern.svg
+++ b/resources/themes/cura-light/images/header_pattern.svg
@@ -1 +1,1901 @@
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/resources/themes/cura-light/images/logo_about.svg b/resources/themes/cura-light/images/logo_about.svg
new file mode 100644
index 0000000000..34301fd6c9
--- /dev/null
+++ b/resources/themes/cura-light/images/logo_about.svg
@@ -0,0 +1,172 @@
+
+
+
+
diff --git a/resources/themes/cura-light/styles.qml b/resources/themes/cura-light/styles.qml
index aaa8ec18f1..30cf42859a 100755
--- a/resources/themes/cura-light/styles.qml
+++ b/resources/themes/cura-light/styles.qml
@@ -145,7 +145,7 @@ QtObject
text: control.text
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
- font: UM.Theme.getFont("medium_bold")
+ font: UM.Theme.getFont("medium")
color:
{
if (control.checked)
diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json
index 767b6eaccd..2d7e92be4d 100644
--- a/resources/themes/cura-light/theme.json
+++ b/resources/themes/cura-light/theme.json
@@ -93,14 +93,14 @@
"secondary_button_hover": [228, 228, 228, 255],
"secondary_button_text": [30, 102, 215, 255],
- "main_window_header_background": [10, 8, 80, 255],
+ "main_window_header_background": [8, 7, 63, 255],
"main_window_header_background_gradient": [25, 23, 91, 255],
- "main_window_header_button_text_active": [10, 8, 80, 255],
+ "main_window_header_button_text_active": [8, 7, 63, 255],
"main_window_header_button_text_inactive": [255, 255, 255, 255],
"main_window_header_button_text_hovered": [255, 255, 255, 255],
"main_window_header_button_background_active": [255, 255, 255, 255],
"main_window_header_button_background_inactive": [255, 255, 255, 0],
- "main_window_header_button_background_hovered": [255, 255, 255, 102],
+ "main_window_header_button_background_hovered": [117, 114, 159, 255],
"account_widget_outline_active": [70, 66, 126, 255],
@@ -108,12 +108,13 @@
"machine_selector_active": [68, 72, 75, 255],
"machine_selector_hover": [68, 72, 75, 255],
"machine_selector_text_active": [255, 255, 255, 255],
+ "machine_selector_printer_icon": [8, 7, 63, 255],
"action_panel_secondary": [27, 95, 202, 255],
"toolbar_background": [255, 255, 255, 255],
- "printer_type_label_background": [171, 171, 191, 255],
+ "printer_type_label_background": [228, 228, 242, 255],
"text": [0, 0, 0, 255],
"text_detail": [174, 174, 174, 128],
@@ -127,9 +128,9 @@
"text_scene_hover": [70, 84, 113, 255],
"error": [255, 140, 0, 255],
- "warning": [255, 190, 35, 255],
+ "warning": [245, 166, 35, 255],
- "toolbar_button_text": [10, 8, 80, 255],
+ "toolbar_button_text": [8, 7, 63, 255],
"toolbar_button_hover": [232, 242, 252, 255],
"toolbar_button_active": [232, 242, 252, 255],
"toolbar_button_active_hover": [232, 242, 252, 255],
@@ -144,9 +145,9 @@
"button_text_active_hover": [255, 255, 255, 255],
"small_button": [0, 0, 0, 0],
- "small_button_hover": [10, 8, 80, 255],
- "small_button_active": [10, 8, 80, 255],
- "small_button_active_hover": [10, 8, 80, 255],
+ "small_button_hover": [8, 7, 63, 255],
+ "small_button_active": [8, 7, 63, 255],
+ "small_button_active_hover": [8, 7, 63, 255],
"small_button_text": [171, 171, 191, 255],
"small_button_text_hover": [255, 255, 255, 255],
"small_button_text_active": [255, 255, 255, 255],
@@ -222,8 +223,8 @@
"progressbar_control": [50, 130, 255, 255],
"slider_groove": [223, 223, 223, 255],
- "slider_groove_fill": [10, 8, 80, 255],
- "slider_handle": [10, 8, 80, 255],
+ "slider_groove_fill": [8, 7, 63, 255],
+ "slider_handle": [8, 7, 63, 255],
"slider_handle_active": [50, 130, 255, 255],
"slider_text_background": [255, 255, 255, 255],