diff --git a/plugins/CuraDrive/src/qml/components/ActionToolTip.qml b/plugins/CuraDrive/src/qml/components/ActionToolTip.qml
deleted file mode 100644
index 7401221328..0000000000
--- a/plugins/CuraDrive/src/qml/components/ActionToolTip.qml
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2018 Ultimaker B.V.
-import QtQuick 2.7
-import QtQuick.Controls 2.1
-import QtQuick.Layouts 1.3
-
-import UM 1.1 as UM
-
-ToolTip
-{
- id: tooltip
- visible: parent.hovered
- opacity: 0.9
- delay: 500
-
- background: Rectangle
- {
- color: UM.Theme.getColor("main_background")
- border.color: UM.Theme.getColor("primary")
- border.width: 1 * screenScaleFactor
- }
-
- contentItem: Label
- {
- text: tooltip.text
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
- renderType: Text.NativeRendering
- }
-}
diff --git a/plugins/CuraDrive/src/qml/components/BackupList.qml b/plugins/CuraDrive/src/qml/components/BackupList.qml
index 231f25afc8..a19d1f0ae7 100644
--- a/plugins/CuraDrive/src/qml/components/BackupList.qml
+++ b/plugins/CuraDrive/src/qml/components/BackupList.qml
@@ -18,7 +18,7 @@ ListView
BackupListItem
{
id: backupListItem
- width: parent.width
+ width: parent.width - UM.Theme.getSize("default_margin").width // Add a margin, otherwise the scrollbar is be on top of the right most component
}
Divider
diff --git a/plugins/CuraDrive/src/qml/components/BackupListFooter.qml b/plugins/CuraDrive/src/qml/components/BackupListFooter.qml
index 1e7fc16801..72dc3df044 100644
--- a/plugins/CuraDrive/src/qml/components/BackupListFooter.qml
+++ b/plugins/CuraDrive/src/qml/components/BackupListFooter.qml
@@ -18,7 +18,7 @@ RowLayout
{
id: infoButton
text: catalog.i18nc("@button", "Want more?")
- iconSource: "../images/info.svg"
+ iconSource: UM.Theme.getIcon("info")
onClicked: Qt.openUrlExternally("https://goo.gl/forms/QACEP8pP3RV60QYG2")
visible: backupListFooter.showInfoButton
}
@@ -28,7 +28,7 @@ RowLayout
id: createBackupButton
text: catalog.i18nc("@button", "Backup Now")
iconSource: "../images/backup.svg"
- enabled: !CuraDrive.isCreatingBackup && !CuraDrive.isRestoringBackup
+ enabled: !CuraDrive.isCreatingBackup && !CuraDrive.isRestoringBackup && !backupListFooter.showInfoButton
onClicked: CuraDrive.createBackup()
busy: CuraDrive.isCreatingBackup
}
diff --git a/plugins/CuraDrive/src/qml/components/BackupListItem.qml b/plugins/CuraDrive/src/qml/components/BackupListItem.qml
index ad1ce5f9df..a84caeb6ab 100644
--- a/plugins/CuraDrive/src/qml/components/BackupListItem.qml
+++ b/plugins/CuraDrive/src/qml/components/BackupListItem.qml
@@ -26,17 +26,17 @@ Item
RowLayout
{
id: dataRow
- spacing: UM.Theme.getSize("default_margin").width * 2
+ spacing: UM.Theme.getSize("wide_margin").width
width: parent.width
height: 50 * screenScaleFactor
- Cura.ActionButton
+ UM.SimpleButton
{
- color: "transparent"
- hoverColor: "transparent"
- textColor: UM.Theme.getColor("text")
- textHoverColor: UM.Theme.getColor("primary")
- iconSource: "../images/info.svg"
+ width: UM.Theme.getSize("section_icon").width
+ height: UM.Theme.getSize("section_icon").height
+ color: UM.Theme.getColor("small_button_text")
+ hoverColor: UM.Theme.getColor("small_button_text_hover")
+ iconSource: UM.Theme.getIcon("info")
onClicked: backupListItem.showDetails = !backupListItem.showDetails
}
@@ -65,21 +65,17 @@ Item
Cura.SecondaryButton
{
text: catalog.i18nc("@button", "Restore")
-// color: "transparent"
-// hoverColor: "transparent"
-// textColor: UM.Theme.getColor("text")
-// textHoverColor: UM.Theme.getColor("text_link")
enabled: !CuraDrive.isCreatingBackup && !CuraDrive.isRestoringBackup
onClicked: confirmRestoreDialog.visible = true
}
- Cura.ActionButton
+ UM.SimpleButton
{
- color: "transparent"
- hoverColor: "transparent"
- textColor: UM.Theme.getColor("setting_validation_error")
- textHoverColor: UM.Theme.getColor("setting_validation_error")
- iconSource: "../images/delete.svg"
+ width: UM.Theme.getSize("message_close").width
+ height: UM.Theme.getSize("message_close").height
+ color: UM.Theme.getColor("small_button_text")
+ hoverColor: UM.Theme.getColor("small_button_text_hover")
+ iconSource: UM.Theme.getIcon("cross1")
onClicked: confirmDeleteDialog.visible = true
}
}
diff --git a/plugins/CuraDrive/src/qml/images/delete.svg b/plugins/CuraDrive/src/qml/images/delete.svg
deleted file mode 100644
index 2f6190ad43..0000000000
--- a/plugins/CuraDrive/src/qml/images/delete.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-
\ No newline at end of file
diff --git a/plugins/CuraDrive/src/qml/images/info.svg b/plugins/CuraDrive/src/qml/images/info.svg
deleted file mode 100644
index 36154d6729..0000000000
--- a/plugins/CuraDrive/src/qml/images/info.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
\ No newline at end of file
diff --git a/resources/qml/ActionButton.qml b/resources/qml/ActionButton.qml
index 573ead2910..2448b9a551 100644
--- a/resources/qml/ActionButton.qml
+++ b/resources/qml/ActionButton.qml
@@ -55,7 +55,7 @@ Button
width: visible ? height : 0
sourceSize.width: width
sourceSize.height: height
- color: button.hovered ? button.textHoverColor : button.textColor
+ color: button.enabled ? (button.hovered ? button.textHoverColor : button.textColor) : button.textDisabledColor
visible: source != "" && !button.isIconOnRightSide
anchors.verticalCenter: parent.verticalCenter
}