camera.ui 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface>
  3. <requires lib="gtk" version="4.0"/>
  4. <object class="GtkListStore" id="list-postprocessors">
  5. <columns>
  6. <column type="gchararray"/>
  7. <column type="gchararray"/>
  8. </columns>
  9. </object>
  10. <object class="GtkWindow" id="window">
  11. <property name="can-focus">0</property>
  12. <property name="default-width">360</property>
  13. <property name="default-height">640</property>
  14. <property name="decorated">0</property>
  15. <property name="child">
  16. <object class="GtkStack" id="main_stack">
  17. <property name="can-focus">0</property>
  18. <child>
  19. <object class="GtkStackPage">
  20. <property name="name">main</property>
  21. <property name="child">
  22. <object class="GtkOverlay">
  23. <property name="can-focus">0</property>
  24. <child>
  25. <object class="GtkGLArea" id="preview">
  26. <property name="vexpand">1</property>
  27. <property name="can-focus">0</property>
  28. <property name="use-es">1</property>
  29. </object>
  30. </child>
  31. <child type="overlay">
  32. <object class="GtkBox" id="top-box">
  33. <property name="orientation">vertical</property>
  34. <property name="halign">fill</property>
  35. <property name="valign">start</property>
  36. <property name="spacing">5</property>
  37. <property name="can-focus">0</property>
  38. <child>
  39. <object class="GtkBox">
  40. <property name="orientation" bind-source="bottom-box" bind-property="orientation"/>
  41. <property name="vexpand">1</property>
  42. <property name="hexpand">1</property>
  43. <property name="valign">start</property>
  44. <property name="margin-start">5</property>
  45. <property name="margin-end">5</property>
  46. <property name="margin-top">5</property>
  47. <property name="margin-bottom">5</property>
  48. <property name="can-focus">0</property>
  49. <property name="spacing">5</property>
  50. <child>
  51. <object class="GtkButton" id="iso-controls-button">
  52. <property name="valign">start</property>
  53. <property name="icon-name">iso-auto-symbolic</property>
  54. <style>
  55. <class name="flat"/>
  56. <class name="control"/>
  57. </style>
  58. </object>
  59. </child>
  60. <child>
  61. <object class="GtkButton" id="shutter-controls-button">
  62. <property name="valign">start</property>
  63. <property name="icon-name">shutter-auto-symbolic</property>
  64. <style>
  65. <class name="flat"/>
  66. <class name="control"/>
  67. </style>
  68. </object>
  69. </child>
  70. <child>
  71. <object class="GtkButton" id="flash-controls-button">
  72. <property name="valign">start</property>
  73. <property name="icon-name">flash-disabled-symbolic</property>
  74. <style>
  75. <class name="flat"/>
  76. <class name="control"/>
  77. </style>
  78. </object>
  79. </child>
  80. </object>
  81. </child>
  82. <child>
  83. <object class="GtkButton">
  84. <property name="visible">0</property>
  85. <property name="halign">start</property>
  86. <property name="margin-start">5</property>
  87. <property name="margin-end">5</property>
  88. <property name="margin-top">5</property>
  89. <property name="margin-bottom">5</property>
  90. <child>
  91. <object class="GtkBox">
  92. <property name="orientation">horizontal</property>
  93. <property name="spacing">10</property>
  94. <child>
  95. <object class="GtkLabel">
  96. <property name="label">Error</property>
  97. </object>
  98. </child>
  99. <child>
  100. <object class="GtkImage">
  101. <property name="icon-name">dialog-warning-symbolic</property>
  102. </object>
  103. </child>
  104. </object>
  105. </child>
  106. <style>
  107. <class name="destructive-action"/>
  108. </style>
  109. </object>
  110. </child>
  111. <style>
  112. <class name="button-overlay"/>
  113. </style>
  114. </object>
  115. </child>
  116. <child type="overlay">
  117. <object class="GtkBox" id="message-box">
  118. <property name="orientation">vertical</property>
  119. <property name="halign">fill</property>
  120. <property name="valign">center</property>
  121. <property name="spacing">5</property>
  122. <property name="can-focus">0</property>
  123. <property name="visible">0</property>
  124. <child>
  125. <object class="GtkLabel" id="message-label">
  126. <property name="label">Error happened</property>
  127. <property name="vexpand">1</property>
  128. <property name="hexpand">1</property>
  129. <property name="valign">start</property>
  130. <property name="margin-start">5</property>
  131. <property name="margin-end">5</property>
  132. <property name="margin-top">5</property>
  133. <property name="margin-bottom">5</property>
  134. <property name="can-focus">0</property>
  135. </object>
  136. </child>
  137. <child>
  138. <object class="GtkButton">
  139. <property name="visible">0</property>
  140. <property name="halign">start</property>
  141. <property name="margin-start">5</property>
  142. <property name="margin-end">5</property>
  143. <property name="margin-top">5</property>
  144. <property name="margin-bottom">5</property>
  145. <child>
  146. <object class="GtkBox">
  147. <property name="orientation">horizontal</property>
  148. <property name="spacing">10</property>
  149. <child>
  150. <object class="GtkLabel">
  151. <property name="label">Error</property>
  152. </object>
  153. </child>
  154. <child>
  155. <object class="GtkImage">
  156. <property name="icon-name">dialog-warning-symbolic</property>
  157. </object>
  158. </child>
  159. </object>
  160. </child>
  161. <style>
  162. <class name="destructive-action"/>
  163. </style>
  164. </object>
  165. </child>
  166. <style>
  167. <class name="error-overlay"/>
  168. </style>
  169. </object>
  170. </child>
  171. <child type="overlay">
  172. <object class="GtkBox" id="bottom-box">
  173. <property name="orientation">horizontal</property>
  174. <property name="halign">fill</property>
  175. <property name="valign">end</property>
  176. <child>
  177. <object class="GtkBox">
  178. <property name="orientation" bind-source="bottom-box" bind-property="orientation"/>
  179. <property name="hexpand">1</property>
  180. <property name="vexpand">1</property>
  181. <property name="halign">center</property>
  182. <property name="valign">center</property>
  183. <property name="margin-start">5</property>
  184. <property name="margin-end">5</property>
  185. <property name="margin-top">5</property>
  186. <property name="margin-bottom">5</property>
  187. <property name="spacing">5</property>
  188. <child>
  189. <object class="GtkButton">
  190. <property name="action-name">app.open-settings</property>
  191. <property name="icon-name">settings-symbolic</property>
  192. </object>
  193. </child>
  194. <child>
  195. <object class="GtkButton">
  196. <property name="action-name">app.switch-camera</property>
  197. <property name="icon-name">switch-camera-symbolic</property>
  198. </object>
  199. </child>
  200. </object>
  201. </child>
  202. <child>
  203. <object class="GtkButton">
  204. <property name="margin-top">5</property>
  205. <property name="margin-bottom">5</property>
  206. <property name="action-name">app.capture</property>
  207. <child>
  208. <object class="GtkImage">
  209. <property name="pixel-size">60</property>
  210. <property name="can-focus">0</property>
  211. <property name="icon-name">shutter-button-symbolic</property>
  212. </object>
  213. </child>
  214. <style>
  215. <class name="circular"/>
  216. </style>
  217. </object>
  218. </child>
  219. <child>
  220. <object class="GtkBox">
  221. <property name="orientation" bind-source="bottom-box" bind-property="orientation"/>
  222. <property name="hexpand">1</property>
  223. <property name="vexpand">1</property>
  224. <property name="halign">center</property>
  225. <property name="valign">center</property>
  226. <property name="margin-start">5</property>
  227. <property name="margin-end">5</property>
  228. <property name="margin-top">5</property>
  229. <property name="margin-bottom">5</property>
  230. <property name="spacing">5</property>
  231. <child>
  232. <object class="GtkButton" id="movie">
  233. <property name="valign">start</property>
  234. <property name="label">Rec</property>
  235. </object>
  236. </child>
  237. <child>
  238. <object class="GtkButton">
  239. <property name="action-name">app.open-last</property>
  240. <child>
  241. <object class="GtkStack" id="open_last_stack">
  242. <property name="can-focus">0</property>
  243. <child>
  244. <object class="GtkImage" id="thumb_last">
  245. <property name="width-request">24</property>
  246. <property name="height-request">24</property>
  247. <property name="can-focus">0</property>
  248. </object>
  249. </child>
  250. <child>
  251. <object class="GtkSpinner" id="process_spinner">
  252. <property name="width-request">24</property>
  253. <property name="height-request">24</property>
  254. <property name="can-focus">0</property>
  255. </object>
  256. </child>
  257. </object>
  258. </child>
  259. </object>
  260. </child>
  261. <child>
  262. <object class="GtkButton">
  263. <property name="action-name">app.open-photos</property>
  264. <property name="icon-name">folder-symbolic</property>
  265. </object>
  266. </child>
  267. </object>
  268. </child>
  269. <style>
  270. <class name="button-overlay"/>
  271. </style>
  272. </object>
  273. </child>
  274. </object>
  275. </property>
  276. </object>
  277. </child>
  278. <child>
  279. <object class="GtkStackPage">
  280. <property name="name">settings</property>
  281. <property name="title" translatable="yes">page1</property>
  282. <property name="child">
  283. <object class="GtkScrolledWindow">
  284. <property name="child">
  285. <object class="GtkViewport">
  286. <property name="can-focus">0</property>
  287. <property name="child">
  288. <object class="GtkBox">
  289. <property name="can-focus">0</property>
  290. <property name="margin-start">10</property>
  291. <property name="margin-end">10</property>
  292. <property name="margin-top">10</property>
  293. <property name="margin-bottom">10</property>
  294. <property name="orientation">vertical</property>
  295. <property name="spacing">10</property>
  296. <child>
  297. <object class="GtkBox">
  298. <property name="can-focus">0</property>
  299. <child>
  300. <object class="GtkButton">
  301. <property name="label" translatable="yes">Back</property>
  302. <property name="margin-start">10</property>
  303. <property name="margin-end">10</property>
  304. <property name="action-name">app.close-settings</property>
  305. <style>
  306. <class name="suggested-action"/>
  307. </style>
  308. </object>
  309. </child>
  310. <child>
  311. <object class="GtkButton">
  312. <property name="label" translatable="yes">About</property>
  313. <property name="margin-start">10</property>
  314. <property name="margin-end">10</property>
  315. <property name="action-name">app.about</property>
  316. </object>
  317. </child>
  318. </object>
  319. </child>
  320. <child>
  321. <object class="GtkLabel">
  322. <property name="visible">True</property>
  323. <property name="halign">start</property>
  324. <property name="label">Postprocessor</property>
  325. <style>
  326. <class name="heading"/>
  327. </style>
  328. </object>
  329. </child>
  330. <child>
  331. <object class="GtkComboBox" id="setting-processor">
  332. <property name="visible">True</property>
  333. <property name="model">list-postprocessors</property>
  334. <property name="entry-text-column">1</property>
  335. <property name="id-column">0</property>
  336. <child>
  337. <object class="GtkCellRendererText"/>
  338. <attributes>
  339. <attribute name="text">1</attribute>
  340. </attributes>
  341. </child>
  342. </object>
  343. </child>
  344. <child>
  345. <object class="GtkCheckButton" id="setting-raw">
  346. <property name="label">Save raw files</property>
  347. </object>
  348. </child>
  349. <child>
  350. <object class="GtkBox" id="feedback-box">
  351. <property name="orientation">vertical</property>
  352. <child>
  353. <object class="GtkLabel">
  354. <property name="halign">start</property>
  355. <property name="label">Feedback</property>
  356. <style>
  357. <class name="heading"/>
  358. </style>
  359. </object>
  360. </child>
  361. <child>
  362. <object class="GtkBox" id="shutter-sound-box">
  363. <property name="orientation">horizontal</property>
  364. <property name="spacing">12</property>
  365. <child>
  366. <object class="GtkLabel">
  367. <property name="label" translatable="yes">Shutter sound</property>
  368. </object>
  369. </child>
  370. <child>
  371. <object class="GtkSwitch" id="shutter-sound-switch">
  372. </object>
  373. </child>
  374. </object>
  375. </child>
  376. </object>
  377. </child>
  378. </object>
  379. </property>
  380. </object>
  381. </property>
  382. </object>
  383. </property>
  384. </object>
  385. </child>
  386. </object>
  387. </property>
  388. </object>
  389. </interface>