Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions usb-drive-manager/Settings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ ColumnLayout {
pluginApi?.manifest?.metadata?.defaultSettings?.showBadge ??
true

property string iconColor:
pluginApi?.pluginSettings?.iconColor ??
pluginApi?.manifest?.metadata?.defaultSettings?.iconColor ??
"none"

// ===== SAVE =====

function saveSettings() {
Expand All @@ -52,6 +57,7 @@ ColumnLayout {
pluginApi.pluginSettings.showNotifications = root.editShowNotifications
pluginApi.pluginSettings.hideWhenEmpty = root.editHideWhenEmpty
pluginApi.pluginSettings.showBadge = root.editShowBadge
pluginApi.pluginSettings.iconColor = root.iconColor

pluginApi.saveSettings()
}
Expand Down Expand Up @@ -166,6 +172,23 @@ ColumnLayout {
root.saveSettings()
}
}
NDivider {
Layout.fillWidth: true
}

// Section: Colors
NText {
text: pluginApi?.tr("settings.icon-color")
pointSize: Style.fontSizeM
font.weight: Font.Bold
color: Color.mOnSurface
}
NColorChoice {
currentKey: root.iconColor
description: pluginApi?.tr("settings.icon-color-desc")
label: pluginApi?.tr("settings.icon-color")
onSelected: key => root.iconColor = key
}

Item { Layout.fillHeight: true }
}
2 changes: 1 addition & 1 deletion usb-drive-manager/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "usb-drive-manager",
"name": "USB Drive Manager",
"version": "1.0.0",
"version": "1.1.0",
"minNoctaliaVersion": "3.6.0",
"author": "hennifant",
"license": "MIT",
Expand Down