dash.ui 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface domain="blur-my-shell@aunetx">
  3. <template class="Dash" parent="AdwPreferencesPage">
  4. <property name="name">dash</property>
  5. <property name="title" translatable="yes">Dash</property>
  6. <property name="icon-name">dash-symbolic</property>
  7. <child>
  8. <object class="AdwPreferencesGroup">
  9. <property name="title" translatable="yes">Dash to Dock blur</property>
  10. <property name="description" translatable="yes">Blur the background of the Dash to Dock extension, if it is used.</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="AdwExpanderRow" id="override_background">
  103. <property name="title" translatable="yes">Override background</property>
  104. <property name="subtitle" translatable="yes">Makes the background either transparent or semi-transparent, disable this to use Dash to Dock preferences instead.</property>
  105. <property name="show-enable-switch">true</property>
  106. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  107. <child>
  108. <object class="AdwActionRow">
  109. <property name="title" translatable="yes">Background style</property>
  110. <property name="subtitle" translatable="yes">The transparent/semi-transparent style for the dock background.</property>
  111. <property name="activatable-widget">style_dash_to_dock</property>
  112. <child>
  113. <object class="GtkDropDown" id="style_dash_to_dock">
  114. <property name="valign">center</property>
  115. <property name="model">style_dash_to_dock_model</property>
  116. </object>
  117. </child>
  118. </object>
  119. </child>
  120. </object>
  121. </child>
  122. <child>
  123. <object class="AdwActionRow">
  124. <property name="title" translatable="yes">Disable in overview</property>
  125. <property name="subtitle" translatable="yes">Disables the blur from Dash to Dock when entering the overview.</property>
  126. <property name="activatable-widget">unblur_in_overview</property>
  127. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  128. <child>
  129. <object class="GtkSwitch" id="unblur_in_overview">
  130. <property name="valign">center</property>
  131. </object>
  132. </child>
  133. </object>
  134. </child>
  135. </object>
  136. </child>
  137. </template>
  138. <object class="GtkAdjustment" id="sigma">
  139. <property name="lower">0</property>
  140. <property name="upper">100</property>
  141. <property name="step-increment">1</property>
  142. </object>
  143. <object class="GtkAdjustment" id="brightness">
  144. <property name="lower">0.0</property>
  145. <property name="upper">1.0</property>
  146. <property name="step-increment">0.01</property>
  147. </object>
  148. <object class="GtkStringList" id="style_dash_to_dock_model">
  149. <items>
  150. <item translatable="yes">Transparent</item>
  151. <item translatable="yes">Light</item>
  152. <item translatable="yes">Dark</item>
  153. </items>
  154. </object>
  155. </interface>