Skip to content

Commit ec2c56d

Browse files
committed
fix: remove unused panel foreground color
Foreground color is controlled from widget element
1 parent 21ed741 commit ec2c56d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package/contents/ui/components/FormWidgetSettings.qml

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ ColumnLayout {
2121
property var config: handleString ? JSON.parse(configString) : undefined
2222
property var configLocal: keyName ? config[keyName] : config
2323
signal updateConfigString(configString: string, config: var)
24-
// whether the current item supports foreground customization, e.g the panel does not
25-
property bool supportsForeground: true
2624

2725
property alias isEnabled: isEnabled.checked
2826

@@ -231,7 +229,8 @@ ColumnLayout {
231229

232230
FormColors {
233231
enabled: backgroundRoot.isEnabled
234-
visible: currentTab === 0 && supportsForeground
232+
// the panel does not support foreground customization
233+
visible: currentTab === 0 && keyName !== "panel"
235234
config: backgroundRoot.configLocal.foregroundColor
236235
isSection: true
237236
onUpdateConfigString: (newString, newConfig) => {

0 commit comments

Comments
 (0)