Fix #123578: VSE active but unselected strip outline visual tweak

Instead of making the dark outline be bright for active but unselected
strips, make it have dark outline just like all other strips,
and a 1px inner bright line inside of that.

Pull Request: https://projects.blender.org/blender/blender/pulls/124210
This commit is contained in:
Aras Pranckevicius
2024-07-05 11:35:18 +02:00
committed by Aras Pranckevicius
parent bc6e90d40d
commit c4534909b2

View File

@@ -191,9 +191,14 @@ void main()
col = add_outline(d, 3.0, 4.0, col, vec4(0, 0, 0, 0.33));
}
/* Active, but not selected strips get a thin inner line. */
bool active = (strip.flags & GPU_SEQ_FLAG_ACTIVE) != 0;
if (active && !selected) {
col = add_outline(sdf, 1.0, 2.0, col, col_outline);
}
/* Outer 1px outline for all strips. */
col = add_outline(
sdf, 0.0, 1.0, col, selected ? unpackUnorm4x8(context_data.col_back) : col_outline);
col = add_outline(sdf, 0.0, 1.0, col, unpackUnorm4x8(context_data.col_back));
}
fragColor = col;