From 0db44057a8f49f34aaf0c229942efc1060d6f319 Mon Sep 17 00:00:00 2001 From: FLAMINGO Date: Mon, 23 May 2022 12:05:41 +0800 Subject: Add configuration `change-theme` (#805) Add configuration `change-theme`Add configuration `change-theme` --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 29e4c5c..d81d47e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -81,6 +81,9 @@ pub struct MiniserveConfig { /// Enable QR code display pub show_qrcode: bool, + /// Show theme selector in frontend + pub show_change_theme: bool, + /// Enable file upload pub file_upload: bool, @@ -225,6 +228,7 @@ impl MiniserveConfig { spa: args.spa, overwrite_files: args.overwrite_files, show_qrcode: args.qrcode, + show_change_theme: args.change_theme, file_upload: args.file_upload, uploadable_media_type, tar_enabled: args.enable_tar, -- cgit v1.2.3