add vial-fill shader with liquid effect and smooth tween transitions; increase corner radius to 12px; replace progress bars with shader-based vial fill
This commit is contained in:
parent
92110cfee7
commit
3eb089b776
6 changed files with 147 additions and 73 deletions
|
|
@ -447,10 +447,10 @@ func _style_cell(cell: PanelContainer, col: int, row: int) -> void:
|
|||
hidden.border_width_right = 1
|
||||
hidden.border_width_bottom = 1
|
||||
hidden.border_color = Color.TRANSPARENT
|
||||
hidden.corner_radius_top_left = 6
|
||||
hidden.corner_radius_top_right = 6
|
||||
hidden.corner_radius_bottom_right = 6
|
||||
hidden.corner_radius_bottom_left = 6
|
||||
hidden.corner_radius_top_left = 12
|
||||
hidden.corner_radius_top_right = 12
|
||||
hidden.corner_radius_bottom_right = 12
|
||||
hidden.corner_radius_bottom_left = 12
|
||||
|
||||
# Visible style — used during drag, may be modified by highlights
|
||||
var visible := StyleBoxFlat.new()
|
||||
|
|
@ -460,10 +460,10 @@ func _style_cell(cell: PanelContainer, col: int, row: int) -> void:
|
|||
visible.border_width_right = 1
|
||||
visible.border_width_bottom = 1
|
||||
visible.border_color = Color(0.25, 0.25, 0.35, 1.0)
|
||||
visible.corner_radius_top_left = 6
|
||||
visible.corner_radius_top_right = 6
|
||||
visible.corner_radius_bottom_right = 6
|
||||
visible.corner_radius_bottom_left = 6
|
||||
visible.corner_radius_top_left = 12
|
||||
visible.corner_radius_top_right = 12
|
||||
visible.corner_radius_bottom_right = 12
|
||||
visible.corner_radius_bottom_left = 12
|
||||
|
||||
cell.add_theme_stylebox_override("panel", hidden)
|
||||
cell.add_theme_stylebox_override("panel_focused", hidden)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue