Show a clickable jump icon for each diagnostic group header

This commit is contained in:
Antonio Scandurra
2022-05-31 15:57:22 +02:00
parent aefdde66a6
commit 4f9c207425
4 changed files with 45 additions and 6 deletions
+2 -1
View File
@@ -317,7 +317,7 @@ pub struct Icon {
pub path: String,
}
#[derive(Deserialize, Default)]
#[derive(Clone, Deserialize, Default)]
pub struct IconButton {
#[serde(flatten)]
pub container: ContainerStyle,
@@ -461,6 +461,7 @@ pub struct DiagnosticHeader {
pub code: ContainedText,
pub text_scale_factor: f32,
pub icon_width_factor: f32,
pub jump_icon: Interactive<IconButton>,
}
#[derive(Clone, Deserialize, Default)]