Skip to content

Commit

Permalink
disabled node panel formatting fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Platt authored and Marc Platt committed Aug 7, 2024
1 parent 8e46a87 commit 0f7ed03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file modified resource/theme/black.theme
Binary file not shown.
8 changes: 8 additions & 0 deletions source/nodes/node_panel/node_panel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ func update_sidechain_view():
download_button.disabled = not drivechain_running
if not drivechain_running:
download_button.modulate = Color(0.5, 0.5, 0.5) # Grey out the button
heading_label.modulate = Color(0.5, 0.5, 0.5) # Grey out the heading text
description_label.modulate = Color(0.5, 0.5, 0.5) # Grey out the description text
else:
download_button.modulate = Color(1, 1, 1) # Normal color
heading_label.modulate = Color(1, 1, 1) # Normal color for heading text
description_label.modulate = Color(1, 1, 1) # Normal color for description text
update_button_state()

func update_overlay():
Expand All @@ -115,9 +119,13 @@ func update_overlay():
if drivechain_running:
overlay.color = Color(1, 1, 1, 0)
overlay.mouse_filter = Control.MOUSE_FILTER_IGNORE
heading_label.modulate = Color(1, 1, 1) # Normal color for heading text
description_label.modulate = Color(1, 1, 1) # Normal color for description text
else:
overlay.color = Color(1, 1, 1, 0.5) # Semi-transparent white
overlay.mouse_filter = Control.MOUSE_FILTER_STOP
heading_label.modulate = Color(0.5, 0.5, 0.5) # Grey out the heading text
description_label.modulate = Color(0.5, 0.5, 0.5) # Grey out the description text

func update_button_state():
var drivechain_provider = Appstate.get_drivechain_provider()
Expand Down

0 comments on commit 0f7ed03

Please sign in to comment.