Closed pauldelucia closed 1 week ago
The changes in this pull request involve modifications to the add_dpns_subscreen_chooser_panel
function in two files: dpns_subscreen_chooser_panel.rs
and dpns_contested_names_screen.rs
. The function signature is updated to accept an additional parameter for the application context, enhancing its capability to reflect the current application state. Additionally, the button creation logic is refined for better visual distinction of the active subscreen, and error handling in the DPNSContestedNamesScreen
is improved by timestamping error messages.
File Path | Change Summary |
---|---|
src/ui/components/dpns_subscreen_chooser_panel.rs |
Updated add_dpns_subscreen_chooser_panel function to include app_context: &AppContext . Introduced active_screen variable for determining the active subscreen. Modified button creation for custom styling based on active state. |
src/ui/dpns_contested_names_screen.rs |
Updated the call to add_dpns_subscreen_chooser_panel to pass self.app_context.as_ref() . Minor adjustments to error handling in display_message method to include timestamps. |
src/ui/dpns_contested_names_screen.rs
related to the DPNSContestedNamesScreen
struct are relevant as they modify the same file and involve the handling of subscreens, which is closely related to the modifications made in the main PR.DPNSSubscreen
enum and modifies the DPNSContestedNamesScreen
constructor, which directly relates to the changes in the main PR that also involve the add_dpns_subscreen_chooser_panel
function and its interaction with subscreens.dpns_subscreen_chooser_panel
and its interaction with the application context.🐰 In the garden where changes bloom,
A chooser panel finds its room.
With context now, it sees the light,
Active screens shine ever bright.
Buttons styled with colors true,
A hop of joy for me and you! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes