Allow customizing the pane's following border width in the theme
This commit is contained in:
parent
4ed8f6fbb4
commit
c105802b2d
3 changed files with 4 additions and 2 deletions
|
@ -36,6 +36,7 @@ pub struct Workspace {
|
||||||
pub active_tab: Tab,
|
pub active_tab: Tab,
|
||||||
pub pane_divider: Border,
|
pub pane_divider: Border,
|
||||||
pub leader_border_opacity: f32,
|
pub leader_border_opacity: f32,
|
||||||
|
pub leader_border_width: f32,
|
||||||
pub left_sidebar: Sidebar,
|
pub left_sidebar: Sidebar,
|
||||||
pub right_sidebar: Sidebar,
|
pub right_sidebar: Sidebar,
|
||||||
pub status_bar: StatusBar,
|
pub status_bar: StatusBar,
|
||||||
|
|
|
@ -111,7 +111,7 @@ impl Member {
|
||||||
.editor
|
.editor
|
||||||
.replica_selection_style(leader.replica_id)
|
.replica_selection_style(leader.replica_id)
|
||||||
.cursor;
|
.cursor;
|
||||||
border = Border::all(1.0, leader_color);
|
border = Border::all(theme.workspace.leader_border_width, leader_color);
|
||||||
border
|
border
|
||||||
.color
|
.color
|
||||||
.fade_out(1. - theme.workspace.leader_border_opacity);
|
.fade_out(1. - theme.workspace.leader_border_opacity);
|
||||||
|
|
|
@ -4,7 +4,8 @@ base = { family = "Zed Sans", size = 14 }
|
||||||
[workspace]
|
[workspace]
|
||||||
background = "$surface.0"
|
background = "$surface.0"
|
||||||
pane_divider = { width = 1, color = "$border.0" }
|
pane_divider = { width = 1, color = "$border.0" }
|
||||||
leader_border_opacity = 0.6
|
leader_border_opacity = 0.7
|
||||||
|
leader_border_width = 2.0
|
||||||
|
|
||||||
[workspace.titlebar]
|
[workspace.titlebar]
|
||||||
height = 32
|
height = 32
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue