This commit is contained in:
@@ -192,7 +192,7 @@ fn render_viz_area(
|
||||
VizPanel::Spectrum => render_spectrum(frame, app, *panel_area),
|
||||
VizPanel::Lissajous => render_lissajous(frame, app, *panel_area),
|
||||
VizPanel::Preview => {
|
||||
let user_words = user_words_once.as_ref().unwrap();
|
||||
let user_words = user_words_once.as_ref().expect("user_words initialized");
|
||||
let has_prelude = !app.project_state.project.prelude.trim().is_empty();
|
||||
if has_prelude {
|
||||
let [script_area, prelude_area] = if is_vertical_layout {
|
||||
@@ -396,13 +396,13 @@ fn render_tile(
|
||||
(true, true, _, _, _) => (theme.tile.playing_active_bg, theme.tile.playing_active_fg),
|
||||
(true, false, _, _, _) => (theme.tile.playing_inactive_bg, theme.tile.playing_inactive_fg),
|
||||
(false, true, true, true, _) => {
|
||||
let (r, g, b) = link_color.unwrap().0;
|
||||
let (r, g, b) = link_color.expect("link_color set in this branch").0;
|
||||
(Color::Rgb(r, g, b), theme.selection.cursor_fg)
|
||||
}
|
||||
(false, true, true, false, _) => (theme.tile.active_selected_bg, theme.selection.cursor_fg),
|
||||
(false, true, _, _, true) => (theme.tile.active_in_range_bg, theme.selection.cursor_fg),
|
||||
(false, true, false, true, _) => {
|
||||
let (r, g, b) = link_color.unwrap().1;
|
||||
let (r, g, b) = link_color.expect("link_color set in this branch").1;
|
||||
(Color::Rgb(r, g, b), theme.tile.active_fg)
|
||||
}
|
||||
(false, true, false, false, _) => {
|
||||
|
||||
Reference in New Issue
Block a user