Skip to content

Commit

Permalink
feat: option to change radius of colored background
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbocanegra authored and ccatterina committed Nov 16, 2024
1 parent 081f169 commit d164517
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contents/config/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@
<entry name="colorsFromAlbumCover" type="Bool">
<default>false</default>
</entry>
<entry name="panelBackgroundRadius" type="Int">
<default>8</default>
</entry>
</group>
</kcfg>
11 changes: 11 additions & 0 deletions src/contents/ui/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ KCM.SimpleKCM {
property alias cfg_desktopWidgetBg: desktopWidgetBackgroundRadio.value
property alias cfg_albumPlaceholder: albumPlaceholderDialog.value
property alias cfg_colorsFromAlbumCover: colorsFromAlbumCover.checked
property alias cfg_panelBackgroundRadius: panelBackgroundRadius.value


Kirigami.FormLayout {
Expand Down Expand Up @@ -350,6 +351,16 @@ KCM.SimpleKCM {
Kirigami.FormData.label: i18n("Colors from album cover (only for panel applet)")
enabled: useAlbumCoverAsPanelIcon.checked
}

Slider {
Layout.preferredWidth: 10 * Kirigami.Units.gridUnit
enabled: colorsFromAlbumCover.checked
id: panelBackgroundRadius
from: 0
to: 25
stepSize: 2
Kirigami.FormData.label: i18n("Colored background radius:")
}
}

QtDialogs.FontDialog {
Expand Down
1 change: 1 addition & 0 deletions src/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ PlasmoidItem {
Rectangle {
anchors.fill: parent
color: backgroundColor
radius: plasmoid.configuration.panelBackgroundRadius
}

GridLayout {
Expand Down

0 comments on commit d164517

Please sign in to comment.