125 lines
4.5 KiB
XML
125 lines
4.5 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!-- Created with Cambalache 0.16.0 -->
|
|
<interface>
|
|
<requires lib="gtk" version="4.12"/>
|
|
<template class="SLTotpDialog" parent="GtkWindow">
|
|
<property name="modal">True</property>
|
|
<property name="title">TOTP Entry</property>
|
|
<child>
|
|
<object class="GtkOverlay" id="overlay">
|
|
<property name="child">form_wrapper</property>
|
|
<property name="halign">center</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="valign">center</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkGrid" id="form_wrapper">
|
|
<property name="column-spacing">5</property>
|
|
<property name="halign">center</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="margin-bottom">10</property>
|
|
<property name="margin-end">10</property>
|
|
<property name="margin-start">10</property>
|
|
<property name="margin-top">10</property>
|
|
<property name="row-spacing">5</property>
|
|
<property name="valign">center</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="halign">center</property>
|
|
<property name="hexpand">True</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="halign">center</property>
|
|
<property name="icon-name">dialog-password-symbolic</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">TOTP</property>
|
|
<style>
|
|
<class name="login-title-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="column-span">2</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="accept_button">
|
|
<property name="label">Accept</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="cancel_button">
|
|
<property name="label">Cancel</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="code_entry">
|
|
<property name="placeholder-text">TOTP Code</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="column-span">2</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="error_label">
|
|
<property name="label">ERROR</property>
|
|
<style>
|
|
<class name="error-message-label"/>
|
|
</style>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="column-span">2</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkBox" id="loading_overlay">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkSpinner">
|
|
<property name="spinning">True</property>
|
|
<property name="valign">end</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Loading...</property>
|
|
<property name="valign">start</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</interface>
|