Skip to content

Commit

Permalink
feat: add way for user to know copy is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jun 2, 2024
1 parent 7f31b75 commit 0efafb6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 15 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,20 @@ impl LogViewerApp {

fn ui_options(&mut self, ui: &mut egui::Ui) {
ui.collapsing("Options", |ui| {
ui.add(
egui::DragValue::new(&mut self.main_table_screen_proportion)
.speed(0.01)
.clamp_range(0.2..=0.85)
.prefix("Main Area Proportion Percentage "),
);
});
}

fn ui_help(&mut self, ui: &mut egui::Ui) {
ui.collapsing("Help", |ui| {
ui.horizontal(|ui| {
ui.add(
egui::DragValue::new(&mut self.main_table_screen_proportion)
.speed(0.01)
.clamp_range(0.2..=0.85)
.prefix("Main Area Proportion Percentage "),
ui.label(
"Text is selectable just hover over it for a short time if you want to copy",
);
});
});
Expand Down Expand Up @@ -369,6 +377,8 @@ impl eframe::App for LogViewerApp {
ui.separator();
self.ui_options(ui);
ui.separator();
self.ui_help(ui);
ui.separator();

egui::ScrollArea::vertical()
.id_source("scroll for overflow")
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pub use app::LogViewerApp;
// TODO 1: Add a reload log button
// TODO 1: Add a open most recent log button
// TODO 2: Add search
// TODO 2: Figure out how to let the user know that the text is selectable. It's not obvious at first glance (requires you to wait with the mouse in one place then you can select)
// TODO 3: Add button to show/hide either the top or bottom
// TODO 3: Add checkbox to filter by current request id
// TODO 3: Add filter by and let user pick like ID or date or something like that
Expand Down

0 comments on commit 0efafb6

Please sign in to comment.