Stub out blank pane experience

This commit is contained in:
Mikayla Maki 2023-03-10 09:54:20 -08:00
parent 648f0e5b7b
commit 281ff92236
3 changed files with 8 additions and 129 deletions

View File

@ -1,41 +0,0 @@
<svg width="257" height="258" viewBox="0 0 257 258" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_ddiii_100_57)">
<path d="M205.45 52.5503L241.758 15.4352C244.103 13.0378 242.405 9 239.051 9H24.1479C15.782 9 9 15.782 9 24.1479V200.243M205.45 52.5503H60.8343C56.6513 52.5503 53.2604 55.9413 53.2604 60.1243V160.006M205.45 52.5503L161.189 96.574M161.189 96.574H101.071C98.9795 96.574 97.284 98.2695 97.284 100.361V120.243M161.189 96.574L97.284 160.716M97.284 160.716H157.402C159.494 160.716 161.189 159.02 161.189 156.929V136.574M97.284 160.716L53.2604 203.793M53.2604 203.793L15.4233 241.832C13.0474 244.221 14.7392 248.29 18.1082 248.29H233.852C242.218 248.29 249 241.508 249 233.142V69.5917M53.2604 203.793H197.402C201.585 203.793 204.976 200.402 204.976 196.219V96.574" stroke="black" stroke-opacity="0.05" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges"/>
</g>
<defs>
<filter id="filter0_ddiii_100_57" x="-1" y="0" width="257" height="258.29" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1" dy="-1"/>
<feGaussianBlur stdDeviation="1"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_100_57"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1" dy="2"/>
<feGaussianBlur stdDeviation="0.5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0"/>
<feBlend mode="normal" in2="effect1_dropShadow_100_57" result="effect2_dropShadow_100_57"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_100_57" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1" dy="1"/>
<feGaussianBlur stdDeviation="0.5"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/>
<feBlend mode="normal" in2="shape" result="effect3_innerShadow_100_57"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1"/>
<feGaussianBlur stdDeviation="1"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"/>
<feBlend mode="normal" in2="effect3_innerShadow_100_57" result="effect4_innerShadow_100_57"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-8" dy="6"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
<feBlend mode="normal" in2="effect4_innerShadow_100_57" result="effect5_innerShadow_100_57"/>
</filter>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -1,23 +0,0 @@
<svg width="257" height="258" viewBox="0 0 257 258" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_dd_110_85)">
<path d="M205.45 52.5503L241.758 15.4352C244.103 13.0378 242.405 9 239.051 9H24.1479C15.782 9 9 15.782 9 24.1479V200.243M205.45 52.5503H60.8343C56.6513 52.5503 53.2604 55.9413 53.2604 60.1243V160.006M205.45 52.5503L161.189 96.574M161.189 96.574H101.071C98.9795 96.574 97.284 98.2695 97.284 100.361V120.243M161.189 96.574L97.284 160.716M97.284 160.716H157.402C159.494 160.716 161.189 159.02 161.189 156.929V136.574M97.284 160.716L53.2604 203.793M53.2604 203.793L15.4233 241.832C13.0474 244.221 14.7392 248.29 18.1082 248.29H233.852C242.218 248.29 249 241.508 249 233.142V69.5917M53.2604 203.793H197.402C201.585 203.793 204.976 200.402 204.976 196.219V96.574" stroke="black" stroke-opacity="0.01" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges"/>
</g>
<defs>
<filter id="filter0_dd_110_85" x="0" y="0" width="256" height="257.29" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1" dy="-1"/>
<feGaussianBlur stdDeviation="1"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_110_85"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="-1" dy="2"/>
<feGaussianBlur stdDeviation="0.5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0"/>
<feBlend mode="normal" in2="effect1_dropShadow_110_85" result="effect2_dropShadow_110_85"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_110_85" result="shape"/>
</filter>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -217,8 +217,8 @@ pub struct Pane {
toolbar: ViewHandle<Toolbar>,
tab_bar_context_menu: ViewHandle<ContextMenu>,
docked: Option<DockAnchor>,
background_actions: BackgroundActions,
workspace_id: usize,
_background_actions: BackgroundActions,
_workspace_id: usize,
}
pub struct ItemNavHistory {
@ -301,8 +301,8 @@ impl Pane {
toolbar: cx.add_view(|_| Toolbar::new(handle)),
tab_bar_context_menu: context_menu,
docked,
background_actions,
workspace_id,
_background_actions: background_actions,
_workspace_id: workspace_id,
}
}
@ -1427,68 +1427,11 @@ impl Pane {
.boxed()
}
fn render_blank_pane(&mut self, theme: &Theme, cx: &mut RenderContext<Self>) -> ElementBox {
fn render_blank_pane(&mut self, theme: &Theme, _cx: &mut RenderContext<Self>) -> ElementBox {
let background = theme.workspace.background;
let theme = &theme.workspace.blank_pane;
Stack::new()
.with_children([
Empty::new()
.contained()
.with_background_color(background)
.boxed(),
Flex::column()
.align_children_center()
.with_children([
Stack::new()
.with_children([
theme::ui::icon(&theme.logo_shadow).aligned().boxed(),
theme::ui::icon(&theme.logo).aligned().boxed(),
])
.contained()
.with_style(theme.logo_container)
.boxed(),
Flex::column()
.with_children({
enum KeyboardHint {}
let keyboard_hint = &theme.keyboard_hint;
let workspace_id = self.workspace_id;
(self.background_actions)().into_iter().enumerate().map(
move |(idx, (text, action))| {
let hint_action = action.boxed_clone();
MouseEventHandler::<KeyboardHint>::new(
idx,
cx,
move |state, cx| {
let style = keyboard_hint.style_for(state, false);
theme::ui::keystroke_label_for(
cx.window_id(),
workspace_id,
text,
&style,
&style,
hint_action,
)
.boxed()
},
)
.on_click(MouseButton::Left, move |_, cx| {
cx.dispatch_any_action(action.boxed_clone())
})
.with_cursor_style(CursorStyle::PointingHand)
.boxed()
},
)
})
.contained()
.with_style(theme.keyboard_hints)
.constrained()
.with_max_width(theme.keyboard_hint_width)
.aligned()
.boxed(),
])
.aligned()
.boxed(),
])
Empty::new()
.contained()
.with_background_color(background)
.boxed()
}
}