Allow UI font weight to be assigned in settings (#12333)
Release Notes: - Added the ability to configure the weight of your UI font in standard CSS weight units from 0 to 900.
This commit is contained in:
parent
6276281e8a
commit
e19339bc1d
22 changed files with 67 additions and 52 deletions
|
@ -131,7 +131,7 @@ impl ProjectIndexDebugView {
|
|||
}
|
||||
|
||||
fn render_chunk(&mut self, ix: usize, cx: &mut ViewContext<Self>) -> AnyElement {
|
||||
let buffer_font = ThemeSettings::get_global(cx).buffer_font.family.clone();
|
||||
let buffer_font = ThemeSettings::get_global(cx).buffer_font.clone();
|
||||
let Some(state) = &self.selected_path else {
|
||||
return div().into_any();
|
||||
};
|
||||
|
@ -142,7 +142,7 @@ impl ProjectIndexDebugView {
|
|||
div()
|
||||
.text_ui(cx)
|
||||
.w_full()
|
||||
.font_family(buffer_font)
|
||||
.font(buffer_font)
|
||||
.child(
|
||||
h_flex()
|
||||
.justify_between()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue