Reset horizontal scroll to leftmost position on open so variable names are always visible first. Increase dialog width from 1100 to 1200px.
91 lines
3.5 KiB
XML
91 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk" version="4.0"/>
|
|
<requires lib="libadwaita" version="1.0"/>
|
|
|
|
<template class="EnvironmentsDialog" parent="AdwDialog">
|
|
<property name="title">Manage Environments</property>
|
|
<property name="content-width">1200</property>
|
|
<property name="content-height">600</property>
|
|
<property name="follows-content-size">false</property>
|
|
|
|
<child>
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar">
|
|
<property name="show-title">true</property>
|
|
</object>
|
|
</child>
|
|
|
|
<property name="content">
|
|
<object class="GtkScrolledWindow" id="scrolled_window">
|
|
<property name="vexpand">true</property>
|
|
<child>
|
|
<object class="AdwClamp">
|
|
<property name="maximum-size">1200</property>
|
|
<property name="tightening-threshold">800</property>
|
|
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="spacing">12</property>
|
|
|
|
<!-- Header Section -->
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">horizontal</property>
|
|
<property name="spacing">12</property>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Environments</property>
|
|
<property name="xalign">0</property>
|
|
<property name="hexpand">True</property>
|
|
<style>
|
|
<class name="title-4"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkButton" id="add_environment_button">
|
|
<property name="label">Add Environment</property>
|
|
<property name="icon-name">list-add-symbolic</property>
|
|
<property name="tooltip-text">Add environment</property>
|
|
<signal name="clicked" handler="on_add_environment_clicked"/>
|
|
<style>
|
|
<class name="flat"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Table Frame -->
|
|
<child>
|
|
<object class="GtkFrame">
|
|
<child>
|
|
<object class="GtkBox" id="table_container">
|
|
<property name="orientation">vertical</property>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|