Throw a little between filename and modified icon
We probably need a primitive to right-align an element within its parent, but I don't have strong opinions about how that should be designed, so I'm just adding this as a temporary measure so that the tabs won't look too ugly in the meantime.
This commit is contained in:
parent
ae57178f3e
commit
187eb95b13
2 changed files with 9 additions and 8 deletions
|
@ -36,6 +36,11 @@ impl Container {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn with_margin_left(mut self, margin: f32) -> Self {
|
||||||
|
self.margin.left = margin;
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
pub fn with_uniform_padding(mut self, padding: f32) -> Self {
|
pub fn with_uniform_padding(mut self, padding: f32) -> Self {
|
||||||
self.padding = Padding {
|
self.padding = Padding {
|
||||||
top: padding,
|
top: padding,
|
||||||
|
|
|
@ -196,16 +196,11 @@ impl Pane {
|
||||||
Align::new(
|
Align::new(
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.with_child(
|
.with_child(
|
||||||
Expanded::new(
|
Label::new(title, settings.ui_font_family, settings.ui_font_size)
|
||||||
1.0,
|
.boxed(),
|
||||||
Label::new(title, settings.ui_font_family, settings.ui_font_size)
|
|
||||||
.boxed(),
|
|
||||||
)
|
|
||||||
.boxed(),
|
|
||||||
)
|
)
|
||||||
.with_child(
|
.with_child(
|
||||||
Expanded::new(
|
Container::new(
|
||||||
1.0,
|
|
||||||
LineBox::new(
|
LineBox::new(
|
||||||
settings.ui_font_family,
|
settings.ui_font_family,
|
||||||
settings.ui_font_size,
|
settings.ui_font_size,
|
||||||
|
@ -217,6 +212,7 @@ impl Pane {
|
||||||
)
|
)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
|
.with_margin_left(20.)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
)
|
)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue