mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-07 04:15:26 +00:00
Autoformat
This commit is contained in:
@@ -96,9 +96,9 @@ Item {
|
||||
|
||||
function getTitle() {
|
||||
if (showArtistFirst) {
|
||||
return (MediaService.trackArtist !== "" ? `${MediaService.trackArtist} - ` : "") + MediaService.trackTitle
|
||||
return (MediaService.trackArtist !== "" ? `${MediaService.trackArtist} - ` : "") + MediaService.trackTitle;
|
||||
} else {
|
||||
return MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - ${MediaService.trackArtist}` : "")
|
||||
return MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - ${MediaService.trackArtist}` : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -390,13 +390,13 @@ Item {
|
||||
text: {
|
||||
if (workspaceModel.name && workspaceModel.name.length > 0) {
|
||||
if (root.labelMode === "name") {
|
||||
return workspaceModel.name.substring(0, root.characterCount)
|
||||
return workspaceModel.name.substring(0, root.characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (workspaceModel.idx.toString() + workspaceModel.name.substring(0, 1))
|
||||
return (workspaceModel.idx.toString() + workspaceModel.name.substring(0, 1));
|
||||
}
|
||||
}
|
||||
return workspaceModel.idx.toString()
|
||||
return workspaceModel.idx.toString();
|
||||
}
|
||||
|
||||
family: Settings.data.ui.fontFixed
|
||||
|
||||
@@ -303,7 +303,7 @@ Item {
|
||||
return model.name.substring(0, characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (model.idx.toString() + " " + model.name.substring(0, characterCount))
|
||||
return (model.idx.toString() + " " + model.name.substring(0, characterCount));
|
||||
}
|
||||
}
|
||||
return model.idx.toString();
|
||||
@@ -452,7 +452,7 @@ Item {
|
||||
return model.name.substring(0, characterCount);
|
||||
}
|
||||
if (root.labelMode === "index+name") {
|
||||
return (model.idx.toString() + model.name.substring(0, 1))
|
||||
return (model.idx.toString() + model.name.substring(0, 1));
|
||||
}
|
||||
}
|
||||
return model.idx.toString();
|
||||
|
||||
@@ -34,14 +34,14 @@ ColumnLayout {
|
||||
var settings = Object.assign({}, widgetData || {});
|
||||
settings.hideMode = valueHideMode;
|
||||
// No longer store hideWhenIdle separately; kept for backward compatibility only
|
||||
settings.showAlbumArt = valueShowAlbumArt
|
||||
settings.showArtistFirst = valueShowArtistFirst
|
||||
settings.showVisualizer = valueShowVisualizer
|
||||
settings.visualizerType = valueVisualizerType
|
||||
settings.scrollingMode = valueScrollingMode
|
||||
settings.maxWidth = parseInt(widthInput.text) || widgetMetadata.maxWidth
|
||||
settings.useFixedWidth = valueUseFixedWidth
|
||||
return settings
|
||||
settings.showAlbumArt = valueShowAlbumArt;
|
||||
settings.showArtistFirst = valueShowArtistFirst;
|
||||
settings.showVisualizer = valueShowVisualizer;
|
||||
settings.visualizerType = valueVisualizerType;
|
||||
settings.scrollingMode = valueScrollingMode;
|
||||
settings.maxWidth = parseInt(widthInput.text) || widgetMetadata.maxWidth;
|
||||
settings.useFixedWidth = valueUseFixedWidth;
|
||||
return settings;
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
|
||||
@@ -48,7 +48,8 @@ ColumnLayout {
|
||||
{
|
||||
"key": "index+name",
|
||||
"name": I18n.tr("options.workspace-labels.index+name")
|
||||
}]
|
||||
}
|
||||
]
|
||||
currentKey: widgetData.labelMode || widgetMetadata.labelMode
|
||||
onSelected: key => valueLabelMode = key
|
||||
minimumWidth: 200
|
||||
|
||||
Reference in New Issue
Block a user