[PlasmaComponents3] very small refactor of ToolButton shadow code

This introduces a bit more consistency to this big `if` chain.
This commit is contained in:
Nate Graham 2020-08-12 15:55:02 -06:00
parent f389064ca3
commit b811a9b30b

View File

@ -119,8 +119,10 @@ T.ToolButton {
return "hover"
} else if (keyboardFocus) {
return "focus"
} else if (control.flat) {
return "hidden"
} else {
return control.flat ? "hidden" : "shadow"
return "shadow"
}
}
}