Repositioning

This commit is contained in:
Nicola Guerrera
2023-02-26 23:40:43 +01:00
committed by Nova
parent fc1d0979a8
commit 08a9d8ed66
5 changed files with 34 additions and 38 deletions

View File

@@ -95,7 +95,7 @@ impl App {
text_align: Alignment::XCenter | Alignment::YCenter,
..Default::default()
};
let protostar = ProtoStar::create_from_desktop_file(parent, desktop_file.clone()).ok()?;
let protostar = ProtoStar::create_from_desktop_file(parent, position, desktop_file.clone()).ok()?;
let text = Text::create(
protostar.content_parent(),
Transform::from_position_rotation(
@@ -106,10 +106,6 @@ impl App {
style,
)
.unwrap();
protostar
.content_parent()
.set_position(None, position)
.unwrap();
Some(App {
_text: text,
_desktop_file: desktop_file,

View File

@@ -155,10 +155,6 @@ impl App {
style,
)
.unwrap();
protostar
.content_parent()
.set_position(None, position)
.unwrap();
Some(App {
_text: text,
_desktop_file: desktop_file,