[gnome] Update extensions

This commit is contained in:
2024-10-31 10:19:02 -04:00
parent 851ec4a772
commit 6d1e6d1132
238 changed files with 8705 additions and 4185 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="WindowRow" parent="AdwExpanderRow">
<template class="ApplicationRow" parent="AdwExpanderRow">
<property name="title" translatable="yes">Window Name</property>
<child>

View File

@ -7,10 +7,9 @@
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Applications blur (beta)</property>
<property name="description" translatable="yes">Adds blur to the applications. This is still beta functionality.
To get the best results possible, make sure to choose the option “No artifact” in the “General → Hack level” preference.
</property>
<property name="title" translatable="yes">Applications blur</property>
<property name="description" translatable="yes">Adds blur to the applications.
To get the best results possible, although with reduced performances, you can choose the option “No artifact” in the “Other → Hack level” tab.</property>
<property name="header-suffix">
<object class="GtkSwitch" id="blur">
<property name="valign">center</property>
@ -18,8 +17,44 @@ To get the best results possible, make sure to choose the option “No artifact
</property>
<child>
<object class="CustomizeRow" id="customize">
<object class="AdwActionRow">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">sigma_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">0</property>
<property name="adjustment">sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">brightness_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">2</property>
<property name="adjustment">brightness</property>
</object>
</child>
</object>
</child>
@ -45,6 +80,20 @@ To get the best results possible, make sure to choose the option “No artifact
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Opaque focused window</property>
<property name="subtitle" translatable="yes">Makes the focused window opaque and the other ones blurred, helping with legibility.</property>
<property name="activatable-widget">dynamic_opacity</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkSwitch" id="dynamic_opacity">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
@ -65,8 +114,7 @@ This may cause some latency or performance issues.</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Enable all by default</property>
<property name="subtitle" translatable="yes">Adds blur behind all windows by default.
Not recommended because of performance and stability issues.</property>
<property name="subtitle" translatable="yes">Adds blur behind all windows by default.</property>
<property name="activatable-widget">enable_all</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
@ -96,7 +144,7 @@ Not recommended because of performance and stability issues.</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">add-window-symbolic</property>
<property name="icon-name">add-row-symbolic</property>
</object>
</child>
<child>
@ -133,7 +181,7 @@ Not recommended because of performance and stability issues.</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">list-add-symbolic</property>
<property name="icon-name">add-row-symbolic</property>
</object>
</child>
<child>
@ -155,6 +203,18 @@ Not recommended because of performance and stability issues.</property>
</child>
</template>
<object class="GtkAdjustment" id="sigma">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkAdjustment" id="opacity">
<property name="lower">25</property>
<property name="upper">255</property>

View File

@ -1,143 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="CustomizeRow" parent="AdwExpanderRow">
<property name="title" translatable="yes">Customize properties</property>
<property name="subtitle" translatable="yes">Uses customized blur properties, instead of the ones set in the General page.</property>
<property name="show-enable-switch">true</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">sigma_scale</property>
<child>
<object class="GtkScale" id="sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">0</property>
<property name="adjustment">sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">brightness_scale</property>
<child>
<object class="GtkScale" id="brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">brightness</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="color_row">
<property name="title" translatable="yes">Color</property>
<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>
<property name="activatable-widget">color</property>
<child>
<object class="GtkColorButton" id="color">
<property name="valign">center</property>
<property name="hexpand">false</property>
<property name="width-request">70px</property>
<property name="height-request">45px</property>
<property name="show-editor">true</property>
<property name="use-alpha">true</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="noise_amount_row">
<property name="title" translatable="yes">Noise amount</property>
<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>
<property name="activatable-widget">noise_amount_scale</property>
<child>
<object class="GtkScale" id="noise_amount_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">noise_amount</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="noise_lightness_row">
<property name="title" translatable="yes">Noise lightness</property>
<property name="subtitle" translatable="yes">The lightness of the noise added to the blur effect.</property>
<property name="activatable-widget">noise_lightness_scale</property>
<child>
<object class="GtkScale" id="noise_lightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">noise_lightness</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="noise_color_notice">
<property name="title" translatable="yes">Notice</property>
<property name="subtitle" translatable="yes">Noise and color can't be activated on dynamically blurred components, such as this one.</property>
</object>
</child>
</template>
<object class="GtkAdjustment" id="sigma">
<property name="lower">0</property>
<property name="upper">200</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkAdjustment" id="noise_amount">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkAdjustment" id="noise_lightness">
<property name="lower">0.0</property>
<property name="upper">2.0</property>
<property name="step-increment">0.01</property>
</object>
</interface>

