<?xml version="1.0" encoding="UTF-8"?>

<!-- This file is part of Wike (com.github.hugolabe.Wike)
SPDX-FileCopyrightText: 2021-25 Hugo Olabera
SPDX-License-Identifier: GPL-3.0-or-later
-->

<!-- Row for history list -->
<interface>
  <template class="HistoryRow" parent="GtkListBoxRow">

    <!-- History item row box -->
    <child>
      <object class="GtkBox">
        <property name="margin-top">6</property>
        <property name="margin-bottom">6</property>
        <property name="margin-start">3</property>
        <property name="margin-end">3</property>
        <property name="spacing">9</property>

        <!-- Select button -->
        <child>
          <object class="GtkCheckButton" id="select_check">
            <property name="valign">center</property>
            <property name="visible">false</property>
            <style>
              <class name="selection-mode"/>
            </style>
          </object>
        </child>

        <!-- Labels box -->
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <property name="hexpand">true</property>
            <property name="valign">center</property>
            <property name="spacing">3</property>

            <!-- Item title label -->
            <child>
              <object class="GtkLabel" id="title_label">
                <property name="halign">start</property>
                <property name="ellipsize">end</property>
              </object>
            </child>

            <!-- Item time/language box -->
            <child>
              <object class="GtkBox">
                <property name="spacing">6</property>

                <!-- Item time label -->
                <child>
                  <object class="GtkLabel" id="time_label">
                    <property name="halign">start</property>
                    <style>
                      <class name="caption"/>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>

                <!-- Item language label -->
                <child>
                  <object class="GtkLabel" id="lang_label">
                    <property name="halign">start</property>
                    <property name="ellipsize">end</property>
                    <style>
                      <class name="caption"/>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>

              </object>
            </child>

          </object>
        </child>

      </object>
    </child>

  </template>
</interface>
