Add justification buttons to editor-libcosmic

This commit is contained in:
Hojjat 2023-02-22 21:59:03 -07:00
parent 59e89bdbaa
commit 2442422762
5 changed files with 42 additions and 5 deletions

View file

@ -8,6 +8,7 @@ use cosmic::{
widget::{self, tree, Widget},
{Color, Element, Length, Point, Rectangle, Size},
},
iced_winit::renderer::BorderRadius,
theme::Theme,
};
use cosmic_text::{Attrs, AttrsList, BufferLine, Metrics, SwashCache};
@ -140,7 +141,7 @@ where
renderer.fill_quad(
renderer::Quad {
bounds: layout.bounds(),
border_radius: 0.0,
border_radius: BorderRadius::default(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
},