Repositioning
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -155,10 +155,6 @@ impl App {
|
||||
style,
|
||||
)
|
||||
.unwrap();
|
||||
protostar
|
||||
.content_parent()
|
||||
.set_position(None, position)
|
||||
.unwrap();
|
||||
Some(App {
|
||||
_text: text,
|
||||
_desktop_file: desktop_file,
|
||||
|
||||
Reference in New Issue
Block a user