mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
chore(autofmt): lysec cloned again
This commit is contained in:
@@ -141,8 +141,8 @@ ColumnLayout {
|
||||
placeholderText: "HH:mm ddd, MMM dd"
|
||||
text: valueFormatHorizontal
|
||||
onTextChanged: {
|
||||
valueFormatHorizontal = text
|
||||
saveSettings()
|
||||
valueFormatHorizontal = text;
|
||||
saveSettings();
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
@@ -169,8 +169,8 @@ ColumnLayout {
|
||||
placeholderText: "HH mm dd MM"
|
||||
text: valueFormatVertical
|
||||
onTextChanged: {
|
||||
valueFormatVertical = text
|
||||
saveSettings()
|
||||
valueFormatVertical = text;
|
||||
saveSettings();
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
@@ -192,8 +192,8 @@ ColumnLayout {
|
||||
placeholderText: "HH:mm, ddd MMM dd"
|
||||
text: valueTooltipFormat
|
||||
onTextChanged: {
|
||||
valueTooltipFormat = text
|
||||
saveSettings()
|
||||
valueTooltipFormat = text;
|
||||
saveSettings();
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
|
||||
@@ -140,8 +140,8 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("placeholders.enter-tooltip")
|
||||
text: valueGeneralTooltipText
|
||||
onTextChanged: {
|
||||
valueGeneralTooltipText = text
|
||||
saveSettings()
|
||||
valueGeneralTooltipText = text;
|
||||
saveSettings();
|
||||
}
|
||||
defaultValue: widgetMetadata.generalTooltipText
|
||||
}
|
||||
@@ -177,8 +177,8 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("placeholders.enter-ipc-identifier")
|
||||
text: valueIpcIdentifier
|
||||
onTextChanged: {
|
||||
valueIpcIdentifier = text
|
||||
saveSettings()
|
||||
valueIpcIdentifier = text;
|
||||
saveSettings();
|
||||
}
|
||||
defaultValue: widgetMetadata.ipcIdentifier
|
||||
}
|
||||
|
||||
@@ -82,8 +82,8 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("panels.audio.external-mixer-placeholder")
|
||||
text: valueMiddleClickCommand
|
||||
onTextChanged: {
|
||||
valueMiddleClickCommand = text
|
||||
saveSettings()
|
||||
valueMiddleClickCommand = text;
|
||||
saveSettings();
|
||||
}
|
||||
defaultValue: widgetMetadata.middleClickCommand
|
||||
}
|
||||
|
||||
@@ -82,8 +82,8 @@ ColumnLayout {
|
||||
placeholderText: I18n.tr("panels.audio.external-mixer-placeholder")
|
||||
text: valueMiddleClickCommand
|
||||
onTextChanged: {
|
||||
valueMiddleClickCommand = text
|
||||
saveSettings()
|
||||
valueMiddleClickCommand = text;
|
||||
saveSettings();
|
||||
}
|
||||
defaultValue: widgetMetadata.middleClickCommand
|
||||
}
|
||||
|
||||
@@ -175,8 +175,8 @@ ColumnLayout {
|
||||
placeholderText: "HH:mm\\nd MMMM yyyy"
|
||||
text: valueFormat
|
||||
onTextChanged: {
|
||||
valueFormat = text
|
||||
settingsChanged(saveSettings())
|
||||
valueFormat = text;
|
||||
settingsChanged(saveSettings());
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (inputItem) {
|
||||
|
||||
@@ -73,15 +73,24 @@ Popup {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("panels.notifications.rules-action-label")
|
||||
model: [
|
||||
{ "key": "block", "name": I18n.tr("panels.notifications.rules-action-block") },
|
||||
{ "key": "mute", "name": I18n.tr("panels.notifications.rules-action-mute") },
|
||||
{ "key": "hide", "name": I18n.tr("panels.notifications.rules-action-hide") }
|
||||
{
|
||||
"key": "block",
|
||||
"name": I18n.tr("panels.notifications.rules-action-block")
|
||||
},
|
||||
{
|
||||
"key": "mute",
|
||||
"name": I18n.tr("panels.notifications.rules-action-mute")
|
||||
},
|
||||
{
|
||||
"key": "hide",
|
||||
"name": I18n.tr("panels.notifications.rules-action-hide")
|
||||
}
|
||||
]
|
||||
currentKey: actionValue
|
||||
onSelected: key => {
|
||||
actionValue = key;
|
||||
_selectedAction = key;
|
||||
}
|
||||
actionValue = key;
|
||||
_selectedAction = key;
|
||||
}
|
||||
}
|
||||
|
||||
NLabel {
|
||||
|
||||
@@ -41,7 +41,10 @@ ColumnLayout {
|
||||
if (trimmed === "")
|
||||
return;
|
||||
var arr = (NotificationRulesService.rules || []).slice();
|
||||
var rule = { "pattern": trimmed, "action": action };
|
||||
var rule = {
|
||||
"pattern": trimmed,
|
||||
"action": action
|
||||
};
|
||||
if (index >= 0 && index < arr.length) {
|
||||
arr[index] = rule;
|
||||
} else {
|
||||
|
||||
@@ -100,11 +100,11 @@ ColumnLayout {
|
||||
buttonIcon: "folder-open"
|
||||
buttonTooltip: I18n.tr("panels.notifications.sounds-files-select-file")
|
||||
onInputTextChanged: text => {
|
||||
const soundPath = text;
|
||||
Settings.data.notifications.sounds.normalSoundFile = soundPath;
|
||||
Settings.data.notifications.sounds.lowSoundFile = soundPath;
|
||||
Settings.data.notifications.sounds.criticalSoundFile = soundPath;
|
||||
}
|
||||
const soundPath = text;
|
||||
Settings.data.notifications.sounds.normalSoundFile = soundPath;
|
||||
Settings.data.notifications.sounds.lowSoundFile = soundPath;
|
||||
Settings.data.notifications.sounds.criticalSoundFile = soundPath;
|
||||
}
|
||||
onButtonClicked: root.openUnifiedPicker()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,9 +333,9 @@ ColumnLayout {
|
||||
buttonTooltip: I18n.tr("setup.wallpaper.dir-browse")
|
||||
Layout.fillWidth: true
|
||||
onInputTextChanged: text => {
|
||||
selectedDirectory = text;
|
||||
directoryChanged(text);
|
||||
}
|
||||
selectedDirectory = text;
|
||||
directoryChanged(text);
|
||||
}
|
||||
onButtonClicked: directoryPicker.open()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user