탐색기 상단 줄과 도구 아이콘을 정리하고 애니메이션을 없앰
- 경로 줄 회색 배경이 오른쪽 끝까지 이어지게 하고 위아래 여백을 없앰. 경로와 검색 입력란을 같은 높이와 위치로 맞추고 8px 간격을 둠. - "현재 경로" 문구를 없애고 돋보기를 검색란 안쪽 왼쪽에 넣음 (파일 검색). - 위로 버튼은 아이콘만 남기고, 사용할 수 있을 때만 마우스를 올리면 어두워짐. - 서서히 나타남, 부드러운 스크롤, 커서 깜빡임, 움직이는 진행 표시를 없앰. - Pretendard를 기본 글꼴로 쓰고 운영체제 한글 글꼴은 대체 글꼴로만 씀. - 도구 아이콘 모서리를 둥글게 하고, 압축하기/압축해제를 닫힌/열린 상자로 새로 그림. 이름 글자를 줄여 아이콘에 붙이고 아래 여백을 둠. - 상태 줄을 고정 높이로 바꾸고 글자를 세로 가운데에 그림. - 암호 열을 없애고 암호가 걸린 항목 이름 앞에 *를 붙임. 툴팁은 실제 이름. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- 작성자
- LeeJunyoung
- 작성 시각
- 커밋
7e6632960c2d7ebf314f3c2c58a75d77ebe99ab5- 부모
- 6db782b
변경된 파일 10개
+316-144| @@ -614,10 +614,16 @@ impl ArchiveApp { | ||
| 614 | 614 | .frame( |
| 615 | 615 | theme::panel(theme::PANEL) |
| 616 | 616 | .corner_radius(0) |
| 617 | 삭제: .inner_margin(egui::Margin::symmetric(16, 4)), | |
| 617 | 추가: .inner_margin(egui::Margin { | |
| 618 | 추가: left: 12, | |
| 619 | 추가: right: 12, | |
| 620 | 추가: top: 6, | |
| 621 | 추가: bottom: 10, | |
| 622 | 추가: }), | |
| 618 | 623 | ) |
| 619 | 624 | .show(root, |ui| { |
| 620 | 625 | ui.horizontal(|ui| { |
| 626 | 추가: ui.spacing_mut().item_spacing.x = 4.0; | |
| 621 | 627 | let idle = !self.model.busy() |
| 622 | 628 | && self.model.close == Close::Open |
| 623 | 629 | && self.picker.is_none(); |
| @@ -644,37 +650,29 @@ impl ArchiveApp { | ||
| 644 | 650 | }); |
| 645 | 651 | }); |
| 646 | 652 | egui::Panel::bottom("archive-status") |
| 653 | 추가: .exact_size(theme::STATUS_HEIGHT) | |
| 654 | 추가: .resizable(false) | |
| 647 | 655 | .frame( |
| 648 | 삭제: theme::panel(theme::STRIPE) | |
| 649 | 삭제: .corner_radius(0) | |
| 650 | 삭제: .inner_margin(egui::Margin::symmetric(16, 8)), | |
| 656 | 추가: egui::Frame::new() | |
| 657 | 추가: .fill(theme::STRIPE) | |
| 658 | 추가: .inner_margin(egui::Margin::symmetric(16, 0)), | |
| 651 | 659 | ) |
| 652 | 660 | .show(root, |ui| { |
| 653 | 삭제: ui.horizontal(|ui| { | |
| 654 | 삭제: let width = (ui.available_width() - ui.spacing().item_spacing.x) / 2.0; | |
| 655 | 삭제: theme::bounded_text( | |
| 656 | 삭제: ui, | |
| 657 | 삭제: &format!( | |
| 658 | 삭제: "{}개 항목", | |
| 659 | 삭제: browser::rows(&self.model.entries, &self.folder, &self.search).len() | |
| 660 | 삭제: ), | |
| 661 | 삭제: width, | |
| 662 | 삭제: ); | |
| 663 | 삭제: ui.with_layout(Layout::right_to_left(Align::Center), |ui| { | |
| 664 | 삭제: theme::bounded_text( | |
| 665 | 삭제: ui, | |
| 666 | 삭제: &format!( | |
| 667 | 삭제: "선택 {}개", | |
| 668 | 삭제: browser::rows(&self.model.entries, &self.folder, &self.search) | |
| 669 | 삭제: .iter() | |
| 670 | 삭제: .filter(|row| !row.ids.is_empty() | |
| 671 | 삭제: && row.ids.is_subset(&self.model.selected)) | |
| 672 | 삭제: .count() | |
| 673 | 삭제: ), | |
| 674 | 삭제: width, | |
| 675 | 삭제: ); | |
| 676 | 삭제: }); | |
| 677 | 삭제: }); | |
| 661 | 추가: let rows = browser::rows(&self.model.entries, &self.folder, &self.search); | |
| 662 | 추가: let selected = rows | |
| 663 | 추가: .iter() | |
| 664 | 추가: .filter(|row| !row.ids.is_empty() && row.ids.is_subset(&self.model.selected)) | |
| 665 | 추가: .count(); | |
| 666 | 추가: let rect = ui.max_rect(); | |
| 667 | 추가: let half = (rect.width() - theme::SPACE) / 2.0; | |
| 668 | 추가: theme::status_text( | |
| 669 | 추가: ui, | |
| 670 | 추가: rect, | |
| 671 | 추가: &format!("{}개 항목", rows.len()), | |
| 672 | 추가: half, | |
| 673 | 추가: Align::Min, | |
| 674 | 추가: ); | |
| 675 | 추가: theme::status_text(ui, rect, &format!("선택 {selected}개"), half, Align::Max); | |
| 678 | 676 | }); |
| 679 | 677 | if ctx.embed_viewports() && self.work_visible() { |
| 680 | 678 | // 별도 창을 만들 수 없을 때만 쓰는 대체 배치. 목록을 가리지 않도록 하단에 둠. |
| @@ -799,56 +797,91 @@ impl ArchiveApp { | ||
| 799 | 797 | } |
| 800 | 798 | |
| 801 | 799 | fn archive_list(&mut self, ui: &mut egui::Ui) { |
| 802 | 삭제: theme::panel(theme::STRIPE).corner_radius(0).show(ui, |ui| { | |
| 803 | 삭제: ui.horizontal(|ui| { | |
| 804 | 삭제: let up = theme::icon_button( | |
| 805 | 삭제: ui, | |
| 806 | 삭제: "위로", | |
| 807 | 삭제: theme::UP, | |
| 808 | 삭제: !self.folder.is_empty() && !self.model.busy(), | |
| 809 | 삭제: ); | |
| 810 | 삭제: if up.clicked() { | |
| 811 | 삭제: let parent = self | |
| 812 | 삭제: .folder | |
| 813 | 삭제: .rsplit_once('/') | |
| 814 | 삭제: .map_or("", |(parent, _)| parent) | |
| 815 | 삭제: .to_owned(); | |
| 816 | 삭제: self.browse_folder(&parent); | |
| 817 | 삭제: } | |
| 818 | 삭제: ui.label("현재 경로"); | |
| 819 | 삭제: let path = format!("/{}", self.folder); | |
| 820 | 삭제: let width = (ui.available_width() - 270.0).max(0.0); | |
| 821 | 삭제: egui::Frame::new() | |
| 822 | 삭제: .fill(theme::PANEL) | |
| 823 | 삭제: .stroke(egui::Stroke::new(1.0, theme::BORDER)) | |
| 824 | 삭제: .corner_radius(6) | |
| 825 | 삭제: .inner_margin(egui::Margin::symmetric(8, 7)) | |
| 826 | 삭제: .show(ui, |ui| { | |
| 827 | 삭제: theme::bounded_text(ui, &path, (width - 18.0).max(0.0)); | |
| 828 | 삭제: }); | |
| 829 | 삭제: let (rect, _) = | |
| 830 | 삭제: ui.allocate_exact_size(egui::vec2(20.0, 20.0), egui::Sense::hover()); | |
| 831 | 삭제: theme::svg_icon(ui.painter(), rect, theme::SEARCH, theme::MUTED); | |
| 832 | 삭제: let search = ui.add_sized( | |
| 833 | 삭제: [220.0, 36.0], | |
| 834 | 삭제: egui::TextEdit::singleline(&mut self.search) | |
| 835 | 삭제: .id(egui::Id::unique("archive-search")) | |
| 836 | 삭제: .hint_text("파일 찾기"), | |
| 837 | 삭제: ); | |
| 838 | 삭제: theme::focus(&search); | |
| 839 | 삭제: if search.changed() { | |
| 840 | 삭제: self.clear_list_selection(); | |
| 841 | 삭제: } | |
| 800 | 추가: // 경로 줄은 입력란 높이만 차지하고 창 너비 전체를 회색으로 채움. | |
| 801 | 추가: egui::Frame::new() | |
| 802 | 추가: .fill(theme::STRIPE) | |
| 803 | 추가: .inner_margin(egui::Margin { | |
| 804 | 추가: left: 8, | |
| 805 | 추가: right: 12, | |
| 806 | 추가: top: 0, | |
| 807 | 추가: bottom: 0, | |
| 808 | 추가: }) | |
| 809 | 추가: .show(ui, |ui| { | |
| 810 | 추가: ui.set_min_width(ui.available_width()); | |
| 811 | 추가: ui.horizontal(|ui| { | |
| 812 | 추가: ui.set_height(theme::FIELD); | |
| 813 | 추가: // 간격은 아래에서 직접 넣어 위치가 흔들리지 않게 함. | |
| 814 | 추가: ui.spacing_mut().item_spacing.x = 0.0; | |
| 815 | 추가: let up = theme::flat_icon_button( | |
| 816 | 추가: ui, | |
| 817 | 추가: "위로", | |
| 818 | 추가: theme::UP, | |
| 819 | 추가: !self.folder.is_empty() && !self.model.busy(), | |
| 820 | 추가: egui::vec2(theme::FIELD, theme::FIELD), | |
| 821 | 추가: ); | |
| 822 | 추가: if up.clicked() { | |
| 823 | 추가: let parent = self | |
| 824 | 추가: .folder | |
| 825 | 추가: .rsplit_once('/') | |
| 826 | 추가: .map_or("", |(parent, _)| parent) | |
| 827 | 추가: .to_owned(); | |
| 828 | 추가: self.browse_folder(&parent); | |
| 829 | 추가: } | |
| 830 | 추가: ui.add_space(6.0); | |
| 831 | 추가: let path = format!("/{}", self.folder); | |
| 832 | 추가: let search_width = 240.0; | |
| 833 | 추가: let gap = 8.0; | |
| 834 | 추가: let path_width = (ui.available_width() - search_width - gap).max(0.0); | |
| 835 | 추가: // 두 입력란은 같은 높이의 칸을 받아 같은 세로 위치에 그림. | |
| 836 | 추가: let (path_rect, _) = ui.allocate_exact_size( | |
| 837 | 추가: egui::vec2(path_width, theme::FIELD), | |
| 838 | 추가: egui::Sense::hover(), | |
| 839 | 추가: ); | |
| 840 | 추가: theme::field_frame(ui, path_rect, false); | |
| 841 | 추가: // 부모 배치에 영향을 주지 않는 하위 영역에 경로 글자를 그림. | |
| 842 | 추가: let mut text_ui = ui.new_child( | |
| 843 | 추가: egui::UiBuilder::new() | |
| 844 | 추가: .max_rect(path_rect.shrink2(egui::vec2(10.0, 0.0))) | |
| 845 | 추가: .layout(Layout::left_to_right(Align::Center)), | |
| 846 | 추가: ); | |
| 847 | 추가: theme::bounded_text(&mut text_ui, &path, (path_width - 20.0).max(0.0)); | |
| 848 | 추가: ui.add_space(gap); | |
| 849 | 추가: let (search_rect, _) = ui.allocate_exact_size( | |
| 850 | 추가: egui::vec2(search_width, theme::FIELD), | |
| 851 | 추가: egui::Sense::hover(), | |
| 852 | 추가: ); | |
| 853 | 추가: let search_id = egui::Id::unique("archive-search"); | |
| 854 | 추가: let focused = ui.memory(|m| m.has_focus(search_id)); | |
| 855 | 추가: theme::field_frame(ui, search_rect, focused); | |
| 856 | 추가: let icon = egui::Rect::from_center_size( | |
| 857 | 추가: egui::pos2(search_rect.left() + 20.0, search_rect.center().y), | |
| 858 | 추가: egui::vec2(16.0, 16.0), | |
| 859 | 추가: ); | |
| 860 | 추가: theme::svg_icon(ui.painter(), icon, theme::SEARCH, theme::MUTED); | |
| 861 | 추가: let search = ui.put( | |
| 862 | 추가: egui::Rect::from_min_max( | |
| 863 | 추가: egui::pos2(icon.right() + 8.0, search_rect.top() + 1.0), | |
| 864 | 추가: egui::pos2(search_rect.right() - 8.0, search_rect.bottom() - 1.0), | |
| 865 | 추가: ), | |
| 866 | 추가: egui::TextEdit::singleline(&mut self.search) | |
| 867 | 추가: .id(search_id) | |
| 868 | 추가: .frame(egui::Frame::NONE) | |
| 869 | 추가: .margin(egui::Margin::ZERO) | |
| 870 | 추가: .align(egui::Align2::LEFT_CENTER) | |
| 871 | 추가: .hint_text("파일 검색"), | |
| 872 | 추가: ); | |
| 873 | 추가: if search.changed() { | |
| 874 | 추가: self.clear_list_selection(); | |
| 875 | 추가: } | |
| 876 | 추가: }); | |
| 842 | 877 | }); |
| 843 | 삭제: }); | |
| 844 | 878 | let rows = browser::rows(&self.model.entries, &self.folder, &self.search); |
| 845 | 879 | |
| 846 | 삭제: let name_width = (ui.available_width() - 16.0 - 28.0 - 96.0 - 64.0 - 40.0).max(120.0); | |
| 880 | 추가: let name_width = (ui.available_width() - 16.0 - 28.0 - 96.0 - 40.0).max(120.0); | |
| 847 | 881 | ui.horizontal(|ui| { |
| 848 | 882 | ui.add_space(16.0 + 28.0); |
| 849 | 883 | theme::column_label(ui, RichText::new("이름").strong(), name_width, Align::Min); |
| 850 | 884 | theme::column_label(ui, "크기", 96.0, Align::Max); |
| 851 | 삭제: theme::column_label(ui, "암호", 64.0, Align::Min); | |
| 852 | 885 | }); |
| 853 | 886 | ui.separator(); |
| 854 | 887 | let active = !self.model.busy() |
| @@ -1027,7 +1060,14 @@ impl ArchiveApp { | ||
| 1027 | 1060 | }, |
| 1028 | 1061 | 20.0, |
| 1029 | 1062 | ); |
| 1030 | 삭제: theme::bounded_text(ui, &row.name, name_width); | |
| 1063 | 추가: // 암호가 걸린 항목은 이름 앞에 *를 붙여 표시함. | |
| 1064 | 추가: let name = if row.encrypted { | |
| 1065 | 추가: format!("*{}", row.name) | |
| 1066 | 추가: } else { | |
| 1067 | 추가: row.name.clone() | |
| 1068 | 추가: }; | |
| 1069 | 추가: // 툴팁은 표시용 *를 빼고 실제 이름을 보여 줌. | |
| 1070 | 추가: theme::bounded_text_hover(ui, &name, &row.name, name_width); | |
| 1031 | 1071 | theme::column_label( |
| 1032 | 1072 | ui, |
| 1033 | 1073 | if row.directory { |
| @@ -1040,9 +1080,6 @@ impl ArchiveApp { | ||
| 1040 | 1080 | 96.0, |
| 1041 | 1081 | Align::Max, |
| 1042 | 1082 | ); |
| 1043 | 삭제: if row.encrypted { | |
| 1044 | 삭제: theme::icon(ui, Icon::Lock, 16.0); | |
| 1045 | 삭제: } | |
| 1046 | 1083 | }, |
| 1047 | 1084 | ); |
| 1048 | 1085 | if active |
| @@ -29,6 +29,35 @@ pub const ROW: f32 = 32.0; | ||
| 29 | 29 | pub const BUTTON: f32 = 40.0; |
| 30 | 30 | pub const BODY: f32 = 17.0; |
| 31 | 31 | pub const TITLE: f32 = 22.0; |
| 32 | 추가: /// 경로와 검색 입력란의 높이. 위쪽 경로 줄은 이 높이만큼만 차지함. | |
| 33 | 추가: pub const FIELD: f32 = 36.0; | |
| 34 | 추가: /// 테두리 없는 버튼에 마우스를 올리거나 누를 때의 배경. | |
| 35 | 추가: pub const HOVER: Color32 = Color32::from_rgb(229, 233, 239); | |
| 36 | 추가: pub const PRESS: Color32 = Color32::from_rgb(214, 220, 229); | |
| 37 | 추가: | |
| 38 | 추가: /// 앱에 포함한 기본 글꼴 (SIL OFL 1.1, assets/fonts/OFL.txt). | |
| 39 | 추가: pub const PRETENDARD: &[u8] = include_bytes!("assets/fonts/Pretendard-Regular.ttf"); | |
| 40 | 추가: | |
| 41 | 추가: /// Pretendard를 기본 글꼴로 쓰고, 없는 글자는 운영체제 한글 글꼴로 대신 그림. | |
| 42 | 추가: pub fn fonts(fallback: Option<(Vec<u8>, u32)>) -> egui::FontDefinitions { | |
| 43 | 추가: let mut fonts = egui::FontDefinitions::empty(); | |
| 44 | 추가: fonts.font_data.insert( | |
| 45 | 추가: "pretendard".into(), | |
| 46 | 추가: egui::FontData::from_static(PRETENDARD).into(), | |
| 47 | 추가: ); | |
| 48 | 추가: let mut family = vec!["pretendard".to_owned()]; | |
| 49 | 추가: if let Some((bytes, index)) = fallback { | |
| 50 | 추가: let mut data = egui::FontData::from_owned(bytes); | |
| 51 | 추가: data.index = index; | |
| 52 | 추가: fonts.font_data.insert("system-kr".into(), data.into()); | |
| 53 | 추가: family.push("system-kr".into()); | |
| 54 | 추가: } | |
| 55 | 추가: fonts | |
| 56 | 추가: .families | |
| 57 | 추가: .insert(egui::FontFamily::Proportional, family.clone()); | |
| 58 | 추가: fonts.families.insert(egui::FontFamily::Monospace, family); | |
| 59 | 추가: fonts | |
| 60 | 추가: } | |
| 32 | 61 | |
| 33 | 62 | pub fn apply(ctx: &egui::Context) { |
| 34 | 63 | ctx.set_theme(egui::Theme::Light); |
| @@ -75,6 +104,10 @@ pub fn apply(ctx: &egui::Context) { | ||
| 75 | 104 | style.spacing.interact_size.y = ROW; |
| 76 | 105 | style.spacing.window_margin = egui::Margin::same(PAD); |
| 77 | 106 | style.visuals.disabled_alpha = 0.4; |
| 107 | 추가: // 클릭과 표시가 즉시 바뀌도록 서서히 나타남, 부드러운 스크롤, 커서 깜빡임을 모두 끔. | |
| 108 | 추가: style.animation_time = 0.0; | |
| 109 | 추가: style.scroll_animation = egui::style::ScrollAnimation::none(); | |
| 110 | 추가: style.visuals.text_cursor.blink = false; | |
| 78 | 111 | }); |
| 79 | 112 | } |
| 80 | 113 | |
| @@ -122,6 +155,53 @@ pub fn action(ui: &mut egui::Ui, text: &str, primary: bool, enabled: bool) -> eg | ||
| 122 | 155 | response |
| 123 | 156 | } |
| 124 | 157 | |
| 158 | 추가: pub const STATUS_HEIGHT: f32 = 34.0; | |
| 159 | 추가: | |
| 160 | 추가: /// 입력란 모양의 테두리를 그림. 초점이 있으면 파란 테두리. | |
| 161 | 추가: pub fn field_frame(ui: &egui::Ui, rect: egui::Rect, focused: bool) { | |
| 162 | 추가: ui.painter().rect( | |
| 163 | 추가: rect, | |
| 164 | 추가: 6, | |
| 165 | 추가: PANEL, | |
| 166 | 추가: Stroke::new(1.0, if focused { BLUE } else { BORDER }), | |
| 167 | 추가: egui::StrokeKind::Inside, | |
| 168 | 추가: ); | |
| 169 | 추가: } | |
| 170 | 추가: | |
| 171 | 추가: /// 상태 줄 글자를 칸의 세로 가운데에 그림. 넘치면 줄이고 전체 글자는 툴팁으로 보여 줌. | |
| 172 | 추가: pub fn status_text( | |
| 173 | 추가: ui: &mut egui::Ui, | |
| 174 | 추가: rect: egui::Rect, | |
| 175 | 추가: text: &str, | |
| 176 | 추가: width: f32, | |
| 177 | 추가: align: egui::Align, | |
| 178 | 추가: ) { | |
| 179 | 추가: let mut job = | |
| 180 | 추가: egui::text::LayoutJob::simple_singleline(text.into(), FontId::proportional(BODY), TEXT); | |
| 181 | 추가: job.wrap = egui::text::TextWrapping { | |
| 182 | 추가: max_width: width.max(0.0), | |
| 183 | 추가: max_rows: 1, | |
| 184 | 추가: ..Default::default() | |
| 185 | 추가: }; | |
| 186 | 추가: let galley = ui.fonts_mut(|fonts| fonts.layout_job(job)); | |
| 187 | 추가: let size = galley.size(); | |
| 188 | 추가: let x = if align == egui::Align::Max { | |
| 189 | 추가: rect.right() - size.x | |
| 190 | 추가: } else { | |
| 191 | 추가: rect.left() | |
| 192 | 추가: }; | |
| 193 | 추가: let text_rect = egui::Rect::from_min_size(egui::pos2(x, rect.center().y - size.y / 2.0), size); | |
| 194 | 추가: ui.painter().galley(text_rect.min, galley, TEXT); | |
| 195 | 추가: let response = ui.interact( | |
| 196 | 추가: text_rect, | |
| 197 | 추가: ui.scope_id() | |
| 198 | 추가: .with(("status-text", align == egui::Align::Max)), | |
| 199 | 추가: egui::Sense::hover(), | |
| 200 | 추가: ); | |
| 201 | 추가: response.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Label, true, text)); | |
| 202 | 추가: response.on_hover_text(text); | |
| 203 | 추가: } | |
| 204 | 추가: | |
| 125 | 205 | pub fn panel(fill: Color32) -> egui::Frame { |
| 126 | 206 | egui::Frame::new() |
| 127 | 207 | .fill(fill) |
| @@ -200,6 +280,16 @@ pub fn icon(ui: &mut egui::Ui, kind: Icon, size: f32) { | ||
| 200 | 280 | } |
| 201 | 281 | |
| 202 | 282 | pub fn bounded_text(ui: &mut egui::Ui, text: &str, width: f32) -> egui::Response { |
| 283 | 추가: bounded_text_hover(ui, text, text, width) | |
| 284 | 추가: } | |
| 285 | 추가: | |
| 286 | 추가: /// 폭에 맞춰 줄인 글자를 그리고, 마우스를 올리면 hover 글자를 보여 줌. | |
| 287 | 추가: pub fn bounded_text_hover( | |
| 288 | 추가: ui: &mut egui::Ui, | |
| 289 | 추가: text: &str, | |
| 290 | 추가: hover: &str, | |
| 291 | 추가: width: f32, | |
| 292 | 추가: ) -> egui::Response { | |
| 203 | 293 | let width = width.max(0.0); |
| 204 | 294 | ui.allocate_ui_with_layout( |
| 205 | 295 | egui::vec2(width, ui.text_style_height(&TextStyle::Body)), |
| @@ -211,7 +301,7 @@ pub fn bounded_text(ui: &mut egui::Ui, text: &str, width: f32) -> egui::Response | ||
| 211 | 301 | }, |
| 212 | 302 | ) |
| 213 | 303 | .inner |
| 214 | 삭제: .on_hover_text(text) | |
| 304 | 추가: .on_hover_text(hover) | |
| 215 | 305 | } |
| 216 | 306 | |
| 217 | 307 | pub fn window_title(ui: &egui::Ui, text: &str, width: f32) -> String { |
| @@ -290,18 +380,9 @@ pub fn indeterminate(ui: &mut egui::Ui) { | ||
| 290 | 380 | egui::vec2(ui.available_width(), SPACE * 2.0), |
| 291 | 381 | egui::Sense::hover(), |
| 292 | 382 | ); |
| 293 | 삭제: ui.painter().rect_filled(rect, 8, BORDER); | |
| 294 | 삭제: let phase = if ui.style().animation_time > 0.0 { | |
| 295 | 삭제: ui.input(|i| (i.time * 0.6).fract()) as f32 | |
| 296 | 삭제: } else { | |
| 297 | 삭제: 0.5 | |
| 298 | 삭제: }; | |
| 299 | 삭제: let width = (SPACE * 8.0).min(rect.width()); | |
| 300 | 삭제: let pulse = egui::Rect::from_min_size( | |
| 301 | 삭제: rect.min + egui::vec2((rect.width() - width) * phase, 0.0), | |
| 302 | 삭제: egui::vec2(width, rect.height()), | |
| 303 | 삭제: ); | |
| 304 | 삭제: ui.painter().rect_filled(pulse, 8, BLUE); | |
| 383 | 추가: // 움직이는 표시 없이 전체 막대를 옅은 파란색으로 채워 진행 중임을 나타냄. | |
| 384 | 추가: ui.painter() | |
| 385 | 추가: .rect_filled(rect, 8, Color32::from_rgb(191, 211, 248)); | |
| 305 | 386 | response.widget_info(|| { |
| 306 | 387 | egui::WidgetInfo::labeled( |
| 307 | 388 | egui::Role::ProgressIndicator, |
| @@ -333,13 +414,19 @@ pub fn svg_icon(painter: &egui::Painter, rect: egui::Rect, asset: &str, color: C | ||
| 333 | 414 | ) |
| 334 | 415 | }) |
| 335 | 416 | .collect::<Vec<_>>(); |
| 336 | 삭제: painter.add(egui::Shape::line( | |
| 337 | 삭제: points, | |
| 338 | 삭제: Stroke::new(rect.width() / 18.0, color), | |
| 339 | 삭제: )); | |
| 417 | 추가: let width = rect.width() / 18.0; | |
| 418 | 추가: // 꼭짓점과 끝점에 원을 더해 둥근 이음과 둥근 끝을 만듦. | |
| 419 | 추가: for point in &points { | |
| 420 | 추가: painter.circle_filled(*point, width / 2.0, color); | |
| 421 | 추가: } | |
| 422 | 추가: painter.add(egui::Shape::line(points, Stroke::new(width, color))); | |
| 340 | 423 | } |
| 341 | 424 | } |
| 342 | 425 | |
| 426 | 추가: pub const TOOL_SIZE: egui::Vec2 = egui::vec2(96.0, 68.0); | |
| 427 | 추가: const TOOL_ICON: f32 = 30.0; | |
| 428 | 추가: const TOOL_LABEL: f32 = 15.0; | |
| 429 | 추가: | |
| 343 | 430 | pub fn tool( |
| 344 | 431 | ui: &mut egui::Ui, |
| 345 | 432 | label: &str, |
| @@ -347,40 +434,87 @@ pub fn tool( | ||
| 347 | 434 | enabled: bool, |
| 348 | 435 | blue: bool, |
| 349 | 436 | ) -> egui::Response { |
| 350 | 삭제: let response = ui.add_enabled( | |
| 351 | 삭제: enabled, | |
| 352 | 삭제: egui::Button::new( | |
| 353 | 삭제: egui::RichText::new(label) | |
| 354 | 삭제: .size(18.0) | |
| 355 | 삭제: .color(Color32::TRANSPARENT), | |
| 356 | 삭제: ) | |
| 357 | 삭제: .frame(false) | |
| 358 | 삭제: .min_size(egui::vec2(108.0, 86.0)), | |
| 437 | 추가: let (rect, response) = ui.allocate_exact_size( | |
| 438 | 추가: TOOL_SIZE, | |
| 439 | 추가: if enabled { | |
| 440 | 추가: egui::Sense::click() | |
| 441 | 추가: } else { | |
| 442 | 추가: egui::Sense::hover() | |
| 443 | 추가: }, | |
| 359 | 444 | ); |
| 360 | 삭제: let rect = response.rect; | |
| 445 | 추가: response.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, enabled, label)); | |
| 361 | 446 | let color = if enabled { |
| 362 | 447 | if blue { BLUE } else { TEXT } |
| 363 | 448 | } else { |
| 364 | 449 | MUTED |
| 365 | 450 | }; |
| 366 | 삭제: let icon_rect = egui::Rect::from_center_size( | |
| 367 | 삭제: egui::pos2(rect.center().x, rect.top() + 27.0), | |
| 368 | 삭제: egui::vec2(36.0, 36.0), | |
| 451 | 추가: if enabled && (response.hovered() || response.has_focus()) { | |
| 452 | 추가: let fill = if response.is_pointer_button_down_on() { | |
| 453 | 추가: PRESS | |
| 454 | 추가: } else { | |
| 455 | 추가: HOVER | |
| 456 | 추가: }; | |
| 457 | 추가: ui.painter().rect_filled(rect, 8, fill); | |
| 458 | 추가: } | |
| 459 | 추가: // 아이콘과 글자를 붙여 가운데에 두고, 아래쪽은 여백으로 남김. | |
| 460 | 추가: let label_height = TOOL_LABEL * 1.3; | |
| 461 | 추가: let gap = 4.0; | |
| 462 | 추가: let top = rect.top() + (rect.height() - TOOL_ICON - gap - label_height) / 2.0; | |
| 463 | 추가: let icon_rect = egui::Rect::from_min_size( | |
| 464 | 추가: egui::pos2(rect.center().x - TOOL_ICON / 2.0, top), | |
| 465 | 추가: egui::vec2(TOOL_ICON, TOOL_ICON), | |
| 369 | 466 | ); |
| 370 | 삭제: ui.painter() | |
| 371 | 삭제: .rect_filled(rect.shrink2(egui::vec2(1.0, 27.0)), 0, PANEL); | |
| 372 | 467 | svg_icon(ui.painter(), icon_rect, asset, color); |
| 373 | 468 | ui.painter().text( |
| 374 | 삭제: egui::pos2(rect.center().x, rect.bottom() - 15.0), | |
| 469 | 추가: egui::pos2( | |
| 470 | 추가: rect.center().x, | |
| 471 | 추가: icon_rect.bottom() + gap + label_height / 2.0, | |
| 472 | 추가: ), | |
| 375 | 473 | egui::Align2::CENTER_CENTER, |
| 376 | 474 | label, |
| 377 | 삭제: FontId::proportional(18.0), | |
| 475 | 추가: FontId::proportional(TOOL_LABEL), | |
| 378 | 476 | color, |
| 379 | 477 | ); |
| 380 | 478 | focus(&response); |
| 381 | 479 | response |
| 382 | 480 | } |
| 383 | 481 | |
| 482 | 추가: /// 테두리와 배경 없이 아이콘만 그리는 버튼. 사용할 수 있을 때만 마우스를 올리면 배경이 어두워짐. | |
| 483 | 추가: pub fn flat_icon_button( | |
| 484 | 추가: ui: &mut egui::Ui, | |
| 485 | 추가: name: &str, | |
| 486 | 추가: asset: &str, | |
| 487 | 추가: enabled: bool, | |
| 488 | 추가: size: egui::Vec2, | |
| 489 | 추가: ) -> egui::Response { | |
| 490 | 추가: let (rect, response) = ui.allocate_exact_size( | |
| 491 | 추가: size, | |
| 492 | 추가: if enabled { | |
| 493 | 추가: egui::Sense::click() | |
| 494 | 추가: } else { | |
| 495 | 추가: egui::Sense::hover() | |
| 496 | 추가: }, | |
| 497 | 추가: ); | |
| 498 | 추가: let response = response.on_hover_text(name); | |
| 499 | 추가: response.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, enabled, name)); | |
| 500 | 추가: if enabled && response.hovered() { | |
| 501 | 추가: let fill = if response.is_pointer_button_down_on() { | |
| 502 | 추가: PRESS | |
| 503 | 추가: } else { | |
| 504 | 추가: HOVER | |
| 505 | 추가: }; | |
| 506 | 추가: ui.painter().rect_filled(rect, 6, fill); | |
| 507 | 추가: } | |
| 508 | 추가: svg_icon( | |
| 509 | 추가: ui.painter(), | |
| 510 | 추가: egui::Rect::from_center_size(rect.center(), egui::vec2(20.0, 20.0)), | |
| 511 | 추가: asset, | |
| 512 | 추가: if enabled { TEXT } else { MUTED }, | |
| 513 | 추가: ); | |
| 514 | 추가: focus(&response); | |
| 515 | 추가: response | |
| 516 | 추가: } | |
| 517 | 추가: | |
| 384 | 518 | pub const SEARCH: &str = include_str!("assets/icons/search-files.svg"); |
| 385 | 519 | |
| 386 | 520 | pub fn icon_button(ui: &mut egui::Ui, name: &str, asset: &str, enabled: bool) -> egui::Response { |
| @@ -1 +1 @@ | ||
| 1 | 삭제: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="14,3 5,3 5,21 16,21"/><polyline points="14,3 20,9 14,9 14,3"/><polyline points="20,14 20,22"/><polyline points="16,18 24,18"/></svg> | |
| 1 | 추가: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="2.80,5.60 2.84,5.11 2.98,4.71 3.20,4.40 3.51,4.18 3.91,4.04 4.40,4.00 19.60,4.00 20.09,4.04 20.49,4.18 20.80,4.40 21.02,4.71 21.16,5.11 21.20,5.60 21.20,7.40 21.16,7.89 21.02,8.29 20.80,8.60 20.49,8.82 20.09,8.96 19.60,9.00 4.40,9.00 3.91,8.96 3.51,8.82 3.20,8.60 2.98,8.29 2.84,7.89 2.80,7.40 2.80,5.60"/> <polyline points="4.30,9.00 4.30,17.60 4.37,18.33 4.57,18.93 4.90,19.40 5.37,19.73 5.97,19.93 6.70,20.00 17.30,20.00 18.03,19.93 18.63,19.73 19.10,19.40 19.43,18.93 19.63,18.33 19.70,17.60 19.70,9.00"/> <polyline points="9.60,13.00 14.40,13.00"/></svg> |
| @@ -1 +1 @@ | ||
| 1 | 삭제: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="12,2 12,16"/><polyline points="6,10 12,16 18,10"/><polyline points="3,16 3,22 21,22 21,16"/></svg> | |
| 1 | 추가: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="1.94,7.82 1.78,7.36 1.74,6.94 1.82,6.57 2.01,6.24 2.32,5.95 2.75,5.71 14.81,0.34 15.28,0.19 15.70,0.14 16.07,0.22 16.40,0.41 16.69,0.73 16.92,1.15 17.33,2.07 17.49,2.53 17.53,2.95 17.45,3.33 17.26,3.66 16.95,3.94 16.52,4.18 4.46,9.55 4.00,9.71 3.58,9.75 3.20,9.67 2.87,9.48 2.59,9.17 2.35,8.74 1.94,7.82"/> <polyline points="4.30,11.80 4.30,18.10 4.37,18.83 4.57,19.43 4.90,19.90 5.37,20.23 5.97,20.43 6.70,20.50 17.30,20.50 18.03,20.43 18.63,20.23 19.10,19.90 19.43,19.43 19.63,18.83 19.70,18.10 19.70,11.80"/> <polyline points="2.80,11.80 21.20,11.80"/> <polyline points="9.60,15.60 14.40,15.60"/></svg> |
| @@ -1 +1 @@ | ||
| 1 | 삭제: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="5,10 12,3 19,10"/><polyline points="12,3 12,22"/></svg> | |
| 1 | 추가: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="12.00,20.00 12.00,4.50"/> <polyline points="6.00,10.50 11.29,5.21 11.53,5.01 11.76,4.89 12.00,4.85 12.24,4.89 12.47,5.01 12.71,5.21 18.00,10.50"/></svg> |
| @@ -1 +1 @@ | ||
| 1 | 삭제: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="3,8 3,4 10,4 13,7 21,7 19,20 3,20 3,8 21,8"/></svg> | |
| 1 | 추가: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="3.00,7.00 3.00,7.00 3.00,7.00 3.00,7.00 3.00,7.00 3.00,7.00 3.00,7.00 3.00,5.75 3.03,5.37 3.14,5.06 3.31,4.81 3.56,4.64 3.87,4.53 4.25,4.50 8.13,4.50 8.41,4.52 8.68,4.58 8.92,4.67 9.14,4.80 9.35,4.97 9.54,5.18 10.46,6.32 10.65,6.53 10.86,6.70 11.08,6.83 11.32,6.92 11.59,6.98 11.87,7.00 19.20,7.00 19.75,7.05 20.20,7.20 20.55,7.45 20.80,7.80 20.95,8.25 21.00,8.80 21.00,17.70 20.95,18.25 20.80,18.70 20.55,19.05 20.20,19.30 19.75,19.45 19.20,19.50 4.80,19.50 4.25,19.45 3.80,19.30 3.45,19.05 3.20,18.70 3.05,18.25 3.00,17.70 3.00,7.00"/> <polyline points="3.00,10.00 21.00,10.00"/></svg> |
| @@ -1 +1 @@ | ||
| 1 | 삭제: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="16,16 23,23"/><polyline points="18,10 17,5 13,2 7,2 3,5 2,10 4,15 9,18 14,17 18,13 18,10"/></svg> | |
| 1 | 추가: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><polyline points="17.00,10.50 16.88,11.77 16.51,12.99 15.90,14.11 15.10,15.10 14.11,15.90 12.99,16.51 11.77,16.88 10.50,17.00 9.23,16.88 8.01,16.51 6.89,15.90 5.90,15.10 5.10,14.11 4.49,12.99 4.12,11.77 4.00,10.50 4.12,9.23 4.49,8.01 5.10,6.89 5.90,5.90 6.89,5.10 8.01,4.49 9.23,4.12 10.50,4.00 11.77,4.12 12.99,4.49 14.11,5.10 15.10,5.90 15.90,6.89 16.51,8.01 16.88,9.23 17.00,10.50"/> <polyline points="15.30,15.30 20.50,20.50"/></svg> |
| @@ -7,7 +7,7 @@ mod fake; | ||
| 7 | 7 | mod renderer; |
| 8 | 8 | #[path = "system_font.rs"] |
| 9 | 9 | mod system_font; |
| 10 | 삭제: use eframe::egui::{self, FontData, FontDefinitions, FontFamily}; | |
| 10 | 추가: use eframe::egui; | |
| 11 | 11 | fn main() -> eframe::Result { |
| 12 | 12 | let result = run(); |
| 13 | 13 | #[cfg(target_os = "windows")] |
| @@ -43,7 +43,10 @@ fn show_startup_error(message: &str) { | ||
| 43 | 43 | |
| 44 | 44 | fn run() -> eframe::Result { |
| 45 | 45 | let custom_frame = zipelo_ui_memory_app::window_frame::custom_frame_needed(); |
| 46 | 삭제: let font = system_font::load().map_err(|e| eframe::Error::AppCreation(Box::new(e)))?; | |
| 46 | 추가: // 운영체제 한글 글꼴은 Pretendard에 없는 글자를 위한 대체 글꼴로만 씀. | |
| 47 | 추가: let fallback = system_font::load() | |
| 48 | 추가: .ok() | |
| 49 | 추가: .map(|font| (font.bytes, font.face_index)); | |
| 47 | 50 | renderer::run_native( |
| 48 | 51 | "Zipelo", |
| 49 | 52 | eframe::NativeOptions { |
| @@ -54,17 +57,10 @@ fn run() -> eframe::Result { | ||
| 54 | 57 | ..Default::default() |
| 55 | 58 | }, |
| 56 | 59 | || { |
| 57 | 삭제: let bytes = font.bytes.clone(); | |
| 58 | 삭제: let face_index = font.face_index; | |
| 60 | 추가: let fallback = fallback.clone(); | |
| 59 | 61 | Box::new(move |cc| { |
| 60 | 삭제: let mut fonts = FontDefinitions::empty(); | |
| 61 | 삭제: let mut data = FontData::from_owned(bytes); | |
| 62 | 삭제: data.index = face_index; | |
| 63 | 삭제: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 64 | 삭제: fonts | |
| 65 | 삭제: .families | |
| 66 | 삭제: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 67 | 삭제: cc.egui_ctx.set_fonts(fonts); | |
| 62 | 추가: cc.egui_ctx | |
| 63 | 추가: .set_fonts(zipelo_ui_memory_app::archive_theme::fonts(fallback)); | |
| 68 | 64 | zipelo_ui_memory_app::archive_theme::apply(&cc.egui_ctx); |
| 69 | 65 | let (fixture, startup) = zipelo_ui_memory_app::archive_ui::launch_args( |
| 70 | 66 | std::env::args_os().skip(1).collect(), |
| @@ -1,4 +1,4 @@ | ||
| 1 | 삭제: use eframe::egui::{self, FontData, FontDefinitions, FontFamily, FontId, TextStyle}; | |
| 1 | 추가: use eframe::egui::{self, FontId, TextStyle}; | |
| 2 | 2 | use std::{collections::VecDeque, path::PathBuf}; |
| 3 | 3 | use zipelo_ui_memory_app::{archive_screen::ArchiveApp, archive_ui::*}; |
| 4 | 4 | #[path = "../../experiments/rust-ui-memory-app/src/renderer.rs"] |
| @@ -388,7 +388,9 @@ fn main() -> eframe::Result { | ||
| 388 | 388 | std::fs::create_dir_all(&base).unwrap(); |
| 389 | 389 | std::fs::write(base.join("읽어주세요.txt"), "화면 검증 입력").unwrap(); |
| 390 | 390 | std::fs::create_dir_all(base.join("사진")).unwrap(); |
| 391 | 삭제: let font = system_font::load().map_err(|e| eframe::Error::AppCreation(Box::new(e)))?; | |
| 391 | 추가: let fallback = system_font::load() | |
| 392 | 추가: .ok() | |
| 393 | 추가: .map(|font| (font.bytes, font.face_index)); | |
| 392 | 394 | let title = format!("Zipelo UI capture {mode}"); |
| 393 | 395 | renderer::run_native( |
| 394 | 396 | &title, |
| @@ -401,17 +403,10 @@ fn main() -> eframe::Result { | ||
| 401 | 403 | || { |
| 402 | 404 | let mode = mode.clone(); |
| 403 | 405 | let base = base.clone(); |
| 404 | 삭제: let bytes = font.bytes.clone(); | |
| 405 | 삭제: let face_index = font.face_index; | |
| 406 | 추가: let fallback = fallback.clone(); | |
| 406 | 407 | Box::new(move |cc| { |
| 407 | 삭제: let mut fonts = FontDefinitions::empty(); | |
| 408 | 삭제: let mut data = FontData::from_owned(bytes.clone()); | |
| 409 | 삭제: data.index = face_index; | |
| 410 | 삭제: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 411 | 삭제: fonts | |
| 412 | 삭제: .families | |
| 413 | 삭제: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 414 | 삭제: cc.egui_ctx.set_fonts(fonts); | |
| 408 | 추가: cc.egui_ctx | |
| 409 | 추가: .set_fonts(zipelo_ui_memory_app::archive_theme::fonts(fallback.clone())); | |
| 415 | 410 | cc.egui_ctx.set_visuals(egui::Visuals::light()); |
| 416 | 411 | cc.egui_ctx.style_mut_of(egui::Theme::Light, |style| { |
| 417 | 412 | style |
| @@ -100,18 +100,22 @@ fn narrow_archive_keeps_columns_and_virtualizes_thousands_of_long_names() { | ||
| 100 | 100 | assert_narrow_text(&output); |
| 101 | 101 | let text = layout_text(&output); |
| 102 | 102 | assert!(text.len() < 100); |
| 103 | 추가: // 암호가 걸린 항목은 이름 앞에 *가 붙음. | |
| 103 | 104 | let first = text |
| 104 | 105 | .iter() |
| 105 | 삭제: .find(|(text, _, _)| text == &format!("0000-{name}")) | |
| 106 | 추가: .find(|(text, _, _)| text.trim_start_matches('*') == format!("0000-{name}")) | |
| 106 | 107 | .unwrap(); |
| 107 | 108 | assert!(first.2); |
| 109 | 추가: // 크기는 스크롤 막대 자리(오른쪽 24px)를 침범하지 않는 행 안쪽에 남음. | |
| 108 | 110 | assert!( |
| 109 | 111 | text.iter() |
| 110 | 삭제: .any(|(text, rect, _)| text == "31 B" && rect.right() < 720.0) | |
| 112 | 추가: .any(|(text, rect, _)| text == "31 B" && rect.right() <= 736.0) | |
| 111 | 113 | ); |
| 112 | 삭제: for expected in ["크기", "암호", "5000개 항목", "선택 5000개"] { | |
| 114 | 추가: for expected in ["크기", "5000개 항목", "선택 5000개"] { | |
| 113 | 115 | assert!(text.iter().any(|(text, _, _)| text == expected)); |
| 114 | 116 | } |
| 117 | 추가: // 암호 열은 없고 이름 앞의 *로만 표시함. | |
| 118 | 추가: assert!(!text.iter().any(|(text, _, _)| text == "암호")); | |
| 115 | 119 | let title = output |
| 116 | 120 | .viewport_output |
| 117 | 121 | .values() |
| @@ -123,7 +127,13 @@ fn narrow_archive_keeps_columns_and_virtualizes_thousands_of_long_names() { | ||
| 123 | 127 | .unwrap(); |
| 124 | 128 | assert!(title.contains('…') && title.ends_with(" — Zipelo")); |
| 125 | 129 | assert!(title.chars().count() < full_title.chars().count()); |
| 126 | 삭제: assert_full_tooltip(&ctx, &mut app, first.1.center(), &first.0); | |
| 130 | 추가: // 툴팁은 표시용 *를 뺀 실제 이름을 보여 줌. | |
| 131 | 추가: assert_full_tooltip( | |
| 132 | 추가: &ctx, | |
| 133 | 추가: &mut app, | |
| 134 | 추가: first.1.center(), | |
| 135 | 추가: first.0.trim_start_matches('*'), | |
| 136 | 추가: ); | |
| 127 | 137 | let output = narrow_frame(&ctx, &mut app, 14.0, vec![egui::Event::PointerGone]); |
| 128 | 138 | let point = layout_text(&output) |
| 129 | 139 | .into_iter() |
| @@ -152,7 +162,7 @@ fn narrow_deep_folder_path_is_elided_without_displacing_search() { | ||
| 152 | 162 | assert!(path.2); |
| 153 | 163 | assert!( |
| 154 | 164 | text.iter() |
| 155 | 삭제: .any(|(text, rect, _)| text == "파일 찾기" && rect.right() < 760.0) | |
| 165 | 추가: .any(|(text, rect, _)| text == "파일 검색" && rect.right() < 760.0) | |
| 156 | 166 | ); |
| 157 | 167 | assert_full_tooltip(&ctx, &mut app, path.1.center(), &full); |
| 158 | 168 | } |