dash.ui 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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="CustomizeRow" id="customize">
  18. <property name="sensitive" bind-source="blur" bind-property="state"
  19. bind-flags="sync-create" />
  20. </object>
  21. </child>
  22. <child>
  23. <object class="AdwActionRow">
  24. <property name="title" translatable="yes">Static blur</property>
  25. <property name="subtitle" translatable="yes">Uses a static blurred image, can be used with rounding effect.
  26. &lt;b&gt;Important notice:&lt;/b&gt; with this activated, you should not use a big sigma value as it will deteriorate performances.</property>
  27. <property name="activatable-widget">static_blur</property>
  28. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  29. <child>
  30. <object class="GtkSwitch" id="static_blur">
  31. <property name="valign">center</property>
  32. </object>
  33. </child>
  34. </object>
  35. </child>
  36. <child>
  37. <object class="AdwActionRow">
  38. <property name="title" translatable="yes">Rounded corner radius</property>
  39. <property name="subtitle" translatable="yes">The radius for the rounding effect. Only available with static blur.</property>
  40. <property name="activatable-widget">corner_radius_scale</property>
  41. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  42. <property name="sensitive" bind-source="static_blur" bind-property="state" bind-flags="sync-create" />
  43. <child>
  44. <object class="GtkScale" id="corner_radius_scale">
  45. <property name="valign">center</property>
  46. <property name="hexpand">true</property>
  47. <property name="width-request">200px</property>
  48. <property name="draw-value">true</property>
  49. <property name="value-pos">right</property>
  50. <property name="orientation">horizontal</property>
  51. <property name="digits">0</property>
  52. <property name="adjustment">corner_radius</property>
  53. </object>
  54. </child>
  55. </object>
  56. </child>
  57. <child>
  58. <object class="AdwExpanderRow" id="override_background">
  59. <property name="title" translatable="yes">Override background</property>
  60. <property name="subtitle" translatable="yes">Makes the background either transparent or semi-transparent, disable this to use Dash to Dock preferences instead.</property>
  61. <property name="show-enable-switch">true</property>
  62. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  63. <child>
  64. <object class="AdwActionRow">
  65. <property name="title" translatable="yes">Background style</property>
  66. <property name="subtitle" translatable="yes">The transparent/semi-transparent style for the dock background.</property>
  67. <property name="activatable-widget">style_dash_to_dock</property>
  68. <child>
  69. <object class="GtkDropDown" id="style_dash_to_dock">
  70. <property name="valign">center</property>
  71. <property name="model">style_dash_to_dock_model</property>
  72. </object>
  73. </child>
  74. </object>
  75. </child>
  76. </object>
  77. </child>
  78. <child>
  79. <object class="AdwActionRow">
  80. <property name="title" translatable="yes">Disable in overview</property>
  81. <property name="subtitle" translatable="yes">Disables the blur from Dash to Dock when entering the overview.</property>
  82. <property name="activatable-widget">unblur_in_overview</property>
  83. <property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
  84. <child>
  85. <object class="GtkSwitch" id="unblur_in_overview">
  86. <property name="valign">center</property>
  87. </object>
  88. </child>
  89. </object>
  90. </child>
  91. </object>
  92. </child>
  93. </template>
  94. <object class="GtkStringList" id="style_dash_to_dock_model">
  95. <items>
  96. <item translatable="yes">Transparent</item>
  97. <item translatable="yes">Light</item>
  98. <item translatable="yes">Dark</item>
  99. </items>
  100. </object>
  101. <object class="GtkAdjustment" id="corner_radius">
  102. <property name="lower">0</property>
  103. <property name="upper">50</property>
  104. <property name="step-increment">1</property>
  105. </object>
  106. </interface>