config: store font names in Arc
This commit is contained in:
parent
ca134e683b
commit
d9eb14e2bc
6 changed files with 21 additions and 14 deletions
|
|
@ -673,7 +673,7 @@ impl ContainerNode {
|
|||
let theme = &self.state.theme;
|
||||
let th = theme.sizes.title_height.get();
|
||||
let bw = theme.sizes.border_width.get();
|
||||
let font = theme.font.borrow_mut();
|
||||
let font = theme.font.get();
|
||||
let cwidth = self.width.get();
|
||||
let cheight = self.height.get();
|
||||
let ctx = self.state.render_ctx.get();
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ impl FloatNode {
|
|||
false => theme.colors.unfocused_title_text.get(),
|
||||
};
|
||||
let bw = theme.sizes.border_width.get();
|
||||
let font = theme.font.borrow_mut();
|
||||
let font = theme.font.get();
|
||||
let title = self.title.borrow_mut();
|
||||
let pos = self.position.get();
|
||||
if pos.width() <= 2 * bw || title.is_empty() {
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ impl OutputNode {
|
|||
rd.active_workspace = None;
|
||||
rd.status = None;
|
||||
let mut pos = 0;
|
||||
let font = self.state.theme.font.borrow_mut();
|
||||
let font = self.state.theme.font.get();
|
||||
let theme = &self.state.theme;
|
||||
let th = theme.sizes.title_height.get();
|
||||
let scale = self.global.persistent.scale.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue