From 711fed91c9a27c2c5287a9173b39a3a6cf53874a Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 19 Mar 2025 13:19:14 +0100 Subject: [PATCH] Make bright the default for xkcds --- showbits-thermal-printer-ui/src/components/CDocumentXkcd.vue | 2 +- showbits-thermal-printer/src/documents/xkcd/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/showbits-thermal-printer-ui/src/components/CDocumentXkcd.vue b/showbits-thermal-printer-ui/src/components/CDocumentXkcd.vue index 564057f..51ee01e 100644 --- a/showbits-thermal-printer-ui/src/components/CDocumentXkcd.vue +++ b/showbits-thermal-printer-ui/src/components/CDocumentXkcd.vue @@ -8,7 +8,7 @@ const form = useTemplateRef("form"); const number = ref(); const dither = ref(true); -const bright = ref(false); +const bright = ref(true); const feed = ref(true); function submit() { diff --git a/showbits-thermal-printer/src/documents/xkcd/mod.rs b/showbits-thermal-printer/src/documents/xkcd/mod.rs index cac5e86..8c8e305 100644 --- a/showbits-thermal-printer/src/documents/xkcd/mod.rs +++ b/showbits-thermal-printer/src/documents/xkcd/mod.rs @@ -66,7 +66,7 @@ pub async fn post(server: State, Form(form): Form) -> somehow: image, max_width, max_height, - form.bright.unwrap_or(false), + form.bright.unwrap_or(true), "stucki", ) .map_err(somehow::Error)?;