aboutsummaryrefslogtreecommitdiff
path: root/new-file-dialog.ui
diff options
context:
space:
mode:
Diffstat (limited to 'new-file-dialog.ui')
-rw-r--r--new-file-dialog.ui69
1 files changed, 69 insertions, 0 deletions
diff --git a/new-file-dialog.ui b/new-file-dialog.ui
new file mode 100644
index 0000000..2553951
--- /dev/null
+++ b/new-file-dialog.ui
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- from: https://gitlab.gnome.org/GNOME/nautilus/-/blob/main/src/resources/ui/nautilus-new-folder-dialog.ui -->
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <template class="NewFileDialog" parent="AdwDialog">
+ <property name="title" translatable="yes">New File</property>
+ <property name="content-width">450</property>
+ <property name="child">
+ <object class="AdwToolbarView">
+ <child type="top">
+ <object class="AdwHeaderBar"/>
+ </child>
+ <property name="content">
+ <object class="AdwPreferencesPage">
+ <child>
+ <object class="AdwPreferencesGroup">
+ <child>
+ <object class="AdwEntryRow" id="name_entry">
+ <property name="title" translatable="yes">File Name</property>
+ <property name="use-underline">True</property>
+<!-- <signal name="changed" handler="sg_filename_validator_validate" swapped="no"/>-->
+ <signal name="entry-activated" handler="on_create_clicked" swapped="no"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRevealer">
+<!-- <property name="reveal-child" bind-source="validator" bind-property="has-feedback"/>-->
+ <property name="transition-type">crossfade</property>
+ <property name="child">
+ <object class="GtkLabel">
+<!-- <property name="label" bind-source="validator" bind-property="feedback-text"/>-->
+ <property name="margin-top">6</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="warning"/>
+ <class name="caption"/>
+ </style>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton">
+ <property name="label" translatable="yes">_Create</property>
+ <property name="use-underline">True</property>
+ <property name="margin-top">6</property>
+ <property name="halign">center</property>
+<!-- <property name="sensitive" bind-source="validator" bind-property="passed" bind-flags="sync-create"/>-->
+ <signal name="clicked" handler="on_create_clicked" swapped="no"/>
+ <style>
+ <class name="pill"/>
+ <class name="suggested-action"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </property>
+ </template>
+<!-- <object class="NautilusFilenameValidator" id="validator">-->
+<!-- <property name="new-name" bind-source="name_entry" bind-property="text"/>-->
+<!-- <property name="target-is-folder">true</property>-->
+<!-- <signal name="name-accepted" handler="on_name_accepted" swapped="yes"/>-->
+<!-- <signal name="notify::has-feedback" handler="on_feedback_changed" swapped="yes" object="NewFileDialog"/>-->
+<!-- </object>-->
+</interface>