Files
federated-calendar/src/gui/gcal-event-popover.ui
T
Shubh-1-am f6b5586191 gcal-event-popover: Fix for wrapping title text in event popover summary
Previously, the event title header text in the details popover was being ellipsized(truncated) instead of wrapping, making it difficult to read longer titles.
This commit updates the gcal-event-popover.ui file to set the "wrap" and "wrap-mode" properties to "true" and "word-char", respectively, for the summary label object.
This ensures that the event title header text is wrapped and more readable in the summary popover.

Fixes #1016.
2023-05-23 21:26:41 +00:00

181 lines
6.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GcalEventPopover" parent="GtkPopover">
<property name="default-widget">edit_button</property>
<style>
<class name="event-popover" />
</style>
<child>
<object class="GtkBox">
<property name="spacing">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="spacing">12</property>
<property name="orientation">vertical</property>
<!-- Title -->
<child>
<object class="GtkLabel" id="summary_label">
<property name="margin-top">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="wrap">true</property>
<property name="wrap-mode">word-char</property>
<property name="width-chars">30</property>
<property name="max-width-chars">40</property>
<style>
<class name="title-3" />
</style>
</object>
</child>
<!-- Date & Time -->
<child>
<object class="GtkLabel" id="date_time_label">
<property name="ellipsize">end</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkSeparator">
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<property name="propagate-natural-width">True</property>
<property name="propagate-natural-height">True</property>
<property name="max-content-height">400</property>
<child>
<object class="GtkBox">
<property name="spacing">12</property>
<property name="orientation">vertical</property>
<!-- Placeholder -->
<child>
<object class="GtkLabel" id="placeholder_label">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="valign">center</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="label" translatable="yes">No event information</property>
<attributes>
<attribute name="style" value="italic" />
</attributes>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<!-- Description -->
<child>
<object class="GtkLabel" id="description_label">
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="use-markup">True</property>
<property name="selectable">True</property>
<property name="max-width-chars">50</property>
<property name="xalign">0.0</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<!-- Location -->
<child>
<object class="GtkBox" id="location_box">
<property name="spacing">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Location</property>
<style>
<class name="heading" />
</style>
</object>
</child>
<child>
<object class="GtkSeparator">
</object>
</child>
<child>
<object class="GtkLabel" id="location_label">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="selectable">True</property>
<property name="xalign">0.0</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<!-- Meetings -->
<child>
<object class="GtkSeparator" />
</child>
<child>
<object class="GtkListBox" id="meetings_listbox">
<property name="visible">False</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="selection-mode">none</property>
<style>
<class name="calendar-list" />
</style>
</object>
</child>
<!-- Edit button -->
<child>
<object class="GtkButton" id="edit_button">
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="label" translatable="yes">Edit…</property>
<signal name="clicked" handler="on_edit_button_clicked_cb" object="GcalEventPopover" swapped="no" />
</object>
</child>
</object>
</child>
</template>
</interface>