View File

@ -15,47 +15,94 @@
</object>
</property>
<child>
<object class="CustomizeRow" id="customize">
<property name="sensitive" bind-source="blur" bind-property="state"
bind-flags="sync-create" />
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Static blur</property>
<property name="subtitle" translatable="yes">Uses a static blurred image, can be used with rounding effect.
&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>
<property name="activatable-widget">static_blur</property>
<property name="title" translatable="yes">Blur type</property>
<property name="subtitle" translatable="yes">The dynamic blur is slower and only compatible with a gaussian blur effect.</property>
<property name="activatable-widget">blur_mode_choose</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkSwitch" id="static_blur">
<object class="GtkBox" id="blur_mode_choose">
<property name="valign">center</property>
<property name="hexpand">false</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkToggleButton" id="mode_static">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="group">mode_dynamic</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">static-mode-symbolic</property>
<property name="label" translatable="yes">Static</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="mode_dynamic">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">dynamic-mode-symbolic</property>
<property name="label" translatable="yes">Dynamic</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Rounded corner radius</property>
<property name="subtitle" translatable="yes">The radius for the rounding effect. Only available with static blur.</property>
<property name="activatable-widget">corner_radius_scale</property>
<object class="PipelineChooseRow" id="pipeline_choose_row">
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
<child>
<object class="AdwActionRow" id="sigma_row">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">sigma_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<property name="sensitive" bind-source="static_blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="corner_radius_scale">
<object class="GtkScale" id="sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">0</property>
<property name="adjustment">corner_radius</property>
<property name="adjustment">sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="brightness_row">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">brightness_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">2</property>
<property name="adjustment">brightness</property>
</object>
</child>
</object>
@ -103,6 +150,18 @@
</child>
</template>
<object class="GtkAdjustment" id="sigma">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkStringList" id="style_dash_to_dock_model">
<items>
<item translatable="yes">Transparent</item>
@ -110,10 +169,4 @@
<item translatable="yes">Dark</item>
</items>
</object>
<object class="GtkAdjustment" id="corner_radius">
<property name="lower">0</property>
<property name="upper">50</property>
<property name="step-increment">1</property>
</object>
</interface>

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="EffectsDialog" parent="AdwPreferencesDialog">
<property name="title" translatable="yes">Effects</property>
<property name="presentation-mode">ADW_DIALOG_BOTTOM_SHEET</property>
<property name="content-width">600</property>
<property name="content-height">480</property>
<child>
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup" id="effects_list">
<property name="title">Effects list</property>
<property name="description">Effect on the top will be applied first.</property>
<property name="header-suffix">
<object class="GtkBox">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton" id="add_effect">
<property name="halign">start</property>
<property name="valign">center</property>
<child>
<object class="GtkBox">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">list-add-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Add Effect</property>
</object>
</child>
</object>
</child>
<style>
<class name="circular" />
<class name="suggested-action" />
</style>
</object>
</child>
<child>
<object class="GtkMenuButton" id="add_effect_alt_menu">
<property name="valign">center</property>
<property name="icon-name">down-symbolic</property>
<property name="menu-model">add_effect_alt_menu_model</property>
<style>
<class name="circular" />
</style>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
</template>
<menu id="add_effect_alt_menu_model">
<section>
<item>
<attribute name="label" translatable="yes">Include advanced effects</attribute>
<attribute name="action">effects-dialog.advanced-effects-bool</attribute>
</item>
</section>
</menu>
</interface>

View File

