Commit dbcaedd5 authored by Adrien Plazas's avatar Adrien Plazas

password: Make the page adaptive

parent cda554e5
Pipeline #25531 failed with stage
in 0 seconds
......@@ -2,12 +2,14 @@
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="GisPasswordPage" parent="GisPage">
<child>
<object class="HdyColumn">
<property name="linear_growth_width">400</property>
<property name="maximum_width">600</property>
<property name="visible">True</property>
<child>
<object class="GtkBox" id="page">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">fill</property>
<property name="orientation">vertical</property>
<property name="spacing">18</property>
<child>
......@@ -20,28 +22,21 @@
</object>
</child>
<child>
<object class="GtkGrid" id="secrets">
<object class="GtkBox" id="secrets">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<property name="margin_top">40</property>
<property name="spacing">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="password_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="xalign">1</property>
<property name="halign">start</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Password</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">password_entry</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="password_entry">
......@@ -51,51 +46,10 @@
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="confirm_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">_Confirm</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">confirm_entry</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="confirm_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLevelBar" id="password_strength">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">fill</property>
<property name="valign">center</property>
<property name="max-value">5</property>
<property name="mode">discrete</property>
<offsets>
......@@ -106,12 +60,6 @@
<offset name="strength-high" value="5"/>
</offsets>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="password_explanation">
......@@ -120,8 +68,6 @@
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes"></property>
<property name="width-chars">35</property>
<property name="max-width-chars">35</property>
<property name="height-request">50</property>
<property name="wrap">True</property>
<property name="hexpand">True</property>
......@@ -133,12 +79,26 @@
<attribute name="scale" value="0.8"/>
</attributes>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="confirm_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Confirm</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">confirm_entry</property>
</object>
</child>
<child>
<object class="GtkEntry" id="confirm_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
</child>
<child>
<object class="GtkLabel" id="confirm_explanation">
......@@ -147,8 +107,6 @@
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes"></property>
<property name="width-chars">35</property>
<property name="max-width-chars">35</property>
<property name="wrap">True</property>
<property name="hexpand">True</property>
<property name="wrap_mode">word-char</property>
......@@ -159,16 +117,12 @@
<attribute name="scale" value="0.8"/>
</attributes>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment