inspector: Improve UI details (#1217)
This commit is contained in:
parent
00dd457441
commit
5e302866ce
1 changed files with 6 additions and 5 deletions
|
|
@ -481,6 +481,7 @@ fn render_inspector(
|
||||||
|
|
||||||
v_flex()
|
v_flex()
|
||||||
.id("inspector")
|
.id("inspector")
|
||||||
|
.font_family(".SystemUIFont")
|
||||||
.size_full()
|
.size_full()
|
||||||
.bg(cx.theme().background)
|
.bg(cx.theme().background)
|
||||||
.border_l_1()
|
.border_l_1()
|
||||||
|
|
@ -508,7 +509,6 @@ fn render_inspector(
|
||||||
.selected(inspector.is_picking())
|
.selected(inspector.is_picking())
|
||||||
.small()
|
.small()
|
||||||
.ghost()
|
.ghost()
|
||||||
.cursor_pointer()
|
|
||||||
.on_click(cx.listener(|this, _, window, _| {
|
.on_click(cx.listener(|this, _, window, _| {
|
||||||
this.start_picking();
|
this.start_picking();
|
||||||
window.refresh();
|
window.refresh();
|
||||||
|
|
@ -521,7 +521,6 @@ fn render_inspector(
|
||||||
.icon(IconName::Close)
|
.icon(IconName::Close)
|
||||||
.small()
|
.small()
|
||||||
.ghost()
|
.ghost()
|
||||||
.cursor_pointer()
|
|
||||||
.on_click(|_, window, cx| {
|
.on_click(|_, window, cx| {
|
||||||
window.dispatch_action(Box::new(ToggleInspector), cx);
|
window.dispatch_action(Box::new(ToggleInspector), cx);
|
||||||
}),
|
}),
|
||||||
|
|
@ -531,17 +530,19 @@ fn render_inspector(
|
||||||
v_flex()
|
v_flex()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
.p_3()
|
.p_3()
|
||||||
.gap_3()
|
.gap_y_3()
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.when_some(source_location, |this, source_location| {
|
.when_some(source_location, |this, source_location| {
|
||||||
this.child(
|
this.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_1()
|
.gap_x_2()
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.child(
|
.child(
|
||||||
Link::new("source-location")
|
Link::new("source-location")
|
||||||
.href(format!("file://{}", source_location))
|
.href(format!("file://{}", source_location))
|
||||||
.child(source_location.clone()),
|
.child(source_location.clone())
|
||||||
|
.flex_1()
|
||||||
|
.overflow_x_hidden(),
|
||||||
)
|
)
|
||||||
.child(Clipboard::new("copy-source-location").value(source_location)),
|
.child(Clipboard::new("copy-source-location").value(source_location)),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue