@@ -210,13 +210,13 @@ Item {
210210 ToolTip .delay : 1000
211211 visible: actionHeader .computeButtonState != NodeActions .ButtonState .DELETABLE
212212 enabled: actionHeader .computeButtonState % 2 == 1 // Launchable & Stoppable
213+ // Icon color
214+ textColor: (! enabled && actionHeader .nodeSubmitted ) ? Colors .statusColors [" SUBMITTED" ] : (checked ? palette .highlight : palette .text )
215+ // Background color
213216 background: Rectangle {
214217 color: {
215- if (! computeButton .enabled ) {
216- if (actionHeader .nodeSubmitted )
217- return Qt .darker (Colors .statusColors [" SUBMITTED" ], 1.2 )
218+ if (! computeButton .enabled )
218219 return activePalette .button
219- }
220220 if (actionHeader .computeButtonState == NodeActions .ButtonState .STOPPABLE )
221221 return computeButton .hovered ? Colors .orange : Qt .darker (Colors .orange , 1.3 )
222222 return computeButton .hovered ? activePalette .highlight : activePalette .button
@@ -272,13 +272,13 @@ Item {
272272 ToolTip .delay : 1000
273273 visible: root .uigraph ? root .uigraph .canSubmit : false
274274 enabled: actionHeader .submitButtonState != NodeActions .ButtonState .DISABLED
275+ // Icon color
276+ textColor: (! enabled && actionHeader .nodeSubmitted ) ? Colors .statusColors [" SUBMITTED" ] : (checked ? palette .highlight : palette .text )
277+ // Background color
275278 background: Rectangle {
276279 color: {
277- if (! submitButton .enabled ) {
278- if (actionHeader .nodeSubmitted )
279- return Qt .darker (Colors .statusColors [" SUBMITTED" ], 1.2 )
280+ if (! submitButton .enabled )
280281 return activePalette .button
281- }
282282 return submitButton .hovered ? activePalette .highlight : activePalette .button
283283 }
284284 opacity: submitButton .hovered ? 1 : root ._opacity
0 commit comments