This simplifies setting button image and improves the way they are presented as the css will then be handled better this way.
277 lines
14 KiB
XML
277 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk" version="4.0"/>
|
|
<template class="CcWwanSimLockDialog" parent="GtkDialog">
|
|
<property name="default-height">480</property>
|
|
<property name="default-width">360</property>
|
|
<property name="hide-on-close">True</property>
|
|
<property name="modal">True</property>
|
|
<property name="title" translatable="yes">SIM Lock</property>
|
|
|
|
<child type="titlebar">
|
|
<object class="GtkHeaderBar">
|
|
<child type="end">
|
|
<object class="GtkStack" id="button_stack">
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">next</property>
|
|
<!-- Next Button -->
|
|
<property name="child">
|
|
<object class="GtkButton" id="next_button">
|
|
<property name="sensitive">False</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Next</property>
|
|
<signal name="clicked" handler="cc_wwan_pin_next_clicked_cb" swapped="yes"/>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">apply</property>
|
|
<!-- Apply button -->
|
|
<property name="child">
|
|
<object class="GtkButton" id="apply_button">
|
|
<property name="use-underline">True</property>
|
|
<signal name="clicked" handler="cc_wwan_pin_apply_clicked_cb" swapped="yes"/>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="width-request">340</property>
|
|
<property name="height-request">360</property>
|
|
|
|
<child>
|
|
<object class="AdwClamp">
|
|
<property name="margin-top">32</property>
|
|
<property name="margin-bottom">32</property>
|
|
<property name="margin-start">18</property>
|
|
<property name="margin-end">18</property>
|
|
<child>
|
|
<object class="GtkOverlay">
|
|
<child type="overlay">
|
|
<object class="GtkRevealer" id="notification_revealer">
|
|
<property name="halign">center</property>
|
|
<property name="valign">start</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="spacing">12</property>
|
|
<style>
|
|
<class name="frame"/>
|
|
<class name="app-notification"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkLabel" id="notification_label">
|
|
<property name="wrap">True</property>
|
|
<property name="wrap-mode">word-char</property>
|
|
<property name="use-markup">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="icon-name">window-close-symbolic</property>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Close</property>
|
|
</accessibility>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<property name="child">
|
|
<object class="GtkStack" id="pin_settings_stack">
|
|
<property name="transition-type">slide-left</property>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">pin-settings</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
|
|
<!-- SIM Lock Switch -->
|
|
<child>
|
|
<object class="GtkListBox">
|
|
<property name="selection-mode">none</property>
|
|
<property name="margin-bottom">18</property>
|
|
<style>
|
|
<class name="frame"/>
|
|
</style>
|
|
<child>
|
|
<object class="CcListRow" id="lock_row">
|
|
<property name="show-switch">True</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="title" translatable="yes">_Lock SIM with PIN</property>
|
|
<signal name="notify::active" handler="cc_wwan_sim_lock_changed_cb" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkGrid" id="lock_change_grid">
|
|
<property name="visible">False</property>
|
|
<property name="row-spacing">18</property>
|
|
<property name="column-spacing">12</property>
|
|
|
|
<!-- SIM Lock Change Title -->
|
|
<child>
|
|
<object class="GtkLabel" id="lock_change_title">
|
|
<property name="label" translatable="yes">Change PIN</property>
|
|
<property name="margin-bottom">9</property>
|
|
<property name="xalign">0.0</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"></attribute>
|
|
</attributes>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
<property name="column-span">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- PIN Entry -->
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">New PIN</property>
|
|
<property name="halign">end</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="new_pin_entry">
|
|
<property name="visibility">False</property>
|
|
<property name="input-purpose">password</property>
|
|
<property name="input-hints">no-emoji</property>
|
|
<property name="max-length">8</property>
|
|
<property name="max-width-chars">32</property>
|
|
<signal name="notify::text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_text_inserted_cb" swapped="yes"/>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Confirm</property>
|
|
<property name="halign">end</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Confirm PIN Entry -->
|
|
<child>
|
|
<object class="GtkEntry" id="pin_confirm_entry">
|
|
<property name="visibility">False</property>
|
|
<property name="input-purpose">password</property>
|
|
<property name="input-hints">no-emoji</property>
|
|
<property name="max-length">8</property>
|
|
<property name="max-width-chars">32</property>
|
|
<signal name="notify::text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">pin-entry</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="valign">center</property>
|
|
<property name="halign">center</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="pixel-size">128</property>
|
|
<property name="icon-name">dialog-password-symbolic</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="">
|
|
<property name="label" translatable="yes">Enter current PIN to change SIM lock settings</property>
|
|
<property name="margin-bottom">24</property>
|
|
<property name="halign">center</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="pin_entry">
|
|
<property name="visibility">False</property>
|
|
<property name="input-purpose">password</property>
|
|
<property name="input-hints">no-emoji</property>
|
|
<property name="max-length">8</property>
|
|
<property name="max-width-chars">32</property>
|
|
<signal name="notify::text" handler="cc_wwan_pin_entered_cb" swapped="yes"/>
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_text_inserted_cb" swapped="yes"/>
|
|
<signal name="activate" handler="cc_wwan_pin_apply_clicked_cb" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child> <!-- ./internal-child -->
|
|
|
|
<child type="action">
|
|
<object class="GtkButton" id="cancel_button">
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
<signal name="clicked" handler="gtk_widget_hide" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<action-widgets>
|
|
<action-widget response="cancel">cancel_button</action-widget>
|
|
</action-widgets>
|
|
|
|
</template>
|
|
</interface>
|