linux: Fix window border on Linux.
This commit is contained in:
parent
ea0954b425
commit
7d8166a05e
2 changed files with 16 additions and 0 deletions
|
|
@ -179,6 +179,10 @@ impl StoryTiles {
|
||||||
height: px(480.),
|
height: px(480.),
|
||||||
}),
|
}),
|
||||||
kind: WindowKind::Normal,
|
kind: WindowKind::Normal,
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
window_background: gpui::WindowBackgroundAppearance::Transparent,
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
window_decorations: Some(gpui::WindowDecorations::Client),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -218,8 +222,12 @@ impl Render for StoryTiles {
|
||||||
let drawer_layer = Root::render_drawer_layer(cx);
|
let drawer_layer = Root::render_drawer_layer(cx);
|
||||||
let modal_layer = Root::render_modal_layer(cx);
|
let modal_layer = Root::render_modal_layer(cx);
|
||||||
let notification_layer = Root::render_notification_layer(cx);
|
let notification_layer = Root::render_notification_layer(cx);
|
||||||
|
let is_linux = cfg!(target_os = "linux");
|
||||||
|
|
||||||
div()
|
div()
|
||||||
|
.when(is_linux, |this| {
|
||||||
|
this.border_1().border_color(cx.theme().border)
|
||||||
|
})
|
||||||
.font_family(".SystemUIFont")
|
.font_family(".SystemUIFont")
|
||||||
.relative()
|
.relative()
|
||||||
.size_full()
|
.size_full()
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,10 @@ impl StoryWorkspace {
|
||||||
width: px(640.),
|
width: px(640.),
|
||||||
height: px(480.),
|
height: px(480.),
|
||||||
}),
|
}),
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
window_background: gpui::WindowBackgroundAppearance::Transparent,
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
window_decorations: Some(gpui::WindowDecorations::Client),
|
||||||
kind: WindowKind::Normal,
|
kind: WindowKind::Normal,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
@ -446,9 +450,13 @@ impl Render for StoryWorkspace {
|
||||||
let notification_layer = Root::render_notification_layer(cx);
|
let notification_layer = Root::render_notification_layer(cx);
|
||||||
let notifications_count = cx.notifications().len();
|
let notifications_count = cx.notifications().len();
|
||||||
let invisible_panels = AppState::global(cx).invisible_panels.clone();
|
let invisible_panels = AppState::global(cx).invisible_panels.clone();
|
||||||
|
let is_linux = cfg!(target_os = "linux");
|
||||||
|
|
||||||
div()
|
div()
|
||||||
.id("story-workspace")
|
.id("story-workspace")
|
||||||
|
.when(is_linux, |this| {
|
||||||
|
this.border_1().border_color(cx.theme().border)
|
||||||
|
})
|
||||||
.on_action(cx.listener(Self::on_action_add_panel))
|
.on_action(cx.listener(Self::on_action_add_panel))
|
||||||
.on_action(cx.listener(Self::on_action_toggle_panel_visible))
|
.on_action(cx.listener(Self::on_action_toggle_panel_visible))
|
||||||
.relative()
|
.relative()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue