mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Style titlebar via theme and give it a bottom border
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
b29e673c43
commit
59931a472b
3 changed files with 11 additions and 3 deletions
|
@ -4,6 +4,9 @@ base = { family = "Inconsolata", size = 14 }
|
|||
[workspace]
|
||||
background = "$surface.0"
|
||||
|
||||
[workspace.titlebar]
|
||||
border = { width = 1, bottom = true, color = "$surface.1" }
|
||||
|
||||
[workspace.tab]
|
||||
text = "$text.2"
|
||||
padding = { left = 10, right = 10 }
|
||||
|
|
|
@ -33,6 +33,7 @@ pub struct SyntaxTheme {
|
|||
#[derive(Deserialize)]
|
||||
pub struct Workspace {
|
||||
pub background: Color,
|
||||
pub titlebar: ContainerStyle,
|
||||
pub tab: Tab,
|
||||
pub active_tab: Tab,
|
||||
pub sidebar: Sidebar,
|
||||
|
|
|
@ -952,7 +952,11 @@ impl View for Workspace {
|
|||
Container::new(
|
||||
Flex::column()
|
||||
.with_child(
|
||||
ConstrainedBox::new(Empty::new().boxed())
|
||||
ConstrainedBox::new(
|
||||
Container::new(Empty::new().boxed())
|
||||
.with_style(&settings.theme.workspace.titlebar)
|
||||
.boxed(),
|
||||
)
|
||||
.with_height(32.)
|
||||
.named("titlebar"),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue