added muchroom and more

This commit is contained in:
Justin Garza
2024-12-12 21:40:59 -05:00
parent fa4d4eeaff
commit 48eb33eacf
6 changed files with 466 additions and 634 deletions
+153 -182
View File
@@ -13,60 +13,52 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Animation Time Adjustment Section -->
<child>
<object class="AdwActionRow">
<!-- Title for the animation time adjustment slider -->
<property name="title" translatable="yes">Animation Time [ms]</property>
<child>
<!-- Slider for adjusting animation duration -->
<object class="GtkScale">
<property name="valign">center</property>
<property name="draw-value">1</property> <!-- Display the current value -->
<property name="digits">0</property> <!-- Number of decimal places -->
<property name="value-pos">left</property> <!-- Position of the displayed value -->
<property name="width-request">300</property> <!-- Width of the slider -->
<!-- Adjustment settings for the slider -->
<property name="draw-value">1</property>
<property name="digits">0</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-animation-time">
<property name="upper">5000</property> <!-- Maximum value -->
<property name="lower">100</property> <!-- Minimum value -->
<property name="step-increment">10</property> <!-- Smallest increment -->
<property name="page-increment">100</property> <!-- Larger increment -->
<property name="upper">5000</property>
<property name="lower">100</property>
<property name="step-increment">10</property>
<property name="page-increment">100</property>
</object>
</property>
</object>
</child>
<!-- Button to reset animation time to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-animation-time">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" /> <!-- Flat button style -->
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<!-- 8Bit Style Toggle Section -->
<!-- Star Color Presets -->
<child>
<object class="AdwActionRow">
<!-- Title and description for 8Bit style toggle -->
<property name="title" translatable="yes">8Bit Style</property>
<property name="subtitle" translatable="yes">If ON an old 8Bit Style will be used</property>
<!-- Toggle switch for enabling or disabling 8Bit style -->
<property name="activatable-widget">mushroom-8bit-enable</property>
<property name="title" translatable="yes">Color Presets</property>
<property name="activatable-widget">mushroom-star-color-preset-button</property>
<child>
<object class="GtkSwitch" id="mushroom-8bit-enable">
<object class="GtkMenuButton" id="mushroom-star-color-preset-button">
<property name="valign">center</property>
</object>
</child>
<!-- Button to reset the 8Bit style toggle to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-8bit-enable">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<property name="label" translatable="yes">Choose a Preset</property>
<style>
<class name="flat" />
</style>
@@ -74,23 +66,35 @@ SPDX-License-Identifier: GPL-3.0-or-later
</child>
</object>
</child>
<!-- Toggle for showing 4-Point Stars (Sparks) -->
<child>
<object class="AdwActionRow">
<!-- Title for enabling or disabling 4-point stars -->
<property name="title" translatable="yes">Show 4Point Stars (Sparks)</property>
<!-- Switch for toggling visibility of 4-point stars -->
<property name="activatable-widget">mushroom-4pstars-enable</property>
<property name="title" translatable="yes">Scale Style</property>
<property name="subtitle" translatable="yes">8Bit --- Smooth</property>
<child>
<object class="GtkSwitch" id="mushroom-4pstars-enable">
<object class="GtkScale" id="mushroom-scale-style-scale">
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">2</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-scale-style">
<property name="upper">1.0</property>
<property name="lower">0.0</property>
<property name="step-increment">0.1</property>
<property name="page-increment">0.25</property>
</object>
</property>
</object>
</child>
<!-- Button to reset 4-point stars visibility to default -->
<child>
<object class="GtkButton" id="reset-mushroom-4pstars-enable">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-scale-style">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -104,31 +108,69 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Adjustment for 4-Point Stars Count -->
<child>
<object class="AdwActionRow">
<!-- Title for the slider controlling the count of 4-point stars -->
<property name="title" translatable="yes">4Point Star (Sparks) Count</property>
<!-- Slider for adjusting the count of 4-point stars -->
<property name="title" translatable="yes">Spark Count</property>
<child>
<object class="GtkScale" id="mushroom-4pstars-count-scale">
<object class="GtkScale" id="mushroom-spark-count-scale">
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">0</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<!-- Adjustment settings for the slider -->
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-4pstars-count">
<property name="upper">100</property> <!-- Maximum count -->
<property name="lower">0</property> <!-- Minimum count -->
<property name="step-increment">1</property> <!-- Step size -->
<property name="page-increment">5</property> <!-- Page increment size -->
<object class="GtkAdjustment" id="mushroom-spark-count">
<property name="upper">25</property>
<property name="lower">0</property>
<property name="step-increment">1</property>
<property name="page-increment">5</property>
</object>
</property>
</object>
</child>
<!-- Button to reset 4-point stars count to default -->
<child>
<object class="GtkButton" id="reset-mushroom-4pstars-count">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-spark-count">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<!-- Adjustment for 4-Point Stars Count -->
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Spark Rotation</property>
<child>
<object class="GtkScale" >
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">2</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-spark-rotation">
<property name="upper">3.0</property>
<property name="lower">-3.0</property>
<property name="step-increment">0.5</property>
<property name="page-increment">0.25</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkButton" id="reset-mushroom-spark-rotation">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -142,53 +184,27 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Color Picker for 4-Point Stars -->
<child>
<object class="AdwActionRow">
<!-- Title for the 4-point stars color picker -->
<property name="title" translatable="yes">4Point Star (Sparks) Color</property>
<!-- Color picker for customizing the 4-point stars -->
<property name="title" translatable="yes">Spark Color</property>
<child>
<object class="GtkBox">
<style>
<class name="linked" />
</style>
<child>
<object class="GtkColorButton" id="mushroom-4pstars-color">
<property name="use_alpha">1</property> <!-- Enable alpha channel -->
<property name="show_editor">1</property> <!-- Show advanced editor -->
<object class="GtkColorButton" id="mushroom-spark-color">
<property name="use_alpha">1</property>
<property name="show_editor">1</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<!-- Button to reset the color picker to default -->
<child>
<object class="GtkButton" id="reset-mushroom-4pstars-color">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<!-- Rays Toggle -->
<child>
<object class="AdwActionRow">
<!-- Title for enabling or disabling rays -->
<property name="title" translatable="yes">Show Rays</property>
<!-- Toggle switch for controlling the visibility of rays -->
<property name="activatable-widget">mushroom-rays-enable</property>
<child>
<object class="GtkSwitch" id="mushroom-rays-enable">
<property name="valign">center</property>
</object>
</child>
<!-- Button to reset the rays toggle to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-rays-enable">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-spark-color">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -202,9 +218,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Rays Color Picker -->
<child>
<object class="AdwActionRow">
<!-- Title for the rays color picker -->
<property name="title" translatable="yes">Rays Color</property>
<!-- Color picker for customizing rays -->
<child>
<object class="GtkBox">
<style>
@@ -212,43 +228,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
</style>
<child>
<object class="GtkColorButton" id="mushroom-rays-color">
<property name="use_alpha">1</property> <!-- Enable alpha channel -->
<property name="show_editor">1</property> <!-- Show advanced editor -->
<property name="use_alpha">1</property>
<property name="show_editor">1</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<!-- Button to reset the rays color picker to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-rays-color">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<!-- Star Rings Toggle -->
<child>
<object class="AdwActionRow">
<!-- Title for enabling or disabling star rings -->
<property name="title" translatable="yes">Show Star Rings</property>
<!-- Toggle switch for controlling the visibility of star rings -->
<property name="activatable-widget">mushroom-5pstars-enable</property>
<child>
<object class="GtkSwitch" id="mushroom-5pstars-enable">
<property name="valign">center</property>
</object>
</child>
<!-- Button to reset the star rings toggle to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-5pstars-enable">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -262,31 +252,31 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Star Rings Count Adjustment -->
<child>
<object class="AdwActionRow">
<!-- Title for the slider controlling the number of star rings -->
<property name="title" translatable="yes">Star Rings Count</property>
<!-- Slider for adjusting the number of star rings -->
<child>
<object class="GtkScale" id="mushroom-5pstarring-count-scale">
<object class="GtkScale" id="mushroom-ring-count-scale">
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">0</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<!-- Adjustment settings for the slider -->
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-5pstarring-count">
<property name="upper">10</property> <!-- Maximum count -->
<property name="lower">1</property> <!-- Minimum count -->
<property name="step-increment">1</property> <!-- Step size -->
<property name="page-increment">3</property> <!-- Page increment size -->
<object class="GtkAdjustment" id="mushroom-ring-count">
<property name="upper">5</property>
<property name="lower">0</property>
<property name="step-increment">1</property>
<property name="page-increment">3</property>
</object>
</property>
</object>
</child>
<!-- Button to reset the star rings count to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-5pstarring-count">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-ring-count">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -300,31 +290,31 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Star Rings Rotation Adjustment -->
<child>
<object class="AdwActionRow">
<!-- Title for the slider controlling the rotation of star rings -->
<property name="title" translatable="yes">Star Ring Rotation</property>
<!-- Slider for adjusting the rotation of star rings -->
<child>
<object class="GtkScale" id="mushroom-5pstarring-rotation-scale">
<object class="GtkScale" id="mushroom-ring-rotation-scale">
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">2</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<!-- Adjustment settings for the slider -->
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-5pstarring-rotation">
<property name="upper">5.0</property> <!-- Maximum rotation -->
<property name="lower">-5.0</property> <!-- Minimum rotation -->
<property name="step-increment">0.25</property> <!-- Step size -->
<property name="page-increment">1.0</property> <!-- Page increment size -->
<object class="GtkAdjustment" id="mushroom-ring-rotation">
<property name="upper">3.0</property>
<property name="lower">-3.0</property>
<property name="step-increment">0.25</property>
<property name="page-increment">1.0</property>
</object>
</property>
</object>
</child>
<!-- Button to reset the star rings rotation to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-5pstarring-rotation">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-ring-rotation">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -338,31 +328,31 @@ SPDX-License-Identifier: GPL-3.0-or-later
<!-- Stars Per Star Ring Count Adjustment -->
<child>
<object class="AdwActionRow">
<!-- Title for the slider controlling the number of stars per ring -->
<property name="title" translatable="yes">Stars Per Star Ring Count</property>
<!-- Slider for adjusting the number of stars per star ring -->
<property name="title" translatable="yes">Stars Count Per Ring</property>
<child>
<object class="GtkScale" id="mushroom-5pstars-count-scale">
<object class="GtkScale" id="mushroom-star-count-scale">
<property name="valign">center</property>
<property name="draw-value">1</property>
<property name="digits">0</property>
<property name="value-pos">left</property>
<property name="width-request">300</property>
<!-- Adjustment settings for the slider -->
<property name="adjustment">
<object class="GtkAdjustment" id="mushroom-5pstars-count">
<property name="upper">10</property> <!-- Maximum stars per ring -->
<property name="lower">1</property> <!-- Minimum stars per ring -->
<property name="step-increment">1</property> <!-- Step size -->
<property name="page-increment">3</property> <!-- Page increment size -->
<object class="GtkAdjustment" id="mushroom-star-count">
<property name="upper">7</property>
<property name="lower">0</property>
<property name="step-increment">1</property>
<property name="page-increment">3</property>
</object>
</property>
</object>
</child>
<!-- Button to reset the stars per ring count to its default value -->
<child>
<object class="GtkButton" id="reset-mushroom-5pstars-count">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<object class="GtkButton" id="reset-mushroom-star-count">
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>
@@ -373,41 +363,22 @@ SPDX-License-Identifier: GPL-3.0-or-later
</object>
</child>
<!-- Star Color Presets -->
<child>
<object class="AdwActionRow">
<!-- Title for selecting color presets -->
<property name="title" translatable="yes">Color Presets</property>
<property name="activatable-widget">mushroom-star-color-preset-button</property>
<!-- Dropdown menu for selecting predefined color presets -->
<child>
<object class="GtkMenuButton" id="mushroom-star-color-preset-button">
<property name="valign">center</property>
<property name="label" translatable="yes">Choose a Preset</property>
<style>
<class name="flat" />
</style>
</object>
</child>
</object>
</child>
<!-- Star Gradient Color Adjustment -->
<child>
<object class="AdwActionRow">
<!-- Title for the star gradient color settings -->
<property name="title" translatable="yes">Star Gradient</property>
<!-- Box containing multiple color pickers for gradient customization -->
<child>
<object class="GtkBox">
<style>
<class name="linked" />
</style>
<!-- Individual color pickers for each gradient step -->
<child>
<object class="GtkColorButton" id="mushroom-star-color-0">
<property name="use_alpha">1</property> <!-- Enable alpha channel -->
<property name="show_editor">1</property> <!-- Show advanced editor -->
<property name="use_alpha">1</property>
<property name="show_editor">1</property>
<property name="valign">center</property>
</object>
</child>
@@ -448,10 +419,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
</child>
</object>
</child>
<!-- Button to reset all star gradient colors to their default values -->
<child>
<object class="GtkButton" id="reset-star-colors">
<property name="icon-name">edit-clear-symbolic</property> <!-- Reset icon -->
<property name="icon-name">edit-clear-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="yes">Reset to Default Value</property>
<style>