5d95eb56bb
Adds a custom RoomTitle widget in place of AdwWindowTitle. This will allow us to have markup in titles and subtitles, and allow us to have tooltips set appropriately.
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="RoomTitle" parent="AdwBin">
|
|
<child>
|
|
<object class="GtkBox" id="box">
|
|
<property name="orientation">vertical</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<object class="GtkLabel" id="title_label">
|
|
<property name="ellipsize">end</property>
|
|
<property name="halign">center</property>
|
|
<property name="wrap">False</property>
|
|
<property name="single-line-mode">True</property>
|
|
<property name="use-markup">True</property>
|
|
<property name="width-chars">5</property>
|
|
<property name="label" bind-source="RoomTitle" bind-property="title" bind-flags="sync-create"/>
|
|
<property name="tooltip-markup" bind-source="RoomTitle" bind-property="title" bind-flags="sync-create"/>
|
|
<style>
|
|
<class name="title"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="subtitle_label">
|
|
<property name="ellipsize">end</property>
|
|
<property name="halign">center</property>
|
|
<property name="wrap">False</property>
|
|
<property name="single-line-mode">True</property>
|
|
<property name="use-markup">True</property>
|
|
<property name="visible">False</property>
|
|
<property name="label" bind-source="RoomTitle" bind-property="subtitle" bind-flags="sync-create"/>
|
|
<property name="tooltip-markup" bind-source="RoomTitle" bind-property="subtitle" bind-flags="sync-create"/>
|
|
<style>
|
|
<class name="subtitle"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|