fix(dtmm): Fix mod title in details pane on Windows
While it didn't work anyways, the center alignment somehow prevented the label from showing at all on Windows.
This commit is contained in:
parent
882000fce6
commit
705bc13c7b
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,7 @@ use druid::widget::{
|
|||
use druid::{lens, Data, ImageBuf, LifeCycleCtx};
|
||||
use druid::{
|
||||
Color, FileDialogOptions, FileSpec, FontDescriptor, FontFamily, Key, LensExt, SingleUse,
|
||||
TextAlignment, Widget, WidgetExt, WindowDesc, WindowId,
|
||||
Widget, WidgetExt, WindowDesc, WindowId,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
|
@ -216,7 +216,6 @@ fn build_mod_details_info() -> impl Widget<State> {
|
|||
Maybe::new(
|
||||
|| {
|
||||
let name = Label::raw()
|
||||
.with_text_alignment(TextAlignment::Center)
|
||||
.with_text_size(24.)
|
||||
// Force the label to take up the entire details' pane width,
|
||||
// so that we can center-align it.
|
||||
|
|
Loading…
Add table
Reference in a new issue