applications.ui 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface domain="blur-my-shell@aunetx">
  3. <template class="Applications" parent="AdwPreferencesPage">
  4. <property name="name">applications</property>
  5. <property name="title" translatable="yes">Applications</property>
  6. <property name="icon-name">applications-symbolic</property>
  7. <child>
  8. <object class="AdwPreferencesGroup">
  9. <property name="title" translatable="yes">Applications blur</property>
  10. <property name="description" translatable="yes">Adds blur to the applications.
  11. To get the best results possible, although with reduced performances, you can choose the option “No artifact” in the “Other → Hack level” tab.</property>
  12. <property name="header-suffix">
  13. <object class="GtkSwitch" id="blur">
  14. <property name="valign">center</property>
  15. </object>
  16. </property>
  17. <child>
  18. <object class="AdwActionRow">
  19. <property name="title" translatable="yes">Sigma</property>
  20. <property name="subtitle" translatable="yes">The intensity of the blur.</property>
  21. <property name="activatable-widget">sigma_scale</property>
  22. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  23. <child>
  24. <object class="GtkScale" id="sigma_scale">
  25. <property name="valign">center</property>
  26. <property name="hexpand">true</property>
  27. <property name="width-request">200px</property>
  28. <property name="draw-value">true</property>
  29. <property name="value-pos">right</property>
  30. <property name="digits">0</property>
  31. <property name="adjustment">sigma</property>
  32. </object>
  33. </child>
  34. </object>
  35. </child>
  36. <child>
  37. <object class="AdwActionRow">
  38. <property name="title" translatable="yes">Brightness</property>
  39. <property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
  40. <property name="activatable-widget">brightness_scale</property>
  41. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  42. <child>
  43. <object class="GtkScale" id="brightness_scale">
  44. <property name="valign">center</property>
  45. <property name="hexpand">true</property>
  46. <property name="width-request">200px</property>
  47. <property name="draw-value">true</property>
  48. <property name="value-pos">right</property>
  49. <property name="digits">2</property>
  50. <property name="adjustment">brightness</property>
  51. </object>
  52. </child>
  53. </object>
  54. </child>
  55. <child>
  56. <object class="AdwActionRow">
  57. <property name="title" translatable="yes">Opacity</property>
  58. <property name="subtitle" translatable="yes">The opacity of the window on top of the blur effect, a higher value will be more legible.</property>
  59. <property name="activatable-widget">opacity_scale</property>
  60. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  61. <child>
  62. <object class="GtkScale" id="opacity_scale">
  63. <property name="valign">center</property>
  64. <property name="hexpand">true</property>
  65. <property name="width-request">200px</property>
  66. <property name="draw-value">true</property>
  67. <property name="value-pos">right</property>
  68. <property name="orientation">horizontal</property>
  69. <property name="digits">0</property>
  70. <property name="adjustment">opacity</property>
  71. </object>
  72. </child>
  73. </object>
  74. </child>
  75. <child>
  76. <object class="AdwActionRow">
  77. <property name="title" translatable="yes">Opaque focused window</property>
  78. <property name="subtitle" translatable="yes">Makes the focused window opaque and the other ones blurred, helping with legibility.</property>
  79. <property name="activatable-widget">dynamic_opacity</property>
  80. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  81. <child>
  82. <object class="GtkSwitch" id="dynamic_opacity">
  83. <property name="valign">center</property>
  84. </object>
  85. </child>
  86. </object>
  87. </child>
  88. <child>
  89. <object class="AdwActionRow">
  90. <property name="title" translatable="yes">Blur on overview</property>
  91. <property name="subtitle" translatable="yes">Forces the blur to be properly shown on all workspaces on overview.
  92. This may cause some latency or performance issues.</property>
  93. <property name="activatable-widget">blur_on_overview</property>
  94. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  95. <child>
  96. <object class="GtkSwitch" id="blur_on_overview">
  97. <property name="valign">center</property>
  98. </object>
  99. </child>
  100. </object>
  101. </child>
  102. <child>
  103. <object class="AdwActionRow">
  104. <property name="title" translatable="yes">Enable all by default</property>
  105. <property name="subtitle" translatable="yes">Adds blur behind all windows by default.</property>
  106. <property name="activatable-widget">enable_all</property>
  107. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  108. <child>
  109. <object class="GtkSwitch" id="enable_all">
  110. <property name="valign">center</property>
  111. </object>
  112. </child>
  113. </object>
  114. </child>
  115. </object>
  116. </child>
  117. <child>
  118. <object class="AdwPreferencesGroup" id="whitelist">
  119. <property name="title" translatable="yes">Whitelist</property>
  120. <property name="description" translatable="yes">A list of windows to blur.</property>
  121. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  122. <property name="header-suffix">
  123. <object class="GtkButton" id="add_window_whitelist">
  124. <property name="halign">start</property>
  125. <property name="valign">center</property>
  126. <child>
  127. <object class="GtkBox">
  128. <property name="margin-start">12</property>
  129. <property name="margin-end">12</property>
  130. <child>
  131. <object class="GtkImage">
  132. <property name="margin-end">6</property>
  133. <property name="icon-name">add-row-symbolic</property>
  134. </object>
  135. </child>
  136. <child>
  137. <object class="GtkLabel">
  138. <property name="label" translatable="yes">Add Window</property>
  139. </object>
  140. </child>
  141. </object>
  142. </child>
  143. <style>
  144. <class name="circular" />
  145. <class name="suggested-action" />
  146. </style>
  147. </object>
  148. </property>
  149. <!-- WINDOW ROW WIDGETS GO HERE -->
  150. </object>
  151. </child>
  152. <child>
  153. <object class="AdwPreferencesGroup" id="blacklist">
  154. <property name="title" translatable="yes">Blacklist</property>
  155. <property name="description" translatable="yes">A list of windows not to blur.</property>
  156. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  157. <property name="header-suffix">
  158. <object class="GtkButton" id="add_window_blacklist">
  159. <property name="halign">start</property>
  160. <property name="valign">center</property>
  161. <child>
  162. <object class="GtkBox">
  163. <property name="margin-start">12</property>
  164. <property name="margin-end">12</property>
  165. <child>
  166. <object class="GtkImage">
  167. <property name="margin-end">6</property>
  168. <property name="icon-name">add-row-symbolic</property>
  169. </object>
  170. </child>
  171. <child>
  172. <object class="GtkLabel">
  173. <property name="label" translatable="yes">Add Window</property>
  174. </object>
  175. </child>
  176. </object>
  177. </child>
  178. <style>
  179. <class name="circular" />
  180. <class name="suggested-action" />
  181. </style>
  182. </object>
  183. </property>
  184. <!-- WINDOW ROW WIDGETS GO HERE -->
  185. </object>
  186. </child>
  187. </template>
  188. <object class="GtkAdjustment" id="sigma">
  189. <property name="lower">0</property>
  190. <property name="upper">100</property>
  191. <property name="step-increment">1</property>
  192. </object>
  193. <object class="GtkAdjustment" id="brightness">
  194. <property name="lower">0.0</property>
  195. <property name="upper">1.0</property>
  196. <property name="step-increment">0.01</property>
  197. </object>
  198. <object class="GtkAdjustment" id="opacity">
  199. <property name="lower">25</property>
  200. <property name="upper">255</property>
  201. <property name="step-increment">1</property>
  202. </object>
  203. </interface>