Split ui.rs into modules based on UI element #200

Merged
wojtek merged 13 commits from 135---split-ui-rs-into-modules-based-on-ui-element into main 2024-08-29 17:21:52 +02:00
Showing only changes of commit 5a446ad4b8 - Show all commits

View File

@ -685,7 +685,7 @@ impl Ui {
Self::render_columns(mb.paragraphs, mb.columns, false, area, fr); Self::render_columns(mb.paragraphs, mb.columns, false, area, fr);
} }
fn render_main_frame( fn render_browse_frame(
artists: &Collection, artists: &Collection,
selection: &mut Selection, selection: &mut Selection,
state: &AppPublicState, state: &AppPublicState,
@ -815,7 +815,7 @@ impl IUi for Ui {
let selection = app.inner.selection; let selection = app.inner.selection;
let state = app.state; let state = app.state;
Self::render_main_frame(collection, selection, &state, frame); Self::render_browse_frame(collection, selection, &state, frame);
match state { match state {
AppState::Info(_) => Self::render_info_overlay(collection, selection, frame), AppState::Info(_) => Self::render_info_overlay(collection, selection, frame),
AppState::Matches(public) => { AppState::Matches(public) => {