1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="KoohaWindow" parent="AdwApplicationWindow">
<property name="height-request">-1</property>
<property name="width-request">-1</property>
<property name="resizable">False</property>
<property name="default-width">220</property>
<property name="default-height">230</property>
<property name="focus-widget">start_record_button</property>
<property name="content">
<object class="GtkWindowHandle">
<property name="child">
<object class="GtkStack" id="stack">
<property name="transition-type">crossfade</property>
<child>
<object class="AdwToolbarView" id="main_page">
<child type="top">
<object class="AdwHeaderBar">
<child>
<object class="GtkMenuButton">
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
<property name="primary">True</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
<style>
<class name="circular"/>
</style>
</object>
</child>
<child type="title">
<object class="AdwWindowTitle" id="title"/>
</child>
</object>
</child>
<property name="content">
<object class="GtkBox">
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkBox">
<property name="homogeneous">True</property>
<property name="vexpand">True</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkToggleButton">
<property name="action-name">win.capture-mode</property>
<property name="action-target">"monitor-window"</property>
<property name="tooltip-text" translatable="yes">Capture a Monitor or Window</property>
<property name="child">
<object class="GtkImage">
<property name="icon-name">source-pick-symbolic</property>
<property name="pixel-size">32</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkToggleButton">
<property name="action-name">win.capture-mode</property>
<property name="action-target">"selection"</property>
<property name="tooltip-text" translatable="yes">Capture a Selection of Screen</property>
<property name="child">
<object class="GtkImage">
<property name="icon-name">selection-symbolic</property>
<property name="pixel-size">32</property>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="spacing">12</property>
<property name="homogeneous">True</property>
<child>
<object class="KoohaToggleButton">
<property name="action-name">win.record-desktop-audio</property>
<property name="default-icon-name">audio-volume-muted-symbolic</property>
<property name="toggled-icon-name">audio-volume-high-symbolic</property>
<property name="default-tooltip-text" translatable="yes">Enable Desktop Audio</property>
<property name="toggled-tooltip-text" translatable="yes">Disable Desktop Audio</property>
</object>
</child>
<child>
<object class="KoohaToggleButton">
<property name="action-name">win.record-microphone</property>
<property name="default-icon-name">microphone-disabled-symbolic</property>
<property name="toggled-icon-name">microphone2-symbolic</property>
<property name="default-tooltip-text" translatable="yes">Enable Microphone</property>
<property name="toggled-tooltip-text" translatable="yes">Disable Microphone</property>
</object>
</child>
<child>
<object class="KoohaToggleButton">
<property name="action-name">win.show-pointer</property>
<property name="default-icon-name">mouse-wireless-disabled-symbolic</property>
<property name="toggled-icon-name">mouse-wireless-symbolic</property>
<property name="default-tooltip-text" translatable="yes">Show Pointer</property>
<property name="toggled-tooltip-text" translatable="yes">Hide Pointer</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<child>
<object class="GtkButton" id="start_record_button">
<property name="hexpand">True</property>
<property name="tooltip-text" translatable="yes">Start Recording</property>
<property name="label" translatable="yes">Record</property>
<property name="action-name">win.toggle-record</property>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
<child>
<object class="GtkRevealer" id="forget_video_sources_revealer">
<property name="transition-type">slide-left</property>
<property name="child">
<object class="GtkButton">
<property name="margin-start">12</property>
<property name="tooltip-text" translatable="yes">Forget Previously Selected Video Sources</property>
<property name="icon-name">refresh-symbolic</property>
<property name="action-name">win.forget-video-sources</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkBox" id="recording_page">
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="recording_label">
<property name="single-line-mode">True</property>
<style>
<class name="title-4"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="recording_time_label">
<style>
<class name="large-time"/>
<class name="recording"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkButton">
<property name="hexpand">True</property>
<property name="tooltip-text" translatable="yes">Stop Recording</property>
<property name="label" translatable="yes">Stop</property>
<property name="action-name">win.toggle-record</property>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="pause_record_button">
<property name="visible">False</property>
<property name="tooltip-text" translatable="yes">Pause Recording</property>
<property name="icon-name">media-playback-pause-symbolic</property>
<property name="action-name">win.toggle-pause</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="delay_page">
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Recording in…</property>
<property name="single-line-mode">True</property>
<style>
<class name="title-4"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="delay_label">
<style>
<class name="large-time"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton">
<property name="tooltip-text" translatable="yes">Cancel Recording</property>
<property name="label" translatable="yes">Cancel</property>
<property name="action-name">win.cancel-record</property>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="flushing_page">
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">18</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Flushing…</property>
<property name="single-line-mode">True</property>
<style>
<class name="title-4"/>
</style>
</object>
</child>
<child>
<object class="KoohaProgressIcon" id="flushing_progress_icon">
<property name="width-request">24</property>
<property name="height-request">24</property>
<property name="halign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton">
<property name="tooltip-text" translatable="yes">Cancel Recording</property>
<property name="label" translatable="yes">Cancel</property>
<property name="action-name">win.cancel-record</property>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.show-preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Kooha</attribute>
<attribute name="action">app.show-about</attribute>
</item>
</section>
</menu>
</interface>
|