mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
bar-widgets-settings: added screen property + simplified settings save
This commit is contained in:
@@ -44,7 +44,8 @@ Item {
|
||||
readonly property string textColorKey: widgetSettings.textColor !== undefined ? widgetSettings.textColor : widgetMetadata.textColor
|
||||
|
||||
readonly property bool useMonospaceFont: widgetSettings.useMonospaceFont !== undefined ? widgetSettings.useMonospaceFont : widgetMetadata.useMonospaceFont
|
||||
readonly property bool usePadding: !compactMode && !isVertical && useMonospaceFont && (widgetSettings.usePadding !== undefined) ? widgetSettings.usePadding : widgetMetadata.usePadding
|
||||
readonly property bool usePadding: !compactMode && !isVertical && useMonospaceFont && ((widgetSettings.usePadding !== undefined) ? widgetSettings.usePadding : widgetMetadata.usePadding)
|
||||
|
||||
readonly property bool showCpuUsage: (widgetSettings.showCpuUsage !== undefined) ? widgetSettings.showCpuUsage : widgetMetadata.showCpuUsage
|
||||
readonly property bool showCpuFreq: (widgetSettings.showCpuFreq !== undefined) ? widgetSettings.showCpuFreq : widgetMetadata.showCpuFreq
|
||||
readonly property bool showCpuTemp: (widgetSettings.showCpuTemp !== undefined) ? widgetSettings.showCpuTemp : widgetMetadata.showCpuTemp
|
||||
|
||||
@@ -183,6 +183,7 @@ Popup {
|
||||
}
|
||||
}
|
||||
settingsLoader.setSource(source, {
|
||||
"screen": screen,
|
||||
"widgetData": currentWidgetData,
|
||||
"widgetMetadata": BarWidgetRegistry.widgetMetadata[widgetId]
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -38,7 +39,7 @@ ColumnLayout {
|
||||
settings.useFixedWidth = valueUseFixedWidth;
|
||||
settings.colorizeIcons = valueColorizeIcons;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -62,7 +63,7 @@ ColumnLayout {
|
||||
currentKey: root.valueHideMode
|
||||
onSelected: key => {
|
||||
root.valueHideMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +74,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -85,7 +86,7 @@ ColumnLayout {
|
||||
checked: root.valueShowIcon
|
||||
onToggled: checked => {
|
||||
root.valueShowIcon = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +97,7 @@ ColumnLayout {
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => {
|
||||
root.valueColorizeIcons = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: root.valueShowIcon
|
||||
}
|
||||
@@ -108,7 +109,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.media-mini.max-width-description")
|
||||
placeholderText: widgetMetadata.maxWidth
|
||||
text: valueMaxWidth
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -118,7 +119,7 @@ ColumnLayout {
|
||||
checked: valueUseFixedWidth
|
||||
onToggled: checked => {
|
||||
valueUseFixedWidth = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +143,7 @@ ColumnLayout {
|
||||
currentKey: valueScrollingMode
|
||||
onSelected: key => {
|
||||
valueScrollingMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -23,7 +24,7 @@ ColumnLayout {
|
||||
settings.width = parseInt(widthInput.text) || widgetMetadata.width;
|
||||
settings.hideWhenIdle = valueHideWhenIdle;
|
||||
settings.colorName = valueColorName;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NTextInput {
|
||||
@@ -33,7 +34,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.audio-visualizer.width-description")
|
||||
text: widgetData.width || widgetMetadata.width
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -44,7 +45,7 @@ ColumnLayout {
|
||||
currentKey: root.valueColorName
|
||||
onSelected: key => {
|
||||
root.valueColorName = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +55,7 @@ ColumnLayout {
|
||||
checked: valueHideWhenIdle
|
||||
onToggled: checked => {
|
||||
valueHideWhenIdle = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -34,7 +35,7 @@ ColumnLayout {
|
||||
settings.hideIfNotDetected = valueHideIfNotDetected;
|
||||
settings.hideIfIdle = valueHideIfIdle;
|
||||
settings.deviceNativePath = valueDeviceNativePath;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -47,7 +48,7 @@ ColumnLayout {
|
||||
currentKey: root.valueDeviceNativePath
|
||||
onSelected: key => {
|
||||
root.valueDeviceNativePath = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +82,7 @@ ColumnLayout {
|
||||
currentKey: root.valueDisplayMode
|
||||
onSelected: key => {
|
||||
root.valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +92,7 @@ ColumnLayout {
|
||||
checked: valueHideIfNotDetected
|
||||
onToggled: checked => {
|
||||
valueHideIfNotDetected = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +102,7 @@ ColumnLayout {
|
||||
checked: valueHideIfIdle
|
||||
onToggled: checked => {
|
||||
valueHideIfIdle = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +116,7 @@ ColumnLayout {
|
||||
checked: valueShowPowerProfiles
|
||||
onToggled: checked => {
|
||||
valueShowPowerProfiles = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +126,7 @@ ColumnLayout {
|
||||
checked: valueShowNoctaliaPerformance
|
||||
onToggled: checked => {
|
||||
valueShowNoctaliaPerformance = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -23,7 +24,7 @@ ColumnLayout {
|
||||
settings.displayMode = valueDisplayMode;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -47,7 +48,7 @@ ColumnLayout {
|
||||
currentKey: root.valueDisplayMode
|
||||
onSelected: key => {
|
||||
root.valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +59,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -70,7 +71,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -24,7 +25,7 @@ ColumnLayout {
|
||||
settings.displayMode = valueDisplayMode;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -48,7 +49,7 @@ ColumnLayout {
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => {
|
||||
valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +60,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -71,7 +72,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ ColumnLayout {
|
||||
width: 700
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -53,7 +54,7 @@ ColumnLayout {
|
||||
settings.formatHorizontal = valueFormatHorizontal.trim();
|
||||
settings.formatVertical = valueFormatVertical.trim();
|
||||
settings.tooltipFormat = valueTooltipFormat.trim();
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
// Function to insert token at cursor position in the focused input
|
||||
@@ -90,7 +91,7 @@ ColumnLayout {
|
||||
currentKey: valueClockColor
|
||||
onSelected: key => {
|
||||
valueClockColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -102,7 +103,7 @@ ColumnLayout {
|
||||
checked: valueUseCustomFont
|
||||
onToggled: checked => {
|
||||
valueUseCustomFont = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +120,7 @@ ColumnLayout {
|
||||
minimumWidth: 300
|
||||
onSelected: function (key) {
|
||||
valueCustomFont = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +155,7 @@ ColumnLayout {
|
||||
placeholderText: "HH:mm ddd, MMM dd"
|
||||
text: valueFormatHorizontal
|
||||
onTextChanged: valueFormatHorizontal = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
inputItem.onActiveFocusChanged.connect(function () {
|
||||
@@ -179,7 +180,7 @@ ColumnLayout {
|
||||
placeholderText: "HH mm dd MM"
|
||||
text: valueFormatVertical
|
||||
onTextChanged: valueFormatVertical = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
inputItem.onActiveFocusChanged.connect(function () {
|
||||
@@ -199,7 +200,7 @@ ColumnLayout {
|
||||
placeholderText: "HH:mm, ddd MMM dd"
|
||||
text: valueTooltipFormat
|
||||
onTextChanged: valueTooltipFormat = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
inputItem.onActiveFocusChanged.connect(function () {
|
||||
|
||||
@@ -11,6 +11,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -30,7 +31,7 @@ ColumnLayout {
|
||||
settings.customIconPath = valueCustomIconPath;
|
||||
settings.enableColorization = valueEnableColorization;
|
||||
settings.colorizeSystemIcon = valueColorizeSystemIcon;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -39,7 +40,7 @@ ColumnLayout {
|
||||
checked: valueUseDistroLogo
|
||||
onToggled: checked => {
|
||||
valueUseDistroLogo = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +50,7 @@ ColumnLayout {
|
||||
checked: valueEnableColorization
|
||||
onToggled: checked => {
|
||||
valueEnableColorization = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +62,7 @@ ColumnLayout {
|
||||
currentKey: valueColorizeSystemIcon
|
||||
onSelected: function (key) {
|
||||
valueColorizeSystemIcon = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +112,7 @@ ColumnLayout {
|
||||
onIconSelected: iconName => {
|
||||
valueIcon = iconName;
|
||||
valueCustomIconPath = "";
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +125,7 @@ ColumnLayout {
|
||||
onAccepted: paths => {
|
||||
if (paths.length > 0) {
|
||||
valueCustomIconPath = paths[0]; // Use first selected file
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -56,7 +58,7 @@ ColumnLayout {
|
||||
settings.enableColorization = valueEnableColorization;
|
||||
settings.colorizeSystemIcon = valueColorizeSystemIcon;
|
||||
settings.ipcIdentifier = valueIpcIdentifier;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -85,7 +87,7 @@ ColumnLayout {
|
||||
initialIcon: valueIcon
|
||||
onIconSelected: function (iconName) {
|
||||
valueIcon = iconName;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +98,7 @@ ColumnLayout {
|
||||
checked: valueShowIcon
|
||||
onToggled: checked => {
|
||||
valueShowIcon = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: textCommandInput.text !== ""
|
||||
}
|
||||
@@ -107,7 +109,7 @@ ColumnLayout {
|
||||
checked: valueEnableColorization
|
||||
onToggled: checked => {
|
||||
valueEnableColorization = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +121,7 @@ ColumnLayout {
|
||||
currentKey: valueColorizeSystemIcon
|
||||
onSelected: key => {
|
||||
valueColorizeSystemIcon = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +132,7 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("placeholders.enter-ipc-identifier")
|
||||
text: valueIpcIdentifier
|
||||
onTextChanged: valueIpcIdentifier = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -143,7 +145,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.left-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.leftClickExec || widgetMetadata.leftClickExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -156,7 +158,7 @@ ColumnLayout {
|
||||
checked: widgetData?.leftClickUpdateText ?? widgetMetadata.leftClickUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -171,7 +173,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.right-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.rightClickExec || widgetMetadata.rightClickExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -184,7 +186,7 @@ ColumnLayout {
|
||||
checked: widgetData?.rightClickUpdateText ?? widgetMetadata.rightClickUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -199,7 +201,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.middle-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData.middleClickExec || widgetMetadata.middleClickExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -212,7 +214,7 @@ ColumnLayout {
|
||||
checked: widgetData?.middleClickUpdateText ?? widgetMetadata.middleClickUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -227,7 +229,7 @@ ColumnLayout {
|
||||
checked: internalChecked
|
||||
onToggled: checked => {
|
||||
internalChecked = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,7 +248,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.wheel-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelExec || widgetMetadata?.wheelExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -259,7 +261,7 @@ ColumnLayout {
|
||||
checked: widgetData?.wheelUpdateText ?? widgetMetadata?.wheelUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -279,7 +281,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.wheel-up-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelUpExec || widgetMetadata?.wheelUpExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -292,7 +294,7 @@ ColumnLayout {
|
||||
checked: (widgetData?.wheelUpUpdateText !== undefined) ? widgetData.wheelUpUpdateText : widgetMetadata?.wheelUpUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -307,7 +309,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.wheel-down-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelDownExec || widgetMetadata?.wheelDownExec
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -320,7 +322,7 @@ ColumnLayout {
|
||||
checked: (widgetData?.wheelDownUpdateText !== undefined) ? widgetData.wheelDownUpdateText : widgetMetadata?.wheelDownUpdateText
|
||||
onToggled: isChecked => {
|
||||
checked = isChecked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -343,7 +345,7 @@ ColumnLayout {
|
||||
value: valueMaxTextLengthHorizontal
|
||||
onValueChanged: {
|
||||
valueMaxTextLengthHorizontal = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +357,7 @@ ColumnLayout {
|
||||
value: valueMaxTextLengthVertical
|
||||
onValueChanged: {
|
||||
valueMaxTextLengthVertical = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,7 +368,7 @@ ColumnLayout {
|
||||
checked: valueTextStream
|
||||
onToggled: checked => {
|
||||
valueTextStream = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -377,7 +379,7 @@ ColumnLayout {
|
||||
checked: valueParseJson
|
||||
onToggled: checked => {
|
||||
valueParseJson = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -388,7 +390,7 @@ ColumnLayout {
|
||||
description: valueTextStream ? I18n.tr("bar.custom-button.display-command-output-stream-description") : I18n.tr("bar.custom-button.display-command-output-description")
|
||||
placeholderText: I18n.tr("placeholders.command-example")
|
||||
text: widgetData?.textCommand || widgetMetadata.textCommand
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NTextInput {
|
||||
@@ -399,7 +401,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.collapse-condition-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-text-to-collapse")
|
||||
text: widgetData?.textCollapse || widgetMetadata.textCollapse
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NTextInput {
|
||||
@@ -410,7 +412,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.custom-button.refresh-interval-description")
|
||||
placeholderText: String(widgetMetadata.textIntervalMs)
|
||||
text: widgetData && widgetData.textIntervalMs !== undefined ? String(widgetData.textIntervalMs) : ""
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -434,7 +436,7 @@ ColumnLayout {
|
||||
currentKey: valueHideMode
|
||||
onSelected: key => {
|
||||
valueHideMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: textCommandInput.text !== "" && valueTextStream == true
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +19,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -27,7 +29,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -19,7 +21,7 @@ ColumnLayout {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -29,7 +31,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -41,7 +43,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -26,7 +27,7 @@ ColumnLayout {
|
||||
settings.showIcon = valueShowIcon;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -51,7 +52,7 @@ ColumnLayout {
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => {
|
||||
valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +62,7 @@ ColumnLayout {
|
||||
checked: valueShowIcon
|
||||
onToggled: checked => {
|
||||
valueShowIcon = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +73,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -84,7 +85,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -21,7 +22,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -31,7 +32,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -34,7 +35,7 @@ ColumnLayout {
|
||||
settings.numLockIcon = numIcon;
|
||||
settings.scrollLockIcon = scrollIcon;
|
||||
settings.hideWhenOff = valueHideWhenOff;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -46,7 +47,7 @@ ColumnLayout {
|
||||
checked: valueShowCapsLock
|
||||
onToggled: checked => {
|
||||
valueShowCapsLock = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +71,7 @@ ColumnLayout {
|
||||
query: "letter-c"
|
||||
onIconSelected: function (iconName) {
|
||||
capsIcon = iconName;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +84,7 @@ ColumnLayout {
|
||||
checked: valueShowNumLock
|
||||
onToggled: checked => {
|
||||
valueShowNumLock = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +108,7 @@ ColumnLayout {
|
||||
query: "letter-n"
|
||||
onIconSelected: function (iconName) {
|
||||
numIcon = iconName;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +121,7 @@ ColumnLayout {
|
||||
checked: valueShowScrollLock
|
||||
onToggled: checked => {
|
||||
valueShowScrollLock = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +145,7 @@ ColumnLayout {
|
||||
query: "letter-s"
|
||||
onIconSelected: function (iconName) {
|
||||
scrollIcon = iconName;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +160,7 @@ ColumnLayout {
|
||||
checked: valueHideWhenOff
|
||||
onToggled: checked => {
|
||||
valueHideWhenOff = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -51,7 +52,7 @@ ColumnLayout {
|
||||
settings.showProgressRing = valueShowProgressRing;
|
||||
settings.compactMode = valueCompactMode;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -79,7 +80,7 @@ ColumnLayout {
|
||||
currentKey: root.valueHideMode
|
||||
onSelected: key => {
|
||||
root.valueHideMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +90,7 @@ ColumnLayout {
|
||||
checked: valueShowAlbumArt
|
||||
onToggled: checked => {
|
||||
valueShowAlbumArt = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +100,7 @@ ColumnLayout {
|
||||
checked: valueShowArtistFirst
|
||||
onToggled: checked => {
|
||||
valueShowArtistFirst = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +110,7 @@ ColumnLayout {
|
||||
checked: valueShowVisualizer
|
||||
onToggled: checked => {
|
||||
valueShowVisualizer = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +135,7 @@ ColumnLayout {
|
||||
currentKey: valueVisualizerType
|
||||
onSelected: key => {
|
||||
valueVisualizerType = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -146,7 +147,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.media-mini.max-width-description")
|
||||
placeholderText: widgetMetadata.maxWidth
|
||||
text: valueMaxWidth
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -155,7 +156,7 @@ ColumnLayout {
|
||||
checked: valueUseFixedWidth
|
||||
onToggled: checked => {
|
||||
valueUseFixedWidth = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +166,7 @@ ColumnLayout {
|
||||
checked: valueShowProgressRing
|
||||
onToggled: checked => {
|
||||
valueShowProgressRing = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +177,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -201,7 +202,7 @@ ColumnLayout {
|
||||
currentKey: valueScrollingMode
|
||||
onSelected: key => {
|
||||
valueScrollingMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -223,7 +224,7 @@ ColumnLayout {
|
||||
checked: valuePanelShowAlbumArt
|
||||
onToggled: checked => {
|
||||
valuePanelShowAlbumArt = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,7 +234,7 @@ ColumnLayout {
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => {
|
||||
valueCompactMode = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -26,7 +27,7 @@ ColumnLayout {
|
||||
settings.middleClickCommand = valueMiddleClickCommand;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -50,7 +51,7 @@ ColumnLayout {
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => {
|
||||
valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +62,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -73,7 +74,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -85,6 +86,6 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("panels.audio.external-mixer-placeholder")
|
||||
text: valueMiddleClickCommand
|
||||
onTextChanged: valueMiddleClickCommand = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -23,7 +24,7 @@ ColumnLayout {
|
||||
settings.displayMode = valueDisplayMode;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -47,7 +48,7 @@ ColumnLayout {
|
||||
currentKey: root.valueDisplayMode
|
||||
onSelected: key => {
|
||||
root.valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +59,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -70,7 +71,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +19,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -27,7 +29,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +19,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -27,7 +29,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -28,7 +29,7 @@ ColumnLayout {
|
||||
settings.hideWhenZeroUnread = valueHideWhenZeroUnread;
|
||||
settings.unreadBadgeColor = valueUnreadBadgeColor;
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -37,7 +38,7 @@ ColumnLayout {
|
||||
checked: valueShowUnreadBadge
|
||||
onToggled: checked => {
|
||||
valueShowUnreadBadge = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +49,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -60,7 +61,7 @@ ColumnLayout {
|
||||
currentKey: valueUnreadBadgeColor
|
||||
onSelected: key => {
|
||||
valueUnreadBadgeColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
visible: valueShowUnreadBadge
|
||||
@@ -72,7 +73,7 @@ ColumnLayout {
|
||||
checked: valueHideWhenZero
|
||||
onToggled: checked => {
|
||||
valueHideWhenZero = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: !valueHideWhenZeroUnread
|
||||
}
|
||||
@@ -83,7 +84,7 @@ ColumnLayout {
|
||||
checked: valueHideWhenZeroUnread
|
||||
onToggled: checked => {
|
||||
valueHideWhenZeroUnread = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +19,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -27,7 +29,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ ColumnLayout {
|
||||
width: 700
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -22,7 +23,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -32,7 +33,7 @@ ColumnLayout {
|
||||
currentKey: root.valueIconColor
|
||||
onSelected: key => {
|
||||
root.valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +18,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.width = parseInt(widthInput.text) || widgetMetadata.width;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NTextInput {
|
||||
@@ -27,6 +28,6 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.spacer.width-description")
|
||||
text: widgetData.width || widgetMetadata.width
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,14 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
signal settingsChanged(var settings)
|
||||
|
||||
readonly property bool isVerticalBar: Settings.data.bar.position === "left" || Settings.data.bar.position === "right"
|
||||
readonly property string barPosition: Settings.getBarPositionForScreen(screen?.name)
|
||||
readonly property bool isVerticalBar: barPosition === "left" || barPosition === "right"
|
||||
|
||||
// Local, editable state for checkboxes
|
||||
property bool valueCompactMode: widgetData.compactMode !== undefined ? widgetData.compactMode : widgetMetadata.compactMode
|
||||
@@ -58,7 +60,7 @@ ColumnLayout {
|
||||
settings.showDiskAvailable = valueShowDiskAvailable;
|
||||
settings.diskPath = valueDiskPath;
|
||||
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -68,7 +70,7 @@ ColumnLayout {
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => {
|
||||
valueCompactMode = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +81,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -91,7 +93,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
visible: !valueCompactMode
|
||||
@@ -104,7 +106,7 @@ ColumnLayout {
|
||||
checked: valueUseMonospaceFont
|
||||
onToggled: checked => {
|
||||
valueUseMonospaceFont = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: !valueCompactMode
|
||||
}
|
||||
@@ -116,7 +118,7 @@ ColumnLayout {
|
||||
checked: valueUsePadding
|
||||
onToggled: checked => {
|
||||
valueUsePadding = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: !valueCompactMode
|
||||
enabled: !isVerticalBar && valueUseMonospaceFont
|
||||
@@ -130,7 +132,7 @@ ColumnLayout {
|
||||
checked: valueShowCpuUsage
|
||||
onToggled: checked => {
|
||||
valueShowCpuUsage = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +144,7 @@ ColumnLayout {
|
||||
checked: valueShowCpuFreq
|
||||
onToggled: checked => {
|
||||
valueShowCpuFreq = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +156,7 @@ ColumnLayout {
|
||||
checked: valueShowCpuTemp
|
||||
onToggled: checked => {
|
||||
valueShowCpuTemp = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +168,7 @@ ColumnLayout {
|
||||
checked: valueShowGpuTemp
|
||||
onToggled: checked => {
|
||||
valueShowGpuTemp = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: SystemStatService.gpuAvailable
|
||||
}
|
||||
@@ -179,7 +181,7 @@ ColumnLayout {
|
||||
checked: valueShowLoadAverage
|
||||
onToggled: checked => {
|
||||
valueShowLoadAverage = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +193,7 @@ ColumnLayout {
|
||||
checked: valueShowMemoryUsage
|
||||
onToggled: checked => {
|
||||
valueShowMemoryUsage = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,7 +205,7 @@ ColumnLayout {
|
||||
checked: valueShowMemoryAsPercent
|
||||
onToggled: checked => {
|
||||
valueShowMemoryAsPercent = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: valueShowMemoryUsage
|
||||
}
|
||||
@@ -216,7 +218,7 @@ ColumnLayout {
|
||||
checked: valueShowSwapUsage
|
||||
onToggled: checked => {
|
||||
valueShowSwapUsage = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +230,7 @@ ColumnLayout {
|
||||
checked: valueShowNetworkStats
|
||||
onToggled: checked => {
|
||||
valueShowNetworkStats = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,7 +242,7 @@ ColumnLayout {
|
||||
checked: valueShowDiskUsage
|
||||
onToggled: checked => {
|
||||
valueShowDiskUsage = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,7 +254,7 @@ ColumnLayout {
|
||||
checked: valueShowDiskUsageAsPercent
|
||||
onToggled: checked => {
|
||||
valueShowDiskUsageAsPercent = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,7 +266,7 @@ ColumnLayout {
|
||||
checked: valueShowDiskAvailable
|
||||
onToggled: checked => {
|
||||
valueShowDiskAvailable = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +285,7 @@ ColumnLayout {
|
||||
currentKey: valueDiskPath
|
||||
onSelected: key => {
|
||||
valueDiskPath = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -48,7 +49,7 @@ ColumnLayout {
|
||||
settings.titleWidth = parseInt(titleWidthInput.text) || widgetMetadata.titleWidth;
|
||||
settings.showPinnedApps = valueShowPinnedApps;
|
||||
settings.iconScale = valueIconScale;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -72,7 +73,7 @@ ColumnLayout {
|
||||
currentKey: root.valueHideMode
|
||||
onSelected: key => {
|
||||
root.valueHideMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +84,7 @@ ColumnLayout {
|
||||
checked: root.valueOnlySameOutput
|
||||
onToggled: checked => {
|
||||
root.valueOnlySameOutput = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +95,7 @@ ColumnLayout {
|
||||
checked: root.valueOnlyActiveWorkspaces
|
||||
onToggled: checked => {
|
||||
root.valueOnlyActiveWorkspaces = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +106,7 @@ ColumnLayout {
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => {
|
||||
root.valueColorizeIcons = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +117,7 @@ ColumnLayout {
|
||||
checked: root.valueShowPinnedApps
|
||||
onToggled: checked => {
|
||||
root.valueShowPinnedApps = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +131,7 @@ ColumnLayout {
|
||||
value: root.valueIconScale
|
||||
onMoved: value => {
|
||||
root.valueIconScale = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.round(root.valueIconScale * 100) + "%"
|
||||
}
|
||||
@@ -142,7 +143,7 @@ ColumnLayout {
|
||||
checked: root.valueShowTitle
|
||||
onToggled: checked => {
|
||||
root.valueShowTitle = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
enabled: !isVerticalBar
|
||||
}
|
||||
@@ -155,7 +156,7 @@ ColumnLayout {
|
||||
description: I18n.tr("bar.taskbar.title-width-description")
|
||||
text: widgetData.titleWidth || widgetMetadata.titleWidth
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
|
||||
NToggle {
|
||||
@@ -166,7 +167,7 @@ ColumnLayout {
|
||||
checked: root.valueSmartWidth
|
||||
onToggled: checked => {
|
||||
root.valueSmartWidth = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +182,7 @@ ColumnLayout {
|
||||
value: root.valueMaxTaskbarWidth
|
||||
onMoved: value => {
|
||||
root.valueMaxTaskbarWidth = Math.round(value);
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.round(root.valueMaxTaskbarWidth) + "%"
|
||||
}
|
||||
|
||||
@@ -6,9 +6,11 @@ import qs.Widgets
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var widgetData: ({}) // Expected by BarWidgetSettingsDialog
|
||||
property var widgetMetadata: ({}) // Expected by BarWidgetSettingsDialog
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
signal settingsChanged(var settings)
|
||||
|
||||
@@ -44,7 +46,7 @@ ColumnLayout {
|
||||
checked: root.valueDrawerEnabled
|
||||
onToggled: checked => {
|
||||
root.valueDrawerEnabled = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +57,7 @@ ColumnLayout {
|
||||
currentKey: root.valueChevronColor
|
||||
onSelected: key => {
|
||||
root.valueChevronColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
visible: root.valueDrawerEnabled
|
||||
@@ -68,7 +70,7 @@ ColumnLayout {
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => {
|
||||
root.valueColorizeIcons = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +81,7 @@ ColumnLayout {
|
||||
checked: root.valueHidePassive
|
||||
onToggled: checked => {
|
||||
root.valueHidePassive = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +118,7 @@ ColumnLayout {
|
||||
"rule": newRule
|
||||
});
|
||||
newRuleInput.text = "";
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -169,7 +171,7 @@ ColumnLayout {
|
||||
colorFgHover: Color.mOnError
|
||||
onClicked: {
|
||||
blacklistModel.remove(index);
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -190,6 +192,6 @@ ColumnLayout {
|
||||
settings.chevronColor = root.valueChevronColor;
|
||||
settings.drawerEnabled = root.valueDrawerEnabled;
|
||||
settings.hidePassive = root.valueHidePassive;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -21,7 +23,7 @@ ColumnLayout {
|
||||
settings.displayMode = valueDisplayMode;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -45,7 +47,7 @@ ColumnLayout {
|
||||
currentKey: root.valueDisplayMode
|
||||
onSelected: key => {
|
||||
root.valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +58,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -68,7 +70,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -26,7 +27,7 @@ ColumnLayout {
|
||||
settings.middleClickCommand = valueMiddleClickCommand;
|
||||
settings.iconColor = valueIconColor;
|
||||
settings.textColor = valueTextColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -50,7 +51,7 @@ ColumnLayout {
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => {
|
||||
valueDisplayMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +62,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -73,7 +74,7 @@ ColumnLayout {
|
||||
currentKey: valueTextColor
|
||||
onSelected: key => {
|
||||
valueTextColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -85,6 +86,6 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("panels.audio.external-mixer-placeholder")
|
||||
text: valueMiddleClickCommand
|
||||
onTextChanged: valueMiddleClickCommand = text
|
||||
onEditingFinished: settingsChanged(saveSettings())
|
||||
onEditingFinished: saveSettings()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ ColumnLayout {
|
||||
id: root
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -17,7 +19,7 @@ ColumnLayout {
|
||||
function saveSettings() {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.iconColor = valueIconColor;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -27,7 +29,7 @@ ColumnLayout {
|
||||
currentKey: valueIconColor
|
||||
onSelected: key => {
|
||||
valueIconColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
// Properties to receive data from parent
|
||||
property var screen: null
|
||||
property var widgetData: null
|
||||
property var widgetMetadata: null
|
||||
|
||||
@@ -53,7 +54,7 @@ ColumnLayout {
|
||||
settings.emptyColor = valueEmptyColor;
|
||||
settings.showBadge = valueShowBadge;
|
||||
settings.pillSize = valuePillSize;
|
||||
return settings;
|
||||
settingsChanged(settings);
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
@@ -81,7 +82,7 @@ ColumnLayout {
|
||||
currentKey: widgetData.labelMode || widgetMetadata.labelMode
|
||||
onSelected: key => {
|
||||
valueLabelMode = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -94,7 +95,7 @@ ColumnLayout {
|
||||
value: valueCharacterCount
|
||||
onValueChanged: {
|
||||
valueCharacterCount = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: valueLabelMode === "name"
|
||||
}
|
||||
@@ -108,7 +109,7 @@ ColumnLayout {
|
||||
value: valuePillSize
|
||||
onMoved: value => {
|
||||
valuePillSize = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.round(valuePillSize * 100) + "%"
|
||||
visible: !valueShowApplications
|
||||
@@ -120,7 +121,7 @@ ColumnLayout {
|
||||
checked: valueHideUnoccupied
|
||||
onToggled: checked => {
|
||||
valueHideUnoccupied = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +131,7 @@ ColumnLayout {
|
||||
checked: valueShowLabelsOnlyWhenOccupied
|
||||
onToggled: checked => {
|
||||
valueShowLabelsOnlyWhenOccupied = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +141,7 @@ ColumnLayout {
|
||||
checked: valueFollowFocusedScreen
|
||||
onToggled: checked => {
|
||||
valueFollowFocusedScreen = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +151,7 @@ ColumnLayout {
|
||||
checked: valueEnableScrollWheel
|
||||
onToggled: checked => {
|
||||
valueEnableScrollWheel = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,7 +161,7 @@ ColumnLayout {
|
||||
checked: valueReverseScroll
|
||||
onToggled: checked => {
|
||||
valueReverseScroll = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: valueEnableScrollWheel
|
||||
}
|
||||
@@ -175,7 +176,7 @@ ColumnLayout {
|
||||
checked: valueShowApplications
|
||||
onToggled: checked => {
|
||||
valueShowApplications = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,7 +186,7 @@ ColumnLayout {
|
||||
checked: valueShowBadge
|
||||
onToggled: checked => {
|
||||
valueShowBadge = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: valueShowApplications
|
||||
}
|
||||
@@ -196,7 +197,7 @@ ColumnLayout {
|
||||
checked: valueColorizeIcons
|
||||
onToggled: checked => {
|
||||
valueColorizeIcons = checked;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
visible: valueShowApplications
|
||||
}
|
||||
@@ -210,7 +211,7 @@ ColumnLayout {
|
||||
value: valueUnfocusedIconsOpacity
|
||||
onMoved: value => {
|
||||
valueUnfocusedIconsOpacity = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.floor(valueUnfocusedIconsOpacity * 100) + "%"
|
||||
visible: valueShowApplications
|
||||
@@ -225,7 +226,7 @@ ColumnLayout {
|
||||
value: valueGroupedBorderOpacity
|
||||
onMoved: value => {
|
||||
valueGroupedBorderOpacity = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.floor(valueGroupedBorderOpacity * 100) + "%"
|
||||
visible: valueShowApplications
|
||||
@@ -240,7 +241,7 @@ ColumnLayout {
|
||||
value: valueIconScale
|
||||
onMoved: value => {
|
||||
valueIconScale = value;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
text: Math.round(valueIconScale * 100) + "%"
|
||||
visible: valueShowApplications
|
||||
@@ -275,7 +276,7 @@ ColumnLayout {
|
||||
currentKey: valueFocusedColor
|
||||
onSelected: key => {
|
||||
valueFocusedColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -305,7 +306,7 @@ ColumnLayout {
|
||||
currentKey: valueOccupiedColor
|
||||
onSelected: key => {
|
||||
valueOccupiedColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
@@ -335,7 +336,7 @@ ColumnLayout {
|
||||
currentKey: valueEmptyColor
|
||||
onSelected: key => {
|
||||
valueEmptyColor = key;
|
||||
settingsChanged(saveSettings());
|
||||
saveSettings();
|
||||
}
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ Singleton {
|
||||
"iconColor": "none",
|
||||
"textColor": "none",
|
||||
"useMonospaceFont": true,
|
||||
"usePadding": false,
|
||||
"usePadding": true,
|
||||
"showCpuUsage": true,
|
||||
"showCpuFreq": false,
|
||||
"showCpuTemp": true,
|
||||
|
||||
Reference in New Issue
Block a user