camera.ui 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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-man-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">
  233. <property name="action-name">app.open-last</property>
  234. <child>
  235. <object class="GtkStack" id="open_last_stack">
  236. <property name="can-focus">0</property>
  237. <child>
  238. <object class="GtkImage" id="thumb_last">
  239. <property name="width-request">24</property>
  240. <property name="height-request">24</property>
  241. <property name="can-focus">0</property>
  242. </object>
  243. </child>
  244. <child>
  245. <object class="GtkSpinner" id="process_spinner">
  246. <property name="width-request">24</property>
  247. <property name="height-request">24</property>
  248. <property name="can-focus">0</property>
  249. </object>
  250. </child>
  251. </object>
  252. </child>
  253. </object>
  254. </child>
  255. <child>
  256. <object class="GtkButton">
  257. <property name="action-name">app.open-photos</property>
  258. <property name="icon-name">folder-symbolic</property>
  259. </object>
  260. </child>
  261. </object>
  262. </child>
  263. <style>
  264. <class name="button-overlay"/>
  265. </style>
  266. </object>
  267. </child>
  268. </object>
  269. </property>
  270. </object>
  271. </child>
  272. <child>
  273. <object class="GtkStackPage">
  274. <property name="name">settings</property>
  275. <property name="title" translatable="yes">page1</property>
  276. <property name="child">
  277. <object class="GtkScrolledWindow">
  278. <property name="child">
  279. <object class="GtkViewport">
  280. <property name="can-focus">0</property>
  281. <property name="child">
  282. <object class="GtkBox">
  283. <property name="can-focus">0</property>
  284. <property name="margin-start">10</property>
  285. <property name="margin-end">10</property>
  286. <property name="margin-top">10</property>
  287. <property name="margin-bottom">10</property>
  288. <property name="orientation">vertical</property>
  289. <property name="spacing">10</property>
  290. <child>
  291. <object class="GtkBox">
  292. <property name="can-focus">0</property>
  293. <child>
  294. <object class="GtkButton">
  295. <property name="label" translatable="yes">Back</property>
  296. <property name="margin-start">10</property>
  297. <property name="margin-end">10</property>
  298. <property name="action-name">app.close-settings</property>
  299. <style>
  300. <class name="suggested-action"/>
  301. </style>
  302. </object>
  303. </child>
  304. <child>
  305. <object class="GtkButton">
  306. <property name="label" translatable="yes">About</property>
  307. <property name="margin-start">10</property>
  308. <property name="margin-end">10</property>
  309. <property name="action-name">app.about</property>
  310. </object>
  311. </child>
  312. </object>
  313. </child>
  314. <child>
  315. <object class="GtkLabel">
  316. <property name="visible">True</property>
  317. <property name="halign">start</property>
  318. <property name="label">Postprocessor</property>
  319. <style>
  320. <class name="heading"/>
  321. </style>
  322. </object>
  323. </child>
  324. <child>
  325. <object class="GtkComboBox" id="setting-processor">
  326. <property name="visible">True</property>
  327. <property name="model">list-postprocessors</property>
  328. <property name="entry-text-column">1</property>
  329. <property name="id-column">0</property>
  330. <child>
  331. <object class="GtkCellRendererText"/>
  332. <attributes>
  333. <attribute name="text">1</attribute>
  334. </attributes>
  335. </child>
  336. </object>
  337. </child>
  338. <child>
  339. <object class="GtkCheckButton" id="setting-raw">
  340. <property name="label">Save raw files</property>
  341. </object>
  342. </child>
  343. <child>
  344. <object class="GtkBox" id="feedback-box">
  345. <property name="orientation">vertical</property>
  346. <child>
  347. <object class="GtkLabel">
  348. <property name="halign">start</property>
  349. <property name="label">Feedback</property>
  350. <style>
  351. <class name="heading"/>
  352. </style>
  353. </object>
  354. </child>
  355. <child>
  356. <object class="GtkBox" id="shutter-sound-box">
  357. <property name="orientation">horizontal</property>
  358. <property name="spacing">12</property>
  359. <child>
  360. <object class="GtkLabel">
  361. <property name="label" translatable="yes">Shutter sound</property>
  362. </object>
  363. </child>
  364. <child>
  365. <object class="GtkSwitch" id="shutter-sound-switch">
  366. </object>
  367. </child>
  368. </object>
  369. </child>
  370. </object>
  371. </child>
  372. </object>
  373. </property>
  374. </object>
  375. </property>
  376. </object>
  377. </property>
  378. </object>
  379. </child>
  380. </object>
  381. </property>
  382. </object>
  383. </interface>