enable color and node alpha
This commit is contained in:
parent
686771b2d1
commit
75c39a8e3e
|
@ -159,7 +159,7 @@ namespace
|
|||
setBoxBorderColorsHint( Inherited::Handle, Qt::white );
|
||||
if(skinStates().testFlag(Alpha))
|
||||
{
|
||||
m_color.setAlpha(value);
|
||||
m_color.setAlpha(value * 255);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -413,6 +413,8 @@ namespace
|
|||
ChartView::ChartView( ArcControl* chart, QQuickItem* parent )
|
||||
: QskMainView( parent )
|
||||
{
|
||||
setColor(Panel, Qt::white);
|
||||
|
||||
auto hBox = new QskLinearBox( Qt::Horizontal );
|
||||
|
||||
// auto chartBox = new ChartBox( chart, hBox );
|
||||
|
@ -469,7 +471,9 @@ ChartView::ChartView( ArcControl* chart, QQuickItem* parent )
|
|||
[ = ]( QColor c ) { chart->setColor( subcontrol, c ); } );
|
||||
|
||||
connect( controlPanel, &ControlPanel::shadowColorChanged, chart,
|
||||
[ = ]( QColor c ) { chart->setShadowColorHint( subcontrol, c ); } );
|
||||
[ = ]( QColor c ) {
|
||||
chart->setShadowColorHint( subcontrol, c );
|
||||
} );
|
||||
|
||||
connect( controlPanel, &ControlPanel::strokeColorChanged, chart,
|
||||
[ = ]( QColor c ) {
|
||||
|
|
|
@ -48,5 +48,5 @@ void main()
|
|||
float d = sdRing(p, cs, ubuf.radius / 2.0, ubuf.thickness);
|
||||
|
||||
float a = 1.0 - smoothstep(0.0, ubuf.extend, d);
|
||||
fragColor = vec4(ubuf.color.rgb, 1.0) * a * ubuf.opacity;
|
||||
fragColor = ubuf.color * a * ubuf.opacity;
|
||||
}
|
|
@ -43,5 +43,5 @@ void main()
|
|||
float d = sdRing(p, cs, radius / 2.0, thickness);
|
||||
|
||||
float a = 1.0 - smoothstep(0.0, extend, d);
|
||||
gl_FragColor = vec4(color.rgb, 1.0) * a * opacity;
|
||||
gl_FragColor = color * a * opacity;
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue