Add a clamp to the orphans window

This commit is contained in:
heliguy4599
2023-09-15 00:36:08 -04:00
parent febc645aff
commit db16853be8
3 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="4" y="8" width="5" height="1" fill="white"/>
<rect x="4" y="10" width="3" height="1" fill="white"/>
<rect x="2" y="2" width="12" height="12" rx="2" stroke="white" stroke-width="2"/>
<rect x="2" y="2" width="12" height="4" rx="2" stroke="white" stroke-width="2"/>
<rect x="7" y="3" width="2" height="4" fill="white"/>
<rect x="4" y="8" width="5" height="1" fill="black"/>
<rect x="4" y="10" width="3" height="1" fill="black"/>
<rect x="2" y="2" width="12" height="12" rx="2" stroke="black" stroke-width="2"/>
<rect x="2" y="2" width="12" height="4" rx="2" stroke="black" stroke-width="2"/>
<rect x="7" y="3" width="2" height="4" fill="black"/>
</svg>

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

View File

@@ -232,11 +232,13 @@ class FlattoolGuiWindow(Adw.ApplicationWindow):
orphans_window.set_modal(True)
orphans_window.set_resizable(True)
orphans_window.set_transient_for(self)
orphans_clamp = Adw.Clamp()
orphans_scroll = Gtk.ScrolledWindow()
orphans_toast_overlay = Adw.ToastOverlay()
orphans_stack = Gtk.Stack()
orphans_overlay = Gtk.Overlay()
orphans_stack.add_child(orphans_overlay)
orphans_stack.add_child(orphans_clamp)
orphans_clamp.set_child(orphans_overlay)
orphans_toast_overlay.set_child(orphans_stack)
orphans_progress_bar = Gtk.ProgressBar(visible=False, pulse_step=0.7)