fix(dtmm): Fix mod title in details pane on Windows #68

Merged
lucas merged 1 commit from fix/mod-title-windows into master 2023-03-14 21:59:08 +01:00
Showing only changes of commit 705bc13c7b - Show all commits

View file

@ -8,7 +8,7 @@ use druid::widget::{
use druid::{lens, Data, ImageBuf, LifeCycleCtx}; use druid::{lens, Data, ImageBuf, LifeCycleCtx};
use druid::{ use druid::{
Color, FileDialogOptions, FileSpec, FontDescriptor, FontFamily, Key, LensExt, SingleUse, Color, FileDialogOptions, FileSpec, FontDescriptor, FontFamily, Key, LensExt, SingleUse,
TextAlignment, Widget, WidgetExt, WindowDesc, WindowId, Widget, WidgetExt, WindowDesc, WindowId,
}; };
use lazy_static::lazy_static; use lazy_static::lazy_static;
@ -216,7 +216,6 @@ fn build_mod_details_info() -> impl Widget<State> {
Maybe::new( Maybe::new(
|| { || {
let name = Label::raw() let name = Label::raw()
.with_text_alignment(TextAlignment::Center)
.with_text_size(24.) .with_text_size(24.)
// Force the label to take up the entire details' pane width, // Force the label to take up the entire details' pane width,
// so that we can center-align it. // so that we can center-align it.