| author | |
| committer | |
| log | 292bb9cf4d5f1dc50b873b5eb9a3c46b562a57fe |
| tree | 35fe9e5d224050a0564b9805df748ce48ce5a536 |
| parent | 2b60b48a6c3092c588d7f3d83ed5c7fb9fa3bc15 |
| signature | Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU |
Assisted-by: claude-opus-5.54 files changed, 12 insertions(+), 2 deletions(-)
crates/snowbound/assets/icons/sort-ascending.svg created+4| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> | |
| 2 | <path d="M4.5 13V3M2 5.5L4.5 3L7 5.5" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/> | |
| 3 | <path d="M9.5 4H11M9.5 8H12.5M9.5 12H14" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-opacity="0.7"/> | |
| 4 | </svg> |
crates/snowbound/assets/icons/sort-descending.svg created+4| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> | |
| 2 | <path d="M4.5 3V13M2 10.5L4.5 13L7 10.5" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/> | |
| 3 | <path d="M9.5 4H14M9.5 8H12.5M9.5 12H11" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-opacity="0.7"/> | |
| 4 | </svg> |
crates/snowbound/src/art.rs+2| ... | ... | @@ -59,6 +59,8 @@ pub const SECTION_GROUP: &[&str] = art!("icons/section-group"); |
| 59 | 59 | pub const SERVER: &[&str] = art!("icons/server"); |
| 60 | 60 | pub const SIDEBAR_COLLAPSE: &[&str] = art!("icons/sidebar-collapse"); |
| 61 | 61 | pub const SIDEBAR_EXPAND: &[&str] = art!("icons/sidebar-expand"); |
| 62 | pub const SORT_ASCENDING: &[&str] = art!("icons/sort-ascending"); | |
| 63 | pub const SORT_DESCENDING: &[&str] = art!("icons/sort-descending"); | |
| 62 | 64 | pub const STRIKETHROUGH: &[&str] = art!("icons/strikethrough"); |
| 63 | 65 | pub const STYLES: &[&str] = art!("icons/styles"); |
| 64 | 66 | pub const SUBSCRIPT: &[&str] = art!("icons/subscript"); |
crates/snowbound/src/pane.rs+2-2| ... | ... | @@ -735,9 +735,9 @@ impl State { |
| 735 | 735 | descending = sort == Sort::Date; |
| 736 | 736 | } |
| 737 | 737 | let arrow = if descending { |
| 738 | ui::shell::CHEVRON | |
| 738 | art::SORT_DESCENDING | |
| 739 | 739 | } else { |
| 740 | art::CHEVRON_UP | |
| 740 | art::SORT_ASCENDING | |
| 741 | 741 | }; |
| 742 | 742 | if ui::shell::tool_button(&mut self.ui, "direction", arrow, theme.text, None).clicked { |
| 743 | 743 | descending = !descending; |