@ -1,234 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="General" parent="AdwPreferencesPage">
<property name="name">general</property>
<property name="title" translatable="yes">General</property>
<property name="icon-name">general-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Blur preferences</property>
<property name="description" translatable="yes">Global blur preferences, used by all components by default.</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">sigma_scale</property>
<child>
<object class="GtkScale" id="sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">0</property>
<property name="adjustment">sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">brightness_scale</property>
<child>
<object class="GtkScale" id="brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">brightness</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="color_row">
<property name="title" translatable="yes">Color</property>
<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>
<property name="activatable-widget">color</property>
<child>
<object class="GtkColorButton" id="color">
<property name="valign">center</property>
<property name="hexpand">false</property>
<property name="width-request">70px</property>
<property name="height-request">45px</property>
<property name="show-editor">true</property>
<property name="use-alpha">true</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="noise_amount_row">
<property name="title" translatable="yes">Noise amount</property>
<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>
<property name="activatable-widget">noise_amount_scale</property>
<child>
<object class="GtkScale" id="noise_amount_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">noise_amount</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="noise_lightness_row">
<property name="title" translatable="yes">Noise lightness</property>
<property name="subtitle" translatable="yes">The lightness of the noise added to the blur effect.</property>
<property name="activatable-widget">noise_lightness_scale</property>
<child>
<object class="GtkScale" id="noise_lightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="orientation">horizontal</property>
<property name="digits">2</property>
<property name="adjustment">noise_lightness</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Performance</property>
<property name="description" translatable="yes">Various options to tweak the performance.</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Color and noise effects</property>
<property name="subtitle" translatable="yes">Globally disables noise and color effects which may improve performance on low-end systems.</property>
<property name="activatable-widget">color_and_noise</property>
<child>
<object class="GtkSwitch" id="color_and_noise">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Hack level</property>
<property name="subtitle" translatable="yes">Changes the behaviour of the dynamic blur effect.
The default value is highly recommended unless you use application blur, in which case “No artifact” is better.
This option will entirely disable clipped redraws in GNOME shell, and may impact performance significantly but will completely fix the blur effect.</property>
<property name="activatable-widget">hack_level</property>
<child>
<object class="GtkDropDown" id="hack_level">
<property name="valign">center</property>
<property name="model">hack_level_model</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Debug</property>
<property name="subtitle" translatable="yes">Makes the extension verbose in logs, activate when you need to report an issue.</property>
<property name="activatable-widget">debug</property>
<child>
<object class="GtkSwitch" id="debug">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Reset preferences</property>
<property name="description" translatable="yes">Resets preferences of Blur my Shell irreversibly.</property>
<property name="header-suffix">
<object class="GtkButton" id="reset">
<property name="halign">start</property>
<property name="valign">center</property>
<child>
<object class="GtkBox">
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">reset-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Reset</property>
</object>
</child>
</object>
</child>
<style>
<class name="circular" />
<class name="destructive-action" />
</style>
</object>
</property>
</object>
</child>
</template>
<object class="GtkAdjustment" id="sigma">
<property name="lower">0</property>
<property name="upper">200</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkAdjustment" id="noise_amount">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkAdjustment" id="noise_lightness">
<property name="lower">0.0</property>
<property name="upper">2.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkStringList" id="hack_level_model">
<items>
<item translatable="yes">High performances</item>
<item translatable="yes">Default</item>
<item translatable="yes">High quality</item>
<item translatable="yes">No artifact</item>
</items>
</object>
</interface>

View File

@ -30,7 +30,7 @@
<object class="GtkMenuButton" id="info_menu">
<property name="menu-model">info_menu_model</property>
<property name="icon-name">heart-filled-symbolic</property>
<property name="icon-name">heart-symbolic</property>
</object>
<object class="AdwPreferencesPage" id="menu_util"></object>

View File

