prefsadw.ui 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017-2024
  4. This file is part of Bing Wallpaper extension preferences.
  5. This extension is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Lesser General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This extension is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this extension. If not, see <http://www.gnu.org/licenses/>.
  15. Bing Wallpaper GNOME extension by: Michael Carroll
  16. -->
  17. <interface domain="BingWallpaper">
  18. <requires lib="gtk" version="4.0"/>
  19. <requires lib="libadwaita" version="1.0"/>
  20. <object class="AdwPreferencesPage" id="settings_page">
  21. <property name="icon-name">emblem-photos-symbolic</property>
  22. <property name="title" translatable="yes">Settings</property>
  23. <child>
  24. <object class="AdwPreferencesGroup" id="ui_group">
  25. <property name="title" translatable="yes">Indicator</property>
  26. <child>
  27. <object class="AdwSwitchRow" id="hideSwitch">
  28. <property name="title" translatable="yes">Hide Indicator</property>
  29. <property name="subtitle" translatable="yes">Whether to hide the panel indicator</property>
  30. </object>
  31. </child>
  32. <child>
  33. <object class="AdwSwitchRow" id="notifySwitch">
  34. <property name="title" translatable="yes">Desktop notifications</property>
  35. <property name="subtitle" translatable="yes">Enable notifications on new images</property>
  36. </object>
  37. </child>
  38. <child>
  39. <object class="AdwSpinRow" id="iconEntry">
  40. <property name="title" translatable="yes">Indicator icon</property>
  41. <property name="subtitle" translatable="yes">Select from alternate tray icons</property>
  42. <property name="adjustment">
  43. <object class="GtkAdjustment" id="iconEntryAdjustment">
  44. <property name="lower">1</property>
  45. <property name="upper">5</property>
  46. <property name="step_increment">1</property>
  47. </object>
  48. </property>
  49. </object>
  50. </child>
  51. <child>
  52. <object class="AdwActionRow" id="icon_image_row">
  53. <!--
  54. <property name="title" translatable="yes">Download folder</property>
  55. <property name="subtitle" translatable="yes">Open or change wallpaper downloads folder</property>
  56. -->
  57. <child>
  58. <object class="GtkImage" id="icon_image">
  59. <property name="width_request">64</property>
  60. <property name="height_request">64</property>
  61. <property name="can_focus">0</property>
  62. <property name="halign">end</property>
  63. <property name="hexpand">1</property>
  64. <property name="file">../icons/bing-symbolic.svg</property>
  65. <property name="css_classes">icon_image_black_bg</property>
  66. </object>
  67. </child>
  68. </object>
  69. </child>
  70. </object>
  71. </child>
  72. <child>
  73. <object class="AdwPreferencesGroup" id="wp_group">
  74. <property name="title" translatable="yes">Wallpaper</property>
  75. <child>
  76. <object class="AdwSwitchRow" id="bgSwitch">
  77. <property name="title" translatable="yes">Set wallpaper</property>
  78. <property name="subtitle" translatable="yes">Whether to set wallpaper automatically</property>
  79. </object>
  80. </child>
  81. <child>
  82. <object class="AdwSwitchRow" id="shuffleSwitch">
  83. <property name="title" translatable="yes">Shuffle wallpaper</property>
  84. <property name="subtitle" translatable="yes">Randomly select wallpaper from collection</property>
  85. </object>
  86. </child>
  87. <child>
  88. <object class="AdwComboRow" id="shuffleInterval">
  89. <property name="title" translatable="yes">Shuffle interval</property>
  90. <property name="subtitle" translatable="yes">How frequently to shuffle wallpapers</property>
  91. </object>
  92. </child>
  93. </object>
  94. </child>
  95. <child>
  96. <object class="AdwPreferencesGroup" id="dl_group">
  97. <property name="title" translatable="yes">Downloads</property>
  98. <child>
  99. <object class="AdwActionRow" id="folderRow">
  100. <property name="title" translatable="yes">Download folder</property>
  101. <property name="subtitle" translatable="yes">Open or change wallpaper downloads folder</property>
  102. </object>
  103. </child>
  104. </object>
  105. </child>
  106. </object>
  107. <object class="AdwPreferencesPage" id="lockscreen_page">
  108. <property name="icon-name">applications-system-symbolic</property>
  109. <property name="title" translatable="yes">Lock screen</property>
  110. <child>
  111. <object class="AdwPreferencesGroup" id="ls_group">
  112. <property name="title" translatable="yes">Lockscreen blur</property>
  113. <child>
  114. <object class="AdwSwitchRow" id="overrideSwitch">
  115. <property name="title" translatable="yes">Dynamic lockscreen blur</property>
  116. <property name="subtitle" translatable="yes">Whether to enable dynamic blur mode on lock screen</property>
  117. </object>
  118. </child>
  119. <child>
  120. <object class="AdwSpinRow" id="strengthEntry">
  121. <property name="title" translatable="yes">Blur strength</property>
  122. <property name="subtitle" translatable="yes">Blur strength when login prompt is not visible</property>
  123. <property name="adjustment">
  124. <object class="GtkAdjustment" id="blurAdjustment">
  125. <property name="lower">0</property>
  126. <property name="upper">50</property>
  127. <property name="page_increment">10</property>
  128. <property name="step_increment">1</property>
  129. </object>
  130. </property>
  131. </object>
  132. </child>
  133. <child>
  134. <object class="AdwSpinRow" id="brightnessEntry">
  135. <property name="title" translatable="yes">Wallpaper brightness</property>
  136. <property name="subtitle" translatable="yes">Dim wallpaper when login prompt is not visible</property>
  137. <property name="adjustment">
  138. <object class="GtkAdjustment" id="brightnessAdjustment">
  139. <property name="lower">0</property>
  140. <property name="upper">100</property>
  141. <property name="page_increment">10</property>
  142. <property name="step_increment">1</property>
  143. </object>
  144. </property>
  145. </object>
  146. </child>
  147. </object>
  148. </child>
  149. <child>
  150. <object class="AdwPreferencesGroup" id="ps_group">
  151. <!-- <property name="title" translatable="yes">Presets</property> -->
  152. <child>
  153. <object class="AdwActionRow" id="blurPresets">
  154. <property name="title" translatable="yes">Presets</property>
  155. </object>
  156. </child>
  157. </object>
  158. </child>
  159. </object>
  160. <object class="AdwPreferencesPage" id="gallery_page">
  161. <property name="icon-name">document-open-recent-symbolic</property>
  162. <property name="title" translatable="yes">Gallery</property>
  163. <child>
  164. <object class="GtkScrolledWindow" id="carouselViewPort">
  165. <property name="can-focus">0</property>
  166. <property name="height_request">500</property>
  167. <property name="hexpand">0</property>
  168. <property name="vexpand">0</property>
  169. <property name="child">
  170. <object class="GtkBox">
  171. <child>
  172. <object class="GtkFlowBox" id="carouselFlowBox">
  173. <property name="can-focus">0</property>
  174. <property name="halign">center</property>
  175. <property name="homogeneous">1</property>
  176. <property name="max-children-per-line">2</property>
  177. <property name="min-children-per-line">2</property>
  178. <property name="row-spacing">2</property>
  179. <property name="column-spacing">2</property>
  180. </object>
  181. </child>
  182. </object>
  183. </property>
  184. </object>
  185. </child>
  186. </object>
  187. <object class="AdwPreferencesPage" id="debug_page">
  188. <property name="icon-name">preferences-other-symbolic</property>
  189. <property name="title" translatable="yes">Debug</property>
  190. <child>
  191. <object class="AdwPreferencesGroup" id="db_group">
  192. <property name="title" translatable="yes">Debug options</property>
  193. <child>
  194. <object class="AdwSwitchRow" id="debug_switch">
  195. <property name="title" translatable="yes">Debug logging</property>
  196. <property name="subtitle" translatable="yes">Enable logging to system journal</property>
  197. </object>
  198. </child>
  199. </object>
  200. </child>
  201. <child>
  202. <object class="AdwPreferencesGroup" id="adv_group">
  203. <property name="title" translatable="yes">Advanced options</property>
  204. <child>
  205. <object class="AdwSwitchRow" id="revert_switch">
  206. <property name="title" translatable="yes">Always show new images</property>
  207. <property name="subtitle" translatable="yes">Switch to new images when available (unless on random mode)</property>
  208. </object>
  209. </child>
  210. <child>
  211. <object class="AdwSwitchRow" id="trash_purge_switch">
  212. <property name="title" translatable="yes">Purge on trash</property>
  213. <property name="subtitle" translatable="yes">Trashing an image will remove it from database and disk</property>
  214. </object>
  215. </child>
  216. <child>
  217. <object class="AdwComboRow" id="resolutionEntry">
  218. <property name="title" translatable="yes">Screen resolution</property>
  219. <property name="subtitle" translatable="yes">Override automatic resolution selection</property>
  220. </object>
  221. </child>
  222. <child>
  223. <object class="AdwSpinRow" id="entry_random_interval">
  224. <property name="title" translatable="yes">Random interval</property>
  225. <property name="subtitle" translatable="yes">Custom shuffle interval when enabled</property>
  226. <property name="adjustment">
  227. <object class="GtkAdjustment" id="adjustment_random_interval">
  228. <property name="lower">300</property>
  229. <property name="upper">604800</property>
  230. <property name="page_increment">300</property>
  231. <property name="step_increment">3600</property>
  232. </object>
  233. </property>
  234. </object>
  235. </child>
  236. <child>
  237. <object class="AdwSwitchRow" id="delete_previous_switch">
  238. <property name="title" translatable="yes">Delete older images</property>
  239. <property name="subtitle" translatable="yes">Automatically delete older images (excludes favourites)</property>
  240. </object>
  241. </child>
  242. <child>
  243. <object class="AdwSpinRow" id="delete_previous_entry">
  244. <property name="title" translatable="yes">Number of days to keep images</property>
  245. <property name="subtitle" translatable="yes">Keep images for this number of days (favourites are kept forever)</property>
  246. <property name="adjustment">
  247. <object class="GtkAdjustment" id="delete_previous_adjustment">
  248. <property name="lower">1</property>
  249. <property name="upper">90</property>
  250. <property name="page_increment">5</property>
  251. <property name="step_increment">1</property>
  252. </object>
  253. </property>
  254. </object>
  255. </child>
  256. </object>
  257. </child>
  258. <child>
  259. <object class="AdwPreferencesGroup" id="js_group">
  260. <!-- <property name="title" translatable="yes">Presets</property> -->
  261. <child>
  262. <object class="AdwSwitchRow" id="always_export_switch">
  263. <property name="title" translatable="yes">Always export Bing data</property>
  264. <property name="subtitle" translatable="yes">Export Bing JSON when image data changes</property>
  265. </object>
  266. </child>
  267. <child>
  268. <object class="AdwActionRow" id="json_actionrow">
  269. <property name="title" translatable="yes">Bing JSON data</property>
  270. <property name="subtitle" translatable="yes">Custom shuffle interval when enabled</property>
  271. </object>
  272. </child>
  273. </object>
  274. </child>
  275. </object>
  276. <object class="AdwPreferencesPage" id="about_page">
  277. <property name="icon-name">user-info-symbolic</property>
  278. <property name="title" translatable="yes">About</property>
  279. <child>
  280. <object class="AdwPreferencesGroup" id="about_group">
  281. <!-- <property name="orientation">vertical</property>-->
  282. <child>
  283. <object class="GtkImage" id="app_icon_image">
  284. <property name="pixel-size">128</property>
  285. <property name="accessible-role">presentation</property>
  286. <style>
  287. <class name="icon-dropshadow"/>
  288. </style>
  289. </object>
  290. </child>
  291. <child>
  292. <object class="GtkLabel" id="app_name_label">
  293. <property name="wrap">True</property>
  294. <property name="justify">center</property>
  295. <property name="label" translatable="yes">Bing Wallpaper</property>
  296. <style>
  297. <class name="title-1"/>
  298. </style>
  299. </object>
  300. </child>
  301. <child>
  302. <object class="GtkLabel" id="extension_description">
  303. <property name="can_focus">0</property>
  304. <property name="label" translatable="yes">New wallpaper images everyday from Bing</property>
  305. <property name="justify">center</property>
  306. <property name="wrap">1</property>
  307. </object>
  308. </child>
  309. <child>
  310. <object class="GtkLabel" id="developer_name_label">
  311. <property name="wrap">True</property>
  312. <property name="justify">center</property>
  313. <property name="label" translatable="yes">Maintained by Michael Carroll</property>
  314. </object>
  315. </child>
  316. </object>
  317. </child>
  318. <child>
  319. <object class="AdwPreferencesGroup" id="change_log_group">
  320. <child>
  321. <object class="AdwActionRow" id="details_row">
  322. <property name="title" translatable="yes">Version</property>
  323. <child>
  324. <object class="GtkButton" id="version_button">
  325. <property name="halign">center</property>
  326. <property name="can-shrink">True</property>
  327. <style>
  328. <class name="app-version"/>
  329. </style>
  330. </object>
  331. </child>
  332. </object>
  333. </child>
  334. <child>
  335. <object class="AdwExpanderRow" id="expander_row">
  336. <property name="title" translatable="yes">Release notes</property>
  337. <child>
  338. <object class="GtkLabel" id="change_log">
  339. <property name="wrap">True</property>
  340. <property name="justify">left</property>
  341. </object>
  342. </child>
  343. </object>
  344. </child>
  345. </object>
  346. </child>
  347. <child>
  348. <object class="AdwPreferencesGroup" id="about_details_group">
  349. <child>
  350. <object class="GtkBox">
  351. <property name="orientation">vertical</property>
  352. <child>
  353. <object class="AdwPreferencesGroup" id="details_group">
  354. <child>
  355. <object class="AdwActionRow" id="extension_page_row">
  356. <property name="title" translatable="yes">GNOME extensions page</property>
  357. <property name="use-underline">True</property>
  358. <property name="activatable">True</property>
  359. <property name="activatable-widget">extension_page_linkbutton</property>
  360. <child>
  361. <object class="GtkLinkButton" id="extension_page_linkbutton">
  362. <property name="uri">https://extensions.gnome.org/extension/1262/bing-wallpaper-changer/</property>
  363. </object>
  364. </child>
  365. <child>
  366. <object class="GtkImage">
  367. <property name="icon-name">adw-external-link-symbolic</property>
  368. <property name="accessible-role">presentation</property>
  369. </object>
  370. </child>
  371. </object>
  372. </child>
  373. <child>
  374. <object class="AdwActionRow" id="source_code_row">
  375. <property name="title" translatable="yes">Source code</property>
  376. <property name="use-underline">True</property>
  377. <property name="activatable">True</property>
  378. <property name="activatable-widget">source_code_linkbutton</property>
  379. <child>
  380. <object class="GtkLinkButton" id="source_code_linkbutton">
  381. <property name="uri">https://github.com/neffo/bing-wallpaper-gnome-extension</property>
  382. </object>
  383. </child>
  384. <child>
  385. <object class="GtkImage">
  386. <property name="icon-name">adw-external-link-symbolic</property>
  387. <property name="accessible-role">presentation</property>
  388. </object>
  389. </child>
  390. </object>
  391. </child>
  392. <child>
  393. <object class="AdwActionRow" id="bug_report_row">
  394. <property name="title" translatable="yes">Report an issue</property>
  395. <property name="use-underline">True</property>
  396. <property name="activatable">True</property>
  397. <property name="activatable-widget">bug_report_linkbutton</property>
  398. <child>
  399. <object class="GtkLinkButton" id="bug_report_linkbutton">
  400. <property name="uri">https://github.com/neffo/bing-wallpaper-gnome-extension/issues</property>
  401. </object>
  402. </child>
  403. <child>
  404. <object class="GtkImage">
  405. <property name="icon-name">adw-external-link-symbolic</property>
  406. <property name="accessible-role">presentation</property>
  407. </object>
  408. </child>
  409. </object>
  410. </child>
  411. <child>
  412. <object class="AdwActionRow" id="contributors_row">
  413. <property name="title" translatable="yes">Contributors</property>
  414. <property name="use-underline">True</property>
  415. <property name="activatable">True</property>
  416. <property name="activatable-widget">contributors_linkbutton</property>
  417. <child>
  418. <object class="GtkLinkButton" id="contributors_linkbutton">
  419. <property name="uri">https://github.com/neffo/bing-wallpaper-gnome-extension/graphs/contributors</property>
  420. </object>
  421. </child>
  422. <child>
  423. <object class="GtkImage">
  424. <property name="icon-name">adw-external-link-symbolic</property>
  425. <property name="accessible-role">presentation</property>
  426. </object>
  427. </child>
  428. </object>
  429. </child>
  430. <child>
  431. <object class="AdwExpanderRow" id="license_expander">
  432. <property name="title" translatable="yes">License</property>
  433. <child>
  434. <object class="GtkLabel" id="license">
  435. <property name="wrap">True</property>
  436. <property name="justify">left</property>
  437. <property name="label">This extension is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</property>
  438. </object>
  439. </child>
  440. </object>
  441. </child>
  442. </object>
  443. </child>
  444. </object>
  445. </child>
  446. </object>
  447. </child>
  448. </object>
  449. <object class="GtkFileDialog" id="folderDialog">
  450. <property name="accept-label" translatable="yes">Change folder</property>
  451. <property name="modal">true</property>
  452. <property name="title" translatable="yes">Select new wallpaper download folder</property>
  453. </object>
  454. </interface>
  455. <!-- <signal name="clicked" handler="open_wp_folder" /> -->