Add theme colors

Contributes to CL-1212
This commit is contained in:
Ian Paschal 2019-01-21 13:07:16 +01:00
parent 1369c98ea6
commit 2e5eb61144
14 changed files with 70 additions and 63 deletions

View file

@ -6,21 +6,22 @@ import QtQuick.Controls 2.0
import UM 1.3 as UM
import Cura 1.0 as Cura
// 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.
/**
* 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: 1
property color borderColor: "#CCCCCC"
property color headerBackgroundColor: "white"
property color headerHoverColor: "#e8f2fc"
property color drawerBackgroundColor: "white"
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 alias headerItem: header.children
property alias drawerItem: drawer.children
@ -65,7 +66,7 @@ Item
anchors
{
top: header.bottom
topMargin: -1
topMargin: UM.Theme.getSize("default_lining") * -1
}
border
{