roster/src/widgets/request-item.ui
Pavel Baksy a6c389edd7 Improve sidebar layout: center Projects title, fix padding, add method chips
- Center "Projects" label in sidebar headerbar via title-widget property
- Fix asymmetric request list margins (margin-start 12→6, add margin-end 6)
- Replace dim method labels with colored chips (GET/POST/PUT/PATCH/DELETE)
2026-05-20 00:07:59 +02:00

41 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="RequestItem" parent="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">6</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="margin-top">3</property>
<property name="margin-bottom">3</property>
<child>
<object class="GtkLabel" id="method_label">
<property name="xalign">0.5</property>
<style>
<class name="method-chip"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="name_label">
<property name="xalign">0</property>
<property name="ellipsize">end</property>
<property name="hexpand">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="delete_button">
<property name="icon-name">edit-delete-symbolic</property>
<property name="tooltip-text">Delete request</property>
<signal name="clicked" handler="on_delete_clicked"/>
<style>
<class name="flat"/>
</style>
</object>
</child>
</template>
</interface>