@ -16,7 +16,7 @@
</property>
<child>
<object class="CustomizeRow" id="lockscreen_customize">
<object class="PipelineChooseRow" id="lockscreen_pipeline_choose_row">
<property name="sensitive" bind-source="lockscreen_blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
@ -34,7 +34,7 @@
</property>
<child>
<object class="CustomizeRow" id="screenshot_customize">
<object class="PipelineChooseRow" id="screenshot_pipeline_choose_row">
<property name="sensitive" bind-source="screenshot_blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
@ -52,11 +52,157 @@
</property>
<child>
<object class="CustomizeRow" id="window_list_customize">
<object class="AdwActionRow">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">window_list_sigma_scale</property>
<property name="sensitive" bind-source="window_list_blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="window_list_sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">0</property>
<property name="adjustment">window_list_sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">window_list_brightness_scale</property>
<property name="sensitive" bind-source="window_list_blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="window_list_brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">2</property>
<property name="adjustment">window_list_brightness</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Coverflow Alt-Tab extension blur</property>
<property name="description" translatable="yes">Make the coverflow alt-tab extension blurred, if it is used.</property>
<property name="header-suffix">
<object class="GtkSwitch" id="coverflow_alt_tab_blur">
<property name="valign">center</property>
</object>
</property>
<child>
<object class="PipelineChooseRow" id="coverflow_alt_tab_pipeline_choose_row">
<property name="sensitive" bind-source="coverflow_alt_tab_blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Performance</property>
<property name="description" translatable="yes">Various options to tweak the performance.</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Hack level</property>
<property name="subtitle" translatable="yes">Changes the behaviour of the dynamic blur effect. The default value is highly recommended.
The “No artifact” option will entirely disable clipped redraws in GNOME shell, and will impact your computer performances significantly.</property>
<property name="activatable-widget">hack_level</property>
<child>
<object class="GtkDropDown" id="hack_level">
<property name="valign">center</property>
<property name="model">hack_level_model</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Debug</property>
<property name="subtitle" translatable="yes">Makes the extension verbose in logs, activate when you need to report an issue.</property>
<property name="activatable-widget">debug</property>
<child>
<object class="GtkSwitch" id="debug">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Reset preferences</property>
<property name="description" translatable="yes">Resets preferences of Blur my Shell irreversibly.</property>
<property name="header-suffix">
<object class="GtkButton" id="reset">
<property name="halign">start</property>
<property name="valign">center</property>
<child>
<object class="GtkBox">
<property name="margin-start">20</property>
<property name="margin-end">20</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">reset-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Reset</property>
</object>
</child>
</object>
</child>
<style>
<class name="circular" />
<class name="destructive-action" />
</style>
</object>
</property>
</object>
</child>
</template>
<object class="GtkAdjustment" id="window_list_sigma">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="window_list_brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkStringList" id="hack_level_model">
<items>
<item translatable="yes">High performances</item>
<item translatable="yes">Default</item>
<item translatable="yes">No artifact</item>
</items>
</object>
</interface>

View File

@ -16,7 +16,7 @@
</property>
<child>
<object class="CustomizeRow" id="overview_customize">
<object class="PipelineChooseRow" id="pipeline_choose_row">
<property name="sensitive" bind-source="overview_blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
@ -50,8 +50,44 @@
</property>
<child>
<object class="CustomizeRow" id="appfolder_customize">
<object class="AdwActionRow">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">appfolder_sigma_scale</property>
<property name="sensitive" bind-source="appfolder_blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="appfolder_sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">0</property>
<property name="adjustment">appfolder_sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">appfolder_brightness_scale</property>
<property name="sensitive" bind-source="appfolder_blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="appfolder_brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">2</property>
<property name="adjustment">appfolder_brightness</property>
</object>
</child>
</object>
</child>
@ -83,6 +119,19 @@
</items>
</object>
<object class="GtkAdjustment" id="appfolder_sigma">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="appfolder_brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
<object class="GtkStringList" id="appfolder_style_dialogs_model">
<items>
<item translatable="yes">Do not style</item>

View File

