panel.ui 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface domain="blur-my-shell@aunetx">
  3. <template class="Panel" parent="AdwPreferencesPage">
  4. <property name="name">panel</property>
  5. <property name="title" translatable="yes">Panel</property>
  6. <property name="icon-name">bottom-panel-symbolic</property>
  7. <child>
  8. <object class="AdwPreferencesGroup">
  9. <property name="title" translatable="yes">Panel blur</property>
  10. <property name="description" translatable="yes">Blur the top panel using the background image.</property>
  11. <property name="header-suffix">
  12. <object class="GtkSwitch" id="blur">
  13. <property name="valign">center</property>
  14. </object>
  15. </property>
  16. <child>
  17. <object class="AdwActionRow">
  18. <property name="title" translatable="yes">Blur type</property>
  19. <property name="subtitle" translatable="yes">The dynamic blur is slower and only compatible with a gaussian blur effect.</property>
  20. <property name="activatable-widget">blur_mode_choose</property>
  21. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  22. <child>
  23. <object class="GtkBox" id="blur_mode_choose">
  24. <property name="valign">center</property>
  25. <property name="hexpand">false</property>
  26. <style>
  27. <class name="linked" />
  28. </style>
  29. <child>
  30. <object class="GtkToggleButton" id="mode_static">
  31. <property name="valign">center</property>
  32. <property name="hexpand">true</property>
  33. <property name="group">mode_dynamic</property>
  34. <property name="child">
  35. <object class="AdwButtonContent">
  36. <property name="icon-name">static-mode-symbolic</property>
  37. <property name="label" translatable="yes">Static</property>
  38. </object>
  39. </property>
  40. </object>
  41. </child>
  42. <child>
  43. <object class="GtkToggleButton" id="mode_dynamic">
  44. <property name="valign">center</property>
  45. <property name="hexpand">true</property>
  46. <property name="child">
  47. <object class="AdwButtonContent">
  48. <property name="icon-name">dynamic-mode-symbolic</property>
  49. <property name="label" translatable="yes">Dynamic</property>
  50. </object>
  51. </property>
  52. </object>
  53. </child>
  54. </object>
  55. </child>
  56. </object>
  57. </child>
  58. <child>
  59. <object class="PipelineChooseRow" id="pipeline_choose_row">
  60. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  61. </object>
  62. </child>
  63. <child>
  64. <object class="AdwActionRow" id="sigma_row">
  65. <property name="title" translatable="yes">Sigma</property>
  66. <property name="subtitle" translatable="yes">The intensity of the blur.</property>
  67. <property name="activatable-widget">sigma_scale</property>
  68. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  69. <child>
  70. <object class="GtkScale" id="sigma_scale">
  71. <property name="valign">center</property>
  72. <property name="hexpand">true</property>
  73. <property name="width-request">200px</property>
  74. <property name="draw-value">true</property>
  75. <property name="value-pos">right</property>
  76. <property name="digits">0</property>
  77. <property name="adjustment">sigma</property>
  78. </object>
  79. </child>
  80. </object>
  81. </child>
  82. <child>
  83. <object class="AdwActionRow" id="brightness_row">
  84. <property name="title" translatable="yes">Brightness</property>
  85. <property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
  86. <property name="activatable-widget">brightness_scale</property>
  87. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  88. <child>
  89. <object class="GtkScale" id="brightness_scale">
  90. <property name="valign">center</property>
  91. <property name="hexpand">true</property>
  92. <property name="width-request">200px</property>
  93. <property name="draw-value">true</property>
  94. <property name="value-pos">right</property>
  95. <property name="digits">2</property>
  96. <property name="adjustment">brightness</property>
  97. </object>
  98. </child>
  99. </object>
  100. </child>
  101. <child>
  102. <object class="AdwActionRow">
  103. <property name="title" translatable="yes">Force light text</property>
  104. <property name="subtitle" translatable="yes">Use a light text for the panel, useful when using gnome-shell's light theme.</property>
  105. <property name="activatable-widget">force_light_text</property>
  106. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  107. <child>
  108. <object class="GtkSwitch" id="force_light_text">
  109. <property name="valign">center</property>
  110. </object>
  111. </child>
  112. </object>
  113. </child>
  114. <child>
  115. <object class="AdwExpanderRow" id="override_background">
  116. <property name="title" translatable="yes">Override background</property>
  117. <property name="subtitle" translatable="yes">Override the background of the panel to use a transparent or semi-transparent one.
  118. Recommended unless you want to customize your GNOME theme.</property>
  119. <property name="show-enable-switch">true</property>
  120. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  121. <child>
  122. <object class="AdwActionRow">
  123. <property name="title" translatable="yes">Background style</property>
  124. <property name="subtitle" translatable="yes">The transparent/semi-transparent style for the panel background.</property>
  125. <property name="activatable-widget">style_panel</property>
  126. <child>
  127. <object class="GtkDropDown" id="style_panel">
  128. <property name="valign">center</property>
  129. <property name="model">style_panel_model</property>
  130. </object>
  131. </child>
  132. </object>
  133. </child>
  134. <child>
  135. <object class="AdwActionRow">
  136. <property name="title" translatable="yes">Disable when a window is near</property>
  137. <property name="subtitle" translatable="yes">Disables the transparency of the panel when a window is near it.</property>
  138. <property name="activatable-widget">override_background_dynamically</property>
  139. <child>
  140. <object class="GtkSwitch" id="override_background_dynamically">
  141. <property name="valign">center</property>
  142. </object>
  143. </child>
  144. </object>
  145. </child>
  146. </object>
  147. </child>
  148. <child>
  149. <object class="AdwActionRow">
  150. <property name="title" translatable="yes">Disable in overview</property>
  151. <property name="subtitle" translatable="yes">Disables the blur from the panel when entering the overview.</property>
  152. <property name="activatable-widget">unblur_in_overview</property>
  153. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  154. <child>
  155. <object class="GtkSwitch" id="unblur_in_overview">
  156. <property name="valign">center</property>
  157. </object>
  158. </child>
  159. </object>
  160. </child>
  161. </object>
  162. </child>
  163. <child>
  164. <object class="AdwPreferencesGroup">
  165. <property name="title" translatable="yes">Compatibility</property>
  166. <property name="description" translatable="yes">Various options to provide compatibility with other extensions.</property>
  167. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  168. <child>
  169. <object class="AdwActionRow">
  170. <property name="title" translatable="yes">Hidetopbar extension</property>
  171. <property name="subtitle" translatable="yes">Does not disable the blur in overview, best used with static blur.</property>
  172. <property name="activatable-widget">hidetopbar_compatibility</property>
  173. <property name="sensitive" bind-source="unblur_in_overview" bind-property="state" bind-flags="sync-create" />
  174. <child>
  175. <object class="GtkSwitch" id="hidetopbar_compatibility">
  176. <property name="valign">center</property>
  177. </object>
  178. </child>
  179. </object>
  180. </child>
  181. <child>
  182. <object class="AdwActionRow">
  183. <property name="title" translatable="yes">Blur original panel with Dash to Panel</property>
  184. <property name="subtitle" translatable="yes">Enables the blurring of the original panel with Dash to Panel, if selected in the extension's options.</property>
  185. <property name="activatable-widget">dtp_blur_original_panel</property>
  186. <child>
  187. <object class="GtkSwitch" id="dtp_blur_original_panel">
  188. <property name="valign">center</property>
  189. </object>
  190. </child>
  191. </object>
  192. </child>
  193. </object>
  194. </child>
  195. </template>
  196. <object class="GtkStringList" id="style_panel_model">
  197. <items>
  198. <item translatable="yes">Transparent</item>
  199. <item translatable="yes">Light</item>
  200. <item translatable="yes">Dark</item>
  201. <item translatable="yes">Contrasted</item>
  202. </items>
  203. </object>
  204. <object class="GtkAdjustment" id="sigma">
  205. <property name="lower">0</property>
  206. <property name="upper">100</property>
  207. <property name="step-increment">1</property>
  208. </object>
  209. <object class="GtkAdjustment" id="brightness">
  210. <property name="lower">0.0</property>
  211. <property name="upper">1.0</property>
  212. <property name="step-increment">0.01</property>
  213. </object>
  214. </interface>