mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 14:43:55 +03:00
Add "zed" label to the title bar
This commit is contained in:
parent
64c26a73be
commit
21c74ca78d
@ -7,6 +7,7 @@ pane_divider = { width = 1, color = "$border.0" }
|
||||
|
||||
[workspace.titlebar]
|
||||
border = { width = 1, bottom = true, color = "$border.0" }
|
||||
text = { extends = "$text.0" }
|
||||
|
||||
[workspace.tab]
|
||||
text = "$text.2"
|
||||
|
@ -34,7 +34,7 @@ pub struct SyntaxTheme {
|
||||
#[derive(Deserialize)]
|
||||
pub struct Workspace {
|
||||
pub background: Color,
|
||||
pub titlebar: ContainerStyle,
|
||||
pub titlebar: ContainedLabel,
|
||||
pub tab: Tab,
|
||||
pub active_tab: Tab,
|
||||
pub pane_divider: Border,
|
||||
|
@ -949,13 +949,22 @@ impl View for Workspace {
|
||||
|
||||
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
||||
let settings = self.settings.borrow();
|
||||
let theme = &settings.theme;
|
||||
Container::new(
|
||||
Flex::column()
|
||||
.with_child(
|
||||
ConstrainedBox::new(
|
||||
Container::new(Empty::new().boxed())
|
||||
.with_style(&settings.theme.workspace.titlebar)
|
||||
.boxed(),
|
||||
Container::new(
|
||||
Align::new(
|
||||
Label::new(
|
||||
"zed".into(),
|
||||
theme.workspace.titlebar.label.clone()
|
||||
).boxed()
|
||||
)
|
||||
.boxed()
|
||||
)
|
||||
.with_style(&theme.workspace.titlebar.container)
|
||||
.boxed(),
|
||||
)
|
||||
.with_height(32.)
|
||||
.named("titlebar"),
|
||||
|
Loading…
Reference in New Issue
Block a user