From 3006aaa04e7c17ed59325b6d3acc4a36032344b5 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 17:51:42 +0000 Subject: [PATCH] Select Color: rustfmt Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013rGmDUNr1hUf4zo1X3dak8 --- src/ui/color_select/picker.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/ui/color_select/picker.rs b/src/ui/color_select/picker.rs index f02057a44..0984fd65b 100644 --- a/src/ui/color_select/picker.rs +++ b/src/ui/color_select/picker.rs @@ -699,11 +699,9 @@ impl ColorPicker { shown .chunks(DOC_COLUMNS) .fold(column![].spacing(4), |grid, chunk| { - let line = chunk - .iter() - .fold(row![].spacing(4), |line, &(i, entry)| { - line.push(self.doc_swatch(i, entry)) - }); + let line = chunk.iter().fold(row![].spacing(4), |line, &(i, entry)| { + line.push(self.doc_swatch(i, entry)) + }); let line = (chunk.len()..DOC_COLUMNS) .fold(line, |line, _| line.push(Space::new().width(Length::Fill))); grid.push(line) @@ -716,11 +714,11 @@ impl ColorPicker { let selected = self.pending == entry.color && self.pending_name == entry.name; button(Space::new()) .on_press(picker_msg(ColorPickerMsg::PickDocument(i))) - .padding(0) - .width(Length::Fill) - .height(30) - .style(move |theme: &Theme, status| swatch_button_style(theme, status, fill, selected)) - .into() + .padding(0) + .width(Length::Fill) + .height(30) + .style(move |theme: &Theme, status| swatch_button_style(theme, status, fill, selected)) + .into() } fn books_tab(&self) -> Element<'_, Message> { @@ -758,11 +756,13 @@ impl ColorPicker { row![ search_box(&self.book_query, |query| ColorPickerMsg::BookQuery(query)), load_button( - container(secondary_icon(crate::ui::icons::themed_handle( - crate::ui::icons::FOLDER_OPEN - )) - .width(16) - .height(16)) + container( + secondary_icon(crate::ui::icons::themed_handle( + crate::ui::icons::FOLDER_OPEN + )) + .width(16) + .height(16) + ) .center(Length::Fill) .into() )