From 705bc13c7b7684fc9993a70528ae22934596fc76 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 14 Mar 2023 21:57:10 +0100 Subject: [PATCH] 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. --- crates/dtmm/src/ui/window/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/dtmm/src/ui/window/main.rs b/crates/dtmm/src/ui/window/main.rs index 2506810..2b5d42f 100644 --- a/crates/dtmm/src/ui/window/main.rs +++ b/crates/dtmm/src/ui/window/main.rs @@ -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 { 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. -- 2.45.3