Add theme (and dark mode)

Contributes to CL-1165
This commit is contained in:
Ian Paschal 2019-01-23 12:08:20 +01:00
parent 32072e3bfe
commit 1097f16011
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@ Item
direction: "up" direction: "up"
// Use dark grey for info blurbs and white for context menus // Use dark grey for info blurbs and white for context menus
color: "#191919" // TODO: Theme! color: UM.Theme.getColor("monitor_tooltip")
contentItem: Item contentItem: Item
{ {
@ -38,7 +38,7 @@ Item
text: "" text: ""
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: 240 * screenScaleFactor // TODO: Theme! width: 240 * screenScaleFactor // TODO: Theme!
color: "white" // TODO: Theme! color: UM.Theme.getColor("monitor_tooltip_text")
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")
} }
} }

View File

@ -422,7 +422,8 @@
"monitor_progress_bar_deactive": [192, 193, 194, 255], "monitor_progress_bar_deactive": [192, 193, 194, 255],
"monitor_progress_bar_empty": [245, 245, 245, 255], "monitor_progress_bar_empty": [245, 245, 245, 255],
"monitor_tooltips": [25, 25, 25, 255], "monitor_tooltip": [25, 25, 25, 255],
"monitor_tooltip_text": [255, 255, 255, 255],
"monitor_context_menu": [255, 255, 255, 255], "monitor_context_menu": [255, 255, 255, 255],
"monitor_context_menu_hover": [245, 245, 245, 255], "monitor_context_menu_hover": [245, 245, 245, 255],