parent
da1566c0c8
commit
386c679dfb
|
@ -28,6 +28,12 @@ namespace
|
||||||
QskBoxBorderColors outlineColors( const QskTextInput* input )
|
QskBoxBorderColors outlineColors( const QskTextInput* input )
|
||||||
{
|
{
|
||||||
auto borderColors = input->boxBorderColorsHint( Q::Panel );
|
auto borderColors = input->boxBorderColorsHint( Q::Panel );
|
||||||
|
|
||||||
|
if( input->labelText().isEmpty() )
|
||||||
|
{
|
||||||
|
return borderColors;
|
||||||
|
}
|
||||||
|
|
||||||
auto topGradient = borderColors.gradientAt( Qt::TopEdge );
|
auto topGradient = borderColors.gradientAt( Qt::TopEdge );
|
||||||
|
|
||||||
const auto panelRect = input->subControlRect( Q::Panel );
|
const auto panelRect = input->subControlRect( Q::Panel );
|
||||||
|
|
Loading…
Reference in New Issue