|
@@ -6,22 +6,21 @@ import QtQuick.Controls 2.0
|
|
|
import UM 1.3 as UM
|
|
|
import Cura 1.0 as Cura
|
|
|
|
|
|
-/**
|
|
|
- * The expandable component has 3 major sub components:
|
|
|
- * - The headerItem Always visible and should hold some info about what happens if the component is expanded
|
|
|
- * - The popupItem The content that needs to be shown if the component is expanded.
|
|
|
- */
|
|
|
+// TODO: Theme & documentation!
|
|
|
+// The expandable component has 3 major sub components:
|
|
|
+// * The headerItem Always visible and should hold some info about what happens if the component is expanded
|
|
|
+// * The popupItem The content that needs to be shown if the component is expanded.
|
|
|
Item
|
|
|
{
|
|
|
id: base
|
|
|
|
|
|
property bool expanded: false
|
|
|
property bool enabled: true
|
|
|
- property var borderWidth: UM.Theme.getSize("default_lining")
|
|
|
- property color borderColor: UM.Theme.getColor("wide_lining")
|
|
|
- property color headerBackgroundColor: UM.Theme.getColor("main_background")
|
|
|
- property color headerHoverColor: UM.Theme.getColor("action_button_hovered")
|
|
|
- property color drawerBackgroundColor: UM.Theme.getColor("main_background")
|
|
|
+ property var borderWidth: 1
|
|
|
+ property color borderColor: "#CCCCCC"
|
|
|
+ property color headerBackgroundColor: "white"
|
|
|
+ property color headerHoverColor: "#e8f2fc"
|
|
|
+ property color drawerBackgroundColor: "white"
|
|
|
property alias headerItem: header.children
|
|
|
property alias drawerItem: drawer.children
|
|
|
|
|
@@ -66,7 +65,7 @@ Item
|
|
|
anchors
|
|
|
{
|
|
|
top: header.bottom
|
|
|
- topMargin: UM.Theme.getSize("default_lining") * -1
|
|
|
+ topMargin: -1
|
|
|
}
|
|
|
border
|
|
|
{
|