Skip to content

Commit

Permalink
fix(recognized_page): put content in a scrolled window
Browse files Browse the repository at this point in the history
This is to properly support min height of 294px
  • Loading branch information
SeaDve committed Aug 24, 2024
1 parent f45ce82 commit a873693
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
70 changes: 38 additions & 32 deletions data/resources/ui/recognized_page.ui
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,53 @@
</object>
</child>
<property name="content">
<object class="GtkBox">
<property name="margin-bottom">24</property>
<property name="orientation">vertical</property>
<property name="spacing">24</property>
<child>
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<property name="child">
<object class="GtkBox">
<property name="margin-start">24</property>
<property name="margin-end">24</property>
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<property name="spacing">24</property>
<child>
<object class="GtkLabel" id="heading">
<property name="xalign">0.5</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="title-1"/>
</style>
<object class="GtkBox">
<property name="margin-start">24</property>
<property name="margin-end">24</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="heading">
<property name="xalign">0.5</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="title-1"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="body">
<property name="xalign">0.5</property>
<property name="justify">center</property>
<property name="wrap">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="body">
<property name="xalign">0.5</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<object class="AdwCarousel" id="carousel">
<property name="vexpand">True</property>
<property name="valign">center</property>
<property name="allow-long-swipes">True</property>
</object>
</child>
<child>
<object class="AdwCarouselIndicatorDots">
<property name="carousel">carousel</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwCarousel" id="carousel">
<property name="vexpand">True</property>
<property name="valign">center</property>
<property name="allow-long-swipes">True</property>
</object>
</child>
<child>
<object class="AdwCarouselIndicatorDots">
<property name="carousel">carousel</property>
</object>
</child>
</property>
</object>
</property>
</object>
Expand Down
1 change: 0 additions & 1 deletion data/resources/ui/window.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="MousaiWindow" parent="AdwApplicationWindow">
<!-- FIXME Properly support these dimensions -->
<property name="width-request">360</property>
<property name="height-request">294</property>
<child>
Expand Down

0 comments on commit a873693

Please sign in to comment.