From fc75c64d9fe519e2788e6e932011478a6c859594 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 23 May 2022 06:13:00 +0200 Subject: Flip usage of theme selector showing functionality added in last commit This is so it doesn't break current configurations. Let's not surprise the users. --- src/renderer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/renderer.rs') diff --git a/src/renderer.rs b/src/renderer.rs index e2e2efb..6e83108 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -76,7 +76,7 @@ pub fn page( } } } - (color_scheme_selector(conf.show_qrcode, conf.show_change_theme)) + (color_scheme_selector(conf.show_qrcode, conf.hide_theme_selector)) div.container { span #top { } h1.title dir="ltr" { @@ -254,7 +254,7 @@ const THEME_PICKER_CHOICES: &[(&str, &str)] = &[ pub const THEME_SLUGS: &[&str] = &["squirrel", "archlinux", "zenburn", "monokai"]; /// Partial: color scheme selector -fn color_scheme_selector(show_qrcode: bool, show_change_theme: bool) -> Markup { +fn color_scheme_selector(show_qrcode: bool, hide_theme_selector: bool) -> Markup { html! { nav { @if show_qrcode { @@ -267,7 +267,7 @@ fn color_scheme_selector(show_qrcode: bool, show_change_theme: bool) -> Markup { } } } - @if show_change_theme { + @if !hide_theme_selector { div { p { "Change theme..." -- cgit v1.2.3