customize-row.ui 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface domain="blur-my-shell@aunetx">
  3. <template class="CustomizeRow" parent="AdwExpanderRow">
  4. <property name="title" translatable="yes">Customize properties</property>
  5. <property name="subtitle" translatable="yes">Uses customized blur properties, instead of the ones set in the General page.</property>
  6. <property name="show-enable-switch">true</property>
  7. <child>
  8. <object class="AdwActionRow">
  9. <property name="title" translatable="yes">Sigma</property>
  10. <property name="subtitle" translatable="yes">The intensity of the blur.</property>
  11. <property name="activatable-widget">sigma_scale</property>
  12. <child>
  13. <object class="GtkScale" id="sigma_scale">
  14. <property name="valign">center</property>
  15. <property name="hexpand">true</property>
  16. <property name="width-request">200px</property>
  17. <property name="draw-value">true</property>
  18. <property name="value-pos">right</property>
  19. <property name="orientation">horizontal</property>
  20. <property name="digits">0</property>
  21. <property name="adjustment">sigma</property>
  22. </object>
  23. </child>
  24. </object>
  25. </child>
  26. <child>
  27. <object class="AdwActionRow">
  28. <property name="title" translatable="yes">Brightness</property>
  29. <property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
  30. <property name="activatable-widget">brightness_scale</property>
  31. <child>
  32. <object class="GtkScale" id="brightness_scale">
  33. <property name="valign">center</property>
  34. <property name="hexpand">true</property>
  35. <property name="width-request">200px</property>
  36. <property name="draw-value">true</property>
  37. <property name="value-pos">right</property>
  38. <property name="orientation">horizontal</property>
  39. <property name="digits">2</property>
  40. <property name="adjustment">brightness</property>
  41. </object>
  42. </child>
  43. </object>
  44. </child>
  45. <child>
  46. <object class="AdwActionRow" id="color_row">
  47. <property name="title" translatable="yes">Color</property>
  48. <property name="subtitle" translatable="yes">Changes the color of the blur. The opacity of the color controls how much it is blended into the blur effect.</property>
  49. <property name="activatable-widget">color</property>
  50. <child>
  51. <object class="GtkColorButton" id="color">
  52. <property name="valign">center</property>
  53. <property name="hexpand">false</property>
  54. <property name="width-request">70px</property>
  55. <property name="height-request">45px</property>
  56. <property name="show-editor">true</property>
  57. <property name="use-alpha">true</property>
  58. </object>
  59. </child>
  60. </object>
  61. </child>
  62. <child>
  63. <object class="AdwActionRow" id="noise_amount_row">
  64. <property name="title" translatable="yes">Noise amount</property>
  65. <property name="subtitle" translatable="yes">The amount of noise to add to the blur effect, useful on low-contrast screens or for aesthetic purpose.</property>
  66. <property name="activatable-widget">noise_amount_scale</property>
  67. <child>
  68. <object class="GtkScale" id="noise_amount_scale">
  69. <property name="valign">center</property>
  70. <property name="hexpand">true</property>
  71. <property name="width-request">200px</property>
  72. <property name="draw-value">true</property>
  73. <property name="value-pos">right</property>
  74. <property name="orientation">horizontal</property>
  75. <property name="digits">2</property>
  76. <property name="adjustment">noise_amount</property>
  77. </object>
  78. </child>
  79. </object>
  80. </child>
  81. <child>
  82. <object class="AdwActionRow" id="noise_lightness_row">
  83. <property name="title" translatable="yes">Noise lightness</property>
  84. <property name="subtitle" translatable="yes">The lightness of the noise added to the blur effect.</property>
  85. <property name="activatable-widget">noise_lightness_scale</property>
  86. <child>
  87. <object class="GtkScale" id="noise_lightness_scale">
  88. <property name="valign">center</property>
  89. <property name="hexpand">true</property>
  90. <property name="width-request">200px</property>
  91. <property name="draw-value">true</property>
  92. <property name="value-pos">right</property>
  93. <property name="orientation">horizontal</property>
  94. <property name="digits">2</property>
  95. <property name="adjustment">noise_lightness</property>
  96. </object>
  97. </child>
  98. </object>
  99. </child>
  100. <child>
  101. <object class="AdwActionRow" id="noise_color_notice">
  102. <property name="title" translatable="yes">Notice</property>
  103. <property name="subtitle" translatable="yes">Noise and color can't be activated on dynamically blurred components, such as this one.</property>
  104. </object>
  105. </child>
  106. </template>
  107. <object class="GtkAdjustment" id="sigma">
  108. <property name="lower">0</property>
  109. <property name="upper">200</property>
  110. <property name="step-increment">1</property>
  111. </object>
  112. <object class="GtkAdjustment" id="brightness">
  113. <property name="lower">0.0</property>
  114. <property name="upper">1.0</property>
  115. <property name="step-increment">0.01</property>
  116. </object>
  117. <object class="GtkAdjustment" id="noise_amount">
  118. <property name="lower">0.0</property>
  119. <property name="upper">1.0</property>
  120. <property name="step-increment">0.01</property>
  121. </object>
  122. <object class="GtkAdjustment" id="noise_lightness">
  123. <property name="lower">0.0</property>
  124. <property name="upper">2.0</property>
  125. <property name="step-increment">0.01</property>
  126. </object>
  127. </interface>