diff options
author | FLAMINGO <flamingodev@outlook.com> | 2022-05-23 04:05:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 04:05:41 +0000 |
commit | 0db44057a8f49f34aaf0c229942efc1060d6f319 (patch) | |
tree | a4e75346b87d661930d1f37ea80a30c7be74c063 /src/config.rs | |
parent | Bump deps (diff) | |
download | miniserve-0db44057a8f49f34aaf0c229942efc1060d6f319.tar.gz miniserve-0db44057a8f49f34aaf0c229942efc1060d6f319.zip |
Add configuration `change-theme` (#805)
Add configuration `change-theme`Add configuration `change-theme`
Diffstat (limited to '')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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, |