@ -16,21 +16,93 @@
</property>
<child>
<object class="CustomizeRow" id="customize">
<object class="AdwActionRow">
<property name="title" translatable="yes">Blur type</property>
<property name="subtitle" translatable="yes">The dynamic blur is slower and only compatible with a gaussian blur effect.</property>
<property name="activatable-widget">blur_mode_choose</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkBox" id="blur_mode_choose">
<property name="valign">center</property>
<property name="hexpand">false</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkToggleButton" id="mode_static">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="group">mode_dynamic</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">static-mode-symbolic</property>
<property name="label" translatable="yes">Static</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="mode_dynamic">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">dynamic-mode-symbolic</property>
<property name="label" translatable="yes">Dynamic</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="PipelineChooseRow" id="pipeline_choose_row">
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Static blur</property>
<property name="subtitle" translatable="yes">Uses a static blurred image, more performant and stable.</property>
<property name="activatable-widget">static_blur</property>
<object class="AdwActionRow" id="sigma_row">
<property name="title" translatable="yes">Sigma</property>
<property name="subtitle" translatable="yes">The intensity of the blur.</property>
<property name="activatable-widget">sigma_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkSwitch" id="static_blur">
<object class="GtkScale" id="sigma_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">0</property>
<property name="adjustment">sigma</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="brightness_row">
<property name="title" translatable="yes">Brightness</property>
<property name="subtitle" translatable="yes">The brightness of the blur effect, a high value might make the text harder to read.</property>
<property name="activatable-widget">brightness_scale</property>
<property name="sensitive" bind-source="blur" bind-property="state" bind-flags="sync-create" />
<child>
<object class="GtkScale" id="brightness_scale">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="width-request">200px</property>
<property name="draw-value">true</property>
<property name="value-pos">right</property>
<property name="digits">2</property>
<property name="adjustment">brightness</property>
</object>
</child>
</object>
@ -153,4 +225,16 @@ Recommended unless you want to customize your GNOME theme.</property>
<item translatable="yes">Contrasted</item>
</items>
</object>
<object class="GtkAdjustment" id="sigma">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="step-increment">1</property>
</object>
<object class="GtkAdjustment" id="brightness">
<property name="lower">0.0</property>
<property name="upper">1.0</property>
<property name="step-increment">0.01</property>
</object>
</interface>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="PipelineChooseRow" parent="AdwActionRow">
<property name="title" translatable="yes">Pipeline</property>
<property name="subtitle" translatable="yes">The pipeline to be used with this component.</property>
<property name="activatable-widget">pipeline_choose</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<property name="hexpand">false</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkDropDown" id="pipeline_choose">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="model">
<object class="GtkStringList" id="pipeline_model">
<items>
</items>
</object>
</property>
</object>
</child>
<child>
<object class="GtkButton" id="pipeline_edit">
<property name="valign">center</property>
<property name="hexpand">true</property>
<property name="icon-name">edit-row-symbolic</property>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="PipelineGroup" parent="AdwPreferencesGroup">
<child>
<object class="AdwEntryRow" id="title">
<property name="title" translatable="yes">Pipeline name</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="effects_description_row">
<property name="activatable-widget">manage_effects</property>
<child>
<object class="GtkButton" id="manage_effects">
<property name="valign">center</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">edit-row-symbolic</property>
<property name="label" translatable="yes">Manage effects</property>
<property name="use-underline">True</property>
</object>
</property>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="blur-my-shell@aunetx">
<template class="Pipelines" parent="AdwPreferencesPage">
<property name="name">pipelines</property>
<property name="title" translatable="yes">Pipelines</property>
<property name="icon-name">pipelines-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="description" translatable="yes">Each component uses a pipeline, which can be chosen in the corresponding tab. Here you can create, modify and delete the pipelines and their effects.</property>
<property name="header-suffix">
<object class="GtkButton" id="add_pipeline">
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin-start">12</property>
<child>
<object class="GtkBox">
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<child>
<object class="GtkImage">
<property name="margin-end">6</property>
<property name="icon-name">list-add-symbolic</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Add Pipeline</property>
</object>
</child>
</object>
</child>
<style>
<class name="circular" />
<class name="suggested-action" />
</style>
</object>
</property>
</object>
</child>
</template>
</interface>