Unify circular corner geometry and shader masks
This commit is contained in:
1 parent
0162870cca
commit
f110ec80e1
19 files changed
+277
-135
No files matched your search
@@ -361,12 +361,13 @@ impl FereseShell {
|
||||
&& editor.id == id
|
||||
{
|
||||
let id = id.to_owned();
|
||||
let editor_radius = ferese_theme::inner_radius(self.config.theme.material_radius, note.padding);
|
||||
body = body.push(
|
||||
cosmic::widget::TextEditor::new(&editor.content)
|
||||
.style(|theme, status| {
|
||||
.style(move |theme, status| {
|
||||
use cosmic::iced::widget::text_editor::Catalog;
|
||||
let mut style = theme.style(&<cosmic::Theme as Catalog>::default(), status);
|
||||
style.border.radius = motion::radius(f32::MAX).into();
|
||||
style.border.radius = editor_radius.into();
|
||||
style
|
||||
})
|
||||
.height(Length::Fill)
|
||||
|
||||
Reference in new issue
Block a user