| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface domain="font-manager"> |
| 3 |
<requires lib="gtk" version="4.12"/> |
| 4 |
<template class="FontManagerFontViewerMainWindow" parent="FontManagerApplicationWindow"> |
| 5 |
<property name="default-width">600</property> |
| 6 |
<property name="default-height">450</property> |
| 7 |
<property name="icon-name">com.github.FontManager.FontManager</property> |
| 8 |
<child> |
| 9 |
<object class="GtkStack" id="stack"> |
| 10 |
<property name="transition-type">crossfade</property> |
| 11 |
<child> |
| 12 |
<object class="GtkStackPage"> |
| 13 |
<property name="name">Preview</property> |
| 14 |
<property name="child"> |
| 15 |
<object class="FontManagerPreviewPane" id="preview_pane"> |
| 16 |
<property name="visible">True</property> |
| 17 |
<property name="can_focus">True</property> |
| 18 |
</object> |
| 19 |
</property> |
| 20 |
</object> |
| 21 |
</child> |
| 22 |
<child> |
| 23 |
<object class="GtkStackPage"> |
| 24 |
<property name="name">PlaceHolder</property> |
| 25 |
<property name="child"> |
| 26 |
<object class="FontManagerPlaceHolder" id="welcome"> |
| 27 |
<property name="can-focus">True</property> |
| 28 |
<property name="visible">True</property> |
| 29 |
<property name="can_focus">True</property> |
| 30 |
<property name="title" translatable="1">Font Viewer</property> |
| 31 |
<property name="subtitle" translatable="1">Preview font files before installing them.</property> |
| 32 |
<property name="message" translatable="1">To preview a font simply drag it onto this area.</property> |
| 33 |
<property name="icon-name">com.github.FontManager.FontManager-symbolic</property> |
| 34 |
</object> |
| 35 |
</property> |
| 36 |
</object> |
| 37 |
</child> |
| 38 |
<child> |
| 39 |
<object class="GtkStackPage"> |
| 40 |
<property name="name">Preferences</property> |
| 41 |
<property name="child"> |
| 42 |
<object class="GtkScrolledWindow"> |
| 43 |
<property name="can-focus">True</property> |
| 44 |
<property name="child"> |
| 45 |
<object class="GtkViewport"> |
| 46 |
<property name="child"> |
| 47 |
<object class="GtkListBox" id="preference_list"> |
| 48 |
<style> |
| 49 |
<class name="rich-list"/> |
| 50 |
</style> |
| 51 |
</object> |
| 52 |
</property> |
| 53 |
</object> |
| 54 |
</property> |
| 55 |
<property name="visible">True</property> |
| 56 |
</object> |
| 57 |
</property> |
| 58 |
</object> |
| 59 |
</child> |
| 60 |
</object> |
| 61 |
</child> |
| 62 |
<child type="titlebar"> |
| 63 |
<object class="GtkHeaderBar" id="headerbar"> |
| 64 |
<property name="title-widget"> |
| 65 |
<object class="GtkBox"> |
| 66 |
<child> |
| 67 |
<object class="GtkDropDown" id="title_widget"> |
| 68 |
<property name="css-classes">title</property> |
| 69 |
<property name="opacity">0.75</property> |
| 70 |
<property name="model"> |
| 71 |
<object class="GtkStringList"> |
| 72 |
<items> |
| 73 |
<item translatable="yes">Font Viewer</item> |
| 74 |
</items> |
| 75 |
</object> |
| 76 |
</property> |
| 77 |
</object> |
| 78 |
</child> |
| 79 |
<child> |
| 80 |
<object class="GtkLabel" id="title_label"> |
| 81 |
<property name="css-classes">title</property> |
| 82 |
<property name="label" translatable="yes">Font Viewer</property> |
| 83 |
</object> |
| 84 |
</child> |
| 85 |
</object> |
| 86 |
</property> |
| 87 |
<child> |
| 88 |
<object class="GtkImage" id="title_icon"> |
| 89 |
<property name="icon-name">com.github.FontManager.FontManager</property> |
| 90 |
<property name="icon-size">large</property> |
| 91 |
<property name="opacity">0.95</property> |
| 92 |
</object> |
| 93 |
</child> |
| 94 |
<child type="end"> |
| 95 |
<object class="GtkToggleButton" id="preference_toggle"> |
| 96 |
<property name="icon-name">application-preferences-symbolic</property> |
| 97 |
<property name="tooltip-text" translatable="yes">Preferences</property> |
| 98 |
<property name="halign">center</property> |
| 99 |
<property name="valign">center</property> |
| 100 |
<property name="css-classes">flat</property> |
| 101 |
<signal name="toggled" handler="on_preferences_toggled"/> |
| 102 |
</object> |
| 103 |
</child> |
| 104 |
</object> |
| 105 |
</child> |
| 106 |
</template> |
| 107 |
<object class="GtkButton" id="action_button"> |
| 108 |
<property name="focusable">1</property> |
| 109 |
<property name="label" translatable="yes">Install Font</property> |
| 110 |
<property name="margin-bottom">2</property> |
| 111 |
<property name="margin-end">2</property> |
| 112 |
<property name="margin-start">2</property> |
| 113 |
<property name="margin-top">2</property> |
| 114 |
<property name="opacity">0.9</property> |
| 115 |
<property name="receives-default">1</property> |
| 116 |
<signal name="clicked" handler="on_action_button_clicked"/> |
| 117 |
</object> |
| 118 |
</interface> |