@@ -213,13 +213,13 @@ Item {
213213 ToolTip .delay : 1000
214214 visible: actionHeader .computeButtonState != NodeActions .ButtonState .DELETABLE
215215 enabled: actionHeader .computeButtonState % 2 == 1 // Launchable & Stoppable
216+ // Icon color
217+ textColor: (! enabled && actionHeader .nodeSubmitted ) ? Colors .statusColors [" SUBMITTED" ] : (checked ? palette .highlight : palette .text )
218+ // Background color
216219 background: Rectangle {
217220 color: {
218- if (! computeButton .enabled ) {
219- if (actionHeader .nodeSubmitted )
220- return Qt .darker (Colors .statusColors [" SUBMITTED" ], 1.2 )
221+ if (! computeButton .enabled )
221222 return activePalette .button
222- }
223223 if (actionHeader .computeButtonState == NodeActions .ButtonState .STOPPABLE )
224224 return computeButton .hovered ? Colors .orange : Qt .darker (Colors .orange , 1.3 )
225225 return computeButton .hovered ? activePalette .highlight : activePalette .button
@@ -275,13 +275,13 @@ Item {
275275 ToolTip .delay : 1000
276276 visible: root .uigraph ? root .uigraph .canSubmit : false
277277 enabled: actionHeader .submitButtonState != NodeActions .ButtonState .DISABLED
278+ // Icon color
279+ textColor: (! enabled && actionHeader .nodeSubmitted ) ? Colors .statusColors [" SUBMITTED" ] : (checked ? palette .highlight : palette .text )
280+ // Background color
278281 background: Rectangle {
279282 color: {
280- if (! submitButton .enabled ) {
281- if (actionHeader .nodeSubmitted )
282- return Qt .darker (Colors .statusColors [" SUBMITTED" ], 1.2 )
283+ if (! submitButton .enabled )
283284 return activePalette .button
284- }
285285 return submitButton .hovered ? activePalette .highlight : activePalette .button
286286 }
287287 opacity: submitButton .hovered ? 1 : root ._opacity
0 commit comments