applications.ui 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 (beta)</property>
  10. <property name="description" translatable="yes">Adds blur to the applications. This is still beta functionality.
  11. To get the best results possible, make sure to choose the option “No artifact” in the “General → Hack level” preference.
  12. </property>
  13. <property name="header-suffix">
  14. <object class="GtkSwitch" id="blur">
  15. <property name="valign">center</property>
  16. </object>
  17. </property>
  18. <child>
  19. <object class="CustomizeRow" id="customize">
  20. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  21. </object>
  22. </child>
  23. <child>
  24. <object class="AdwActionRow">
  25. <property name="title" translatable="yes">Opacity</property>
  26. <property name="subtitle" translatable="yes">The opacity of the window on top of the blur effect, a higher value will be more legible.</property>
  27. <property name="activatable-widget">opacity</property>
  28. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  29. <child>
  30. <object class="GtkScale" id="opacity_scale">
  31. <property name="valign">center</property>
  32. <property name="hexpand">true</property>
  33. <property name="width-request">200px</property>
  34. <property name="draw-value">true</property>
  35. <property name="value-pos">right</property>
  36. <property name="orientation">horizontal</property>
  37. <property name="digits">0</property>
  38. <property name="adjustment">opacity</property>
  39. </object>
  40. </child>
  41. </object>
  42. </child>
  43. <child>
  44. <object class="AdwActionRow">
  45. <property name="title" translatable="yes">Blur on overview</property>
  46. <property name="subtitle" translatable="yes">Forces the blur to be properly shown on all workspaces on overview.
  47. This may cause some latency or performance issues.</property>
  48. <property name="activatable-widget">blur_on_overview</property>
  49. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  50. <child>
  51. <object class="GtkSwitch" id="blur_on_overview">
  52. <property name="valign">center</property>
  53. </object>
  54. </child>
  55. </object>
  56. </child>
  57. <child>
  58. <object class="AdwActionRow">
  59. <property name="title" translatable="yes">Enable all by default</property>
  60. <property name="subtitle" translatable="yes">Adds blur behind all windows by default.
  61. Not recommended because of performance and stability issues.</property>
  62. <property name="activatable-widget">enable_all</property>
  63. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  64. <child>
  65. <object class="GtkSwitch" id="enable_all">
  66. <property name="valign">center</property>
  67. </object>
  68. </child>
  69. </object>
  70. </child>
  71. </object>
  72. </child>
  73. <child>
  74. <object class="AdwPreferencesGroup" id="whitelist">
  75. <property name="title" translatable="yes">Whitelist</property>
  76. <property name="description" translatable="yes">A list of windows to blur.</property>
  77. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  78. <property name="header-suffix">
  79. <object class="GtkButton" id="add_window_whitelist">
  80. <property name="halign">start</property>
  81. <property name="valign">center</property>
  82. <child>
  83. <object class="GtkBox">
  84. <property name="margin-start">12</property>
  85. <property name="margin-end">12</property>
  86. <child>
  87. <object class="GtkImage">
  88. <property name="margin-end">6</property>
  89. <property name="icon-name">add-window-symbolic</property>
  90. </object>
  91. </child>
  92. <child>
  93. <object class="GtkLabel">
  94. <property name="label" translatable="yes">Add Window</property>
  95. </object>
  96. </child>
  97. </object>
  98. </child>
  99. <style>
  100. <class name="circular" />
  101. <class name="suggested-action" />
  102. </style>
  103. </object>
  104. </property>
  105. <!-- WINDOW ROW WIDGETS GO HERE -->
  106. </object>
  107. </child>
  108. <child>
  109. <object class="AdwPreferencesGroup" id="blacklist">
  110. <property name="title" translatable="yes">Blacklist</property>
  111. <property name="description" translatable="yes">A list of windows not to blur.</property>
  112. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  113. <property name="header-suffix">
  114. <object class="GtkButton" id="add_window_blacklist">
  115. <property name="halign">start</property>
  116. <property name="valign">center</property>
  117. <child>
  118. <object class="GtkBox">
  119. <property name="margin-start">12</property>
  120. <property name="margin-end">12</property>
  121. <child>
  122. <object class="GtkImage">
  123. <property name="margin-end">6</property>
  124. <property name="icon-name">list-add-symbolic</property>
  125. </object>
  126. </child>
  127. <child>
  128. <object class="GtkLabel">
  129. <property name="label" translatable="yes">Add Window</property>
  130. </object>
  131. </child>
  132. </object>
  133. </child>
  134. <style>
  135. <class name="circular" />
  136. <class name="suggested-action" />
  137. </style>
  138. </object>
  139. </property>
  140. <!-- WINDOW ROW WIDGETS GO HERE -->
  141. </object>
  142. </child>
  143. </template>
  144. <object class="GtkAdjustment" id="opacity">
  145. <property name="lower">25</property>
  146. <property name="upper">255</property>
  147. <property name="step-increment">1</property>
  148. </object>
  149. </interface>