imagePage: Make error output look better

Make the errors on the status page translatable. Hide detailed errors
behind an extra error dialog that can be opened.
This commit is contained in:
Sophie Herold 2024-05-09 01:30:01 +02:00
parent 927272bb2c
commit e129e842a6
9 changed files with 219 additions and 9 deletions

View file

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="LpErrorDetails" parent="AdwDialog">
<property name="title">Error Details</property>
<property name="content-width">400</property>
<property name="content-height">450</property>
<style>
<class name="error-details" />
</style>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar" />
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">16px</property>
<property name="margin-top">12px</property>
<property name="margin-start">12px</property>
<property name="margin-end">12px</property>
<property name="margin-bottom">12px</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="true">The image loader reported the following. Please include this information when you report an error.</property>
<property name="wrap">true</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="vexpand">true</property>
<child>
<object class="GtkTextView" id="message">
<property name="wrap-mode">word-char</property>
</object>
</child>
</object>
</child>
</object>
</property>
<child type="bottom">
<object class="GtkCenterBox">
<property name="margin-top">12px</property>
<property name="margin-start">12px</property>
<property name="margin-end">12px</property>
<property name="margin-bottom">12px</property>
<property name="start-widget">
<object class="GtkButton" id="copy">
<property name="label" translatable="yes">Copy Information</property>
</object>
</property>
<property name="end-widget">
<object class="GtkButton" id="report">
<property name="label" translatable="yes">Report Issue…</property>
</object>
</property>
</object>
</child>
</object>
</property>
</template>
</interface>