elementary/granite

HeaderLabel: Expose label xalign property

开放

#977 创建于 2026年4月22日

 (0 条评论) (0 个反应) (0 位负责人)Vala (62 个派生)auto 404
Priority: Wishlistgood first issue

仓库指标

星标
 (318 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Problem

I cannot properly, fully center the placeholder text here. The wrap is done assuming the text is left-aligned, leaving the placeholder here strangely bungled

the style class being deprecated, it would be nifty to use headerlabel here, but it lacks the granularity of Gtk.Label

Proposal

expose the base Gtk.Label xalign property for Granite.HeaderLabel I suppose one could want the wrap property too to control how it is displayed

current workaround is to

var a = (Gtk.Label)placeholder.get_last_child ();
a.xalign = 0.5f;

Prior Art (Optional)

No response

贡献者指南