Merge pull request #12634 from Ultimaker/CURA-9402_fix_background_dark_theme

Fix background dark theme
This commit is contained in:
Remco Burema 2022-07-01 14:30:10 +02:00 committed by GitHub
commit 3dc646874d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,7 @@ UM.Dialog
minimumWidth: UM.Theme.getSize("popup_dialog").width minimumWidth: UM.Theme.getSize("popup_dialog").width
minimumHeight: UM.Theme.getSize("popup_dialog").height minimumHeight: UM.Theme.getSize("popup_dialog").height
width: minimumWidth width: minimumWidth
backgroundColor: UM.Theme.getColor("main_background")
margin: UM.Theme.getSize("default_margin").width margin: UM.Theme.getSize("default_margin").width
property int comboboxHeight: UM.Theme.getSize("default_margin").height property int comboboxHeight: UM.Theme.getSize("default_margin").height

View File

@ -19,7 +19,7 @@ UM.Dialog
height: 500 * screenScaleFactor height: 500 * screenScaleFactor
minimumWidth: 400 * screenScaleFactor minimumWidth: 400 * screenScaleFactor
minimumHeight: 250 * screenScaleFactor minimumHeight: 250 * screenScaleFactor
backgroundColor: UM.Theme.getColor("main_background")
onVisibleChanged: onVisibleChanged:
{ {
// Whenever the window is closed (either via the "Close" button or the X on the window frame), we want to update it in the stack. // Whenever the window is closed (either via the "Close" button or the X on the window frame), we want to update it in the stack.

View File

@ -19,6 +19,8 @@ UM.Dialog
width: minimumWidth width: minimumWidth
height: minimumHeight height: minimumHeight
backgroundColor: UM.Theme.getColor("main_background")
Rectangle Rectangle
{ {
id: header id: header

View File

@ -17,6 +17,7 @@ UM.Dialog
title: catalog.i18nc("@title:window", "Open project file") title: catalog.i18nc("@title:window", "Open project file")
width: UM.Theme.getSize("small_popup_dialog").width width: UM.Theme.getSize("small_popup_dialog").width
height: UM.Theme.getSize("small_popup_dialog").height height: UM.Theme.getSize("small_popup_dialog").height
backgroundColor: UM.Theme.getColor("main_background")
maximumHeight: height maximumHeight: height
maximumWidth: width maximumWidth: width