mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Add color theming to monitor tab
Contributes to CL-1212
This commit is contained in:
parent
406ef20802
commit
bc9831abd1
18 changed files with 144 additions and 131 deletions
|
@ -6,10 +6,11 @@ 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
|
||||
|
@ -17,10 +18,10 @@ Item
|
|||
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 color borderColor: UM.Theme.getColor("monitor_card_border")
|
||||
property color headerBackgroundColor: UM.Theme.getColor("monitor_icon_accent")
|
||||
property color headerHoverColor: UM.Theme.getColor("monitor_card_hover")
|
||||
property color drawerBackgroundColor: UM.Theme.getColor("monitor_icon_accent")
|
||||
property alias headerItem: header.children
|
||||
property alias drawerItem: drawer.children
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue