[PlasmaComponents3] very small refactor of ToolButton shadow code
This introduces a bit more consistency to this big `if` chain.
This commit is contained in:
parent
f389064ca3
commit
b811a9b30b
@ -119,8 +119,10 @@ T.ToolButton {
|
|||||||
return "hover"
|
return "hover"
|
||||||
} else if (keyboardFocus) {
|
} else if (keyboardFocus) {
|
||||||
return "focus"
|
return "focus"
|
||||||
|
} else if (control.flat) {
|
||||||
|
return "hidden"
|
||||||
} else {
|
} else {
|
||||||
return control.flat ? "hidden" : "shadow"
|
return "shadow"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user