Skip to content

Commit

Permalink
delete wallet and create wallet button ux updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Platt authored and Marc Platt committed Sep 3, 2024
1 parent e2ecfb0 commit ecd1445
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 38 deletions.
27 changes: 7 additions & 20 deletions source/application/wallet_creator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -153,38 +153,25 @@ func setup_launch_panel():

var headers_text = """[table=2]
[cell][color=white][b][u]HD Key Data:
[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]Master Key:
[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]Chain Code:
[/u][/b][/color][/cell] [cell][/cell]
[/table]"""
launch_info_label.text = headers_text

var existing_spacer = launch_panel.get_node_or_null("Spacer3")
if existing_spacer:
launch_panel.remove_child(existing_spacer)
vbox.add_child(existing_spacer)
existing_spacer.size_flags_vertical = SIZE_EXPAND_FILL

var existing_button = launch_panel.get_node_or_null("LaunchPopUp")
var existing_delete = launch_panel.get_node_or_null("DeleteButton")
if existing_button:
launch_panel.remove_child(existing_button)
vbox.add_child(existing_button)

var spacer = Control.new()
spacer.size_flags_vertical = SIZE_EXPAND_FILL
vbox.add_child(spacer)

if existing_delete:
launch_panel.remove_child(existing_delete)
vbox.add_child(existing_delete)

# Add a spacer to push the delete button to the bottom


# Create and add the delete wallet button



existing_delete.size_flags_vertical = SIZE_SHRINK_CENTER

func _on_create_wallet_button_pressed():
reset_wallet_tab()
Expand Down
34 changes: 16 additions & 18 deletions source/create_wallet/wallet-create.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,49 @@ bg_color = Color(0, 0, 0, 1)
[sub_resource type="Theme" id="Theme_wtlfy"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4vpuv"]
bg_color = Color(0.125911, 0.125911, 0.125911, 1)
bg_color = Color(0.18359, 0.18359, 0.18359, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gl6sh"]
bg_color = Color(0.313726, 0.313726, 0.313726, 1)
bg_color = Color(0, 1, 0, 0.32549)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vo0qr"]
bg_color = Color(0.185383, 0.185383, 0.185383, 1)
bg_color = Color(0, 1, 0, 0.32549)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oo7g8"]
bg_color = Color(0.32549, 0.32549, 0.32549, 1)
bg_color = Color(0, 1, 0, 0.32549)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7m6np"]
bg_color = Color(0.32549, 0.32549, 0.32549, 1)
bg_color = Color(0, 1, 0, 0.32549)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3

[sub_resource type="Theme" id="Theme_4mjfb"]
Button/colors/font_color = Color(0, 1, 0, 1)
Button/colors/font_color = Color(0.875, 0.875, 0.875, 1)
Button/colors/font_disabled_color = Color(1, 0, 0, 0.501961)
Button/colors/font_focus_color = Color(0, 1, 0, 1)
Button/colors/font_hover_color = Color(0, 1, 0, 1)
Button/colors/font_hover_pressed_color = Color(0, 1, 0, 1)
Button/colors/font_pressed_color = Color(0, 1, 0, 1)
Button/colors/font_focus_color = Color(0.95, 0.95, 0.95, 1)
Button/colors/font_outline_color = Color(1, 1, 1, 1)
Button/styles/disabled = SubResource("StyleBoxFlat_4vpuv")
Button/styles/focus = SubResource("StyleBoxFlat_gl6sh")
Button/styles/hover = SubResource("StyleBoxFlat_vo0qr")
Expand All @@ -70,10 +72,6 @@ bg_color = Color(0.341176, 0.341176, 0.341176, 1)

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w2780"]
bg_color = Color(0.0885599, 0.0885599, 0.0885599, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n6uh1"]
bg_color = Color(0.340339, 0.340339, 0.340339, 1)
Expand Down Expand Up @@ -226,7 +224,7 @@ layout_mode = 2
icon = ExtResource("3_gjr45")

[node name="Spacer3" type="Control" parent="MarginContainer2/VBoxContainer/BoxContainer"]
custom_minimum_size = Vector2(2.08165e-12, 5)
custom_minimum_size = Vector2(2.08165e-12, 10)
layout_mode = 2

[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer2/VBoxContainer/BoxContainer"]
Expand All @@ -249,20 +247,20 @@ layout_mode = 2
[node name="Paths" type="VBoxContainer" parent="MarginContainer2/VBoxContainer/BoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0

[node name="Header" type="Label" parent="MarginContainer2/VBoxContainer/BoxContainer/HBoxContainer2/Paths"]
layout_mode = 2
text = "BIP 32"
horizontal_alignment = 1

[node name="Spacer3" type="Control" parent="MarginContainer2/VBoxContainer/BoxContainer/HBoxContainer2/Paths"]
custom_minimum_size = Vector2(2.08165e-12, 5)
layout_mode = 2
size_flags_vertical = 3

[node name="DeleteButton" type="Button" parent="MarginContainer2/VBoxContainer/BoxContainer/HBoxContainer2/Paths"]
custom_minimum_size = Vector2(120, 2.08165e-12)
layout_mode = 2
size_flags_horizontal = 8
size_flags_horizontal = 4
theme = SubResource("Theme_gpxnn")
theme_override_colors/font_color = Color(1, 0.287306, 0.225237, 1)
theme_override_colors/font_pressed_color = Color(1, 0.286275, 0.223529, 1)
Expand Down

0 comments on commit ecd1445

Please sign in to comment.