mirror of
https://github.com/encounter/objdiff.git
synced 2025-07-07 13:45:55 +00:00
Compare commits
7 Commits
221c1a8cda
...
5e389438c7
Author | SHA1 | Date | |
---|---|---|---|
|
5e389438c7 | ||
|
6f05b6b964 | ||
|
d773b8c14f | ||
|
c0e9af54a5 | ||
|
1f6b4ac8c4 | ||
|
8150f9832c | ||
|
bd6dc5988a |
@ -150,8 +150,8 @@ fn ins_hover_ui(
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(demangled) = rlwinmdec::decode(&ins.formatted) {
|
||||
ui.colored_label(appearance.highlight_color, demangled.trim());
|
||||
if let Some(decoded) = rlwinmdec::decode(&ins.formatted) {
|
||||
ui.colored_label(appearance.highlight_color, decoded.trim());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -16,13 +16,13 @@ pub fn rlwinm_decode_window(
|
||||
egui::Window::new("Rlwinm Decoder").open(show).show(ctx, |ui| {
|
||||
ui.text_edit_singleline(&mut state.text);
|
||||
ui.add_space(10.0);
|
||||
if let Some(demangled) = rlwinmdec::decode(&state.text) {
|
||||
if let Some(decoded) = rlwinmdec::decode(&state.text) {
|
||||
ui.scope(|ui| {
|
||||
ui.style_mut().override_text_style = Some(TextStyle::Monospace);
|
||||
ui.colored_label(appearance.replace_color, demangled.trim());
|
||||
ui.colored_label(appearance.replace_color, decoded.trim());
|
||||
});
|
||||
if ui.button("Copy").clicked() {
|
||||
ui.output_mut(|output| output.copied_text = demangled);
|
||||
ui.output_mut(|output| output.copied_text = decoded);
|
||||
}
|
||||
} else {
|
||||
ui.scope(|ui| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user