Add session expiry renewal flow
This commit is contained in:
@@ -652,6 +652,10 @@ func _toolbar_box(dark: bool, active: bool = false) -> StyleBoxFlat:
|
||||
box.border_color = Brand.PURPLE if active else (Color("33415d") if dark else Brand.LIGHT_BORDER)
|
||||
box.set_border_width_all(1)
|
||||
box.set_corner_radius_all(7)
|
||||
box.content_margin_left = 0
|
||||
box.content_margin_right = 0
|
||||
box.content_margin_top = 0
|
||||
box.content_margin_bottom = 0
|
||||
return box
|
||||
|
||||
|
||||
@@ -687,7 +691,13 @@ func _style_asset_toolbar_button(button: Button, texture: Texture2D, dark: bool)
|
||||
button.icon = texture
|
||||
button.expand_icon = false
|
||||
button.focus_mode = Control.FOCUS_NONE
|
||||
button.add_theme_constant_override("icon_max_width", 25)
|
||||
button.alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
button.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
button.vertical_icon_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
button.size_flags_horizontal = Control.SIZE_SHRINK_CENTER
|
||||
button.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
button.add_theme_constant_override("h_separation", 0)
|
||||
button.add_theme_constant_override("icon_max_width", 23)
|
||||
button.add_theme_stylebox_override("normal", _toolbar_box(dark))
|
||||
button.add_theme_stylebox_override("hover", _toolbar_box(dark, true))
|
||||
button.add_theme_stylebox_override("pressed", _toolbar_box(dark, true))
|
||||
|
||||
Reference in New Issue
Block a user