mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Cleanup: more strings cleanup, removing capitalization and minor adjusments.
This commit is contained in:
@@ -57,7 +57,7 @@ Item {
|
||||
disableOpen: true
|
||||
tooltipText: {
|
||||
if (!hasExec) {
|
||||
return "Custom Button - Configure in settings"
|
||||
return "Custom button, configure in settings."
|
||||
} else {
|
||||
var lines = []
|
||||
if (leftClickExec !== "") {
|
||||
|
||||
@@ -52,7 +52,7 @@ NIconButton {
|
||||
baseSize: Style.capsuleHeight
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
icon: Settings.data.notifications.doNotDisturb ? "bell-off" : "bell"
|
||||
tooltipText: `Open notification history\nRight-click to ${Settings.data.notifications.doNotDisturb ? "disable" : "enable"} 'Do Not Disturb'.`
|
||||
tooltipText: `Open notification history\nRight-click to ${Settings.data.notifications.doNotDisturb ? "disable" : "enable"} "Do not disturb".`
|
||||
colorBg: (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent)
|
||||
colorFg: Color.mOnSurface
|
||||
colorBorder: Color.transparent
|
||||
|
||||
@@ -104,7 +104,7 @@ Rectangle {
|
||||
|
||||
NTooltip {
|
||||
id: taskbarTooltip
|
||||
text: taskbarItem.modelData.title || taskbarItem.modelData.appId || "Unknown App."
|
||||
text: taskbarItem.modelData.title || taskbarItem.modelData.appId || "Unknown app."
|
||||
target: taskbarItem
|
||||
positionAbove: Settings.data.bar.position === "bottom"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ Item {
|
||||
id: root
|
||||
|
||||
// Plugin metadata
|
||||
property string name: "Clipboard History"
|
||||
property string name: "Clipboard history"
|
||||
property var launcher: null
|
||||
|
||||
// Plugin capabilities
|
||||
@@ -99,7 +99,7 @@ Item {
|
||||
// Check if clipboard service is not active
|
||||
if (!ClipboardService.active) {
|
||||
return [{
|
||||
"name": "Clipboard History Disabled",
|
||||
"name": "Clipboard history disabled",
|
||||
"description": "Enable clipboard history in settings or install cliphist",
|
||||
"icon": "view-refresh",
|
||||
"isImage": false,
|
||||
@@ -110,7 +110,7 @@ Item {
|
||||
// Special command: clear
|
||||
if (query === "clear") {
|
||||
return [{
|
||||
"name": "Clear Clipboard History",
|
||||
"name": "Clear clipboard history",
|
||||
"description": "Remove all items from clipboard history",
|
||||
"icon": "delete_sweep",
|
||||
"isImage": false,
|
||||
|
||||
@@ -37,7 +37,7 @@ NPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Notification History"
|
||||
text: "Notification history"
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -46,7 +46,7 @@ NPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: Settings.data.notifications.doNotDisturb ? "bell-off" : "bell"
|
||||
tooltipText: `'Do Not Disturb' ${Settings.data.notifications.doNotDisturb ? "enabled" : "disabled"}`
|
||||
tooltipText: `'Do not disturb' ${Settings.data.notifications.doNotDisturb ? "enabled" : "disabled"}`
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
|
||||
onRightClicked: Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
|
||||
|
||||
@@ -31,15 +31,15 @@ ColumnLayout {
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "onhover"
|
||||
name: "On Hover"
|
||||
name: "On hover"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysShow"
|
||||
name: "Always Show"
|
||||
name: "Always show"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysHide"
|
||||
name: "Always Hide"
|
||||
name: "Always hide"
|
||||
}
|
||||
}
|
||||
currentKey: root.valueDisplayMode
|
||||
|
||||
@@ -29,15 +29,15 @@ ColumnLayout {
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "onhover"
|
||||
name: "On Hover"
|
||||
name: "On hover"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysShow"
|
||||
name: "Always Show"
|
||||
name: "Always show"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysHide"
|
||||
name: "Always Hide"
|
||||
name: "Always hide"
|
||||
}
|
||||
}
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -23,7 +23,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: "Display Format"
|
||||
label: "Display format"
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "time"
|
||||
@@ -35,11 +35,11 @@ ColumnLayout {
|
||||
}
|
||||
ListElement {
|
||||
key: "time-date"
|
||||
name: "HH:mm - Date"
|
||||
name: "HH:mm + Date"
|
||||
}
|
||||
ListElement {
|
||||
key: "time-date-short"
|
||||
name: "HH:mm - Short Date"
|
||||
name: "HH:mm + Short date"
|
||||
}
|
||||
}
|
||||
currentKey: valueDisplayFormat
|
||||
|
||||
@@ -58,7 +58,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: leftClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: "Left Click Command"
|
||||
label: "Left click"
|
||||
placeholderText: "Enter command to execute (app or custom script)"
|
||||
text: widgetData?.leftClickExec || widgetMetadata.leftClickExec
|
||||
}
|
||||
@@ -66,7 +66,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: rightClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: "Right Click Command"
|
||||
label: "Right click"
|
||||
placeholderText: "Enter command to execute (app or custom script)"
|
||||
text: widgetData?.rightClickExec || widgetMetadata.rightClickExec
|
||||
}
|
||||
@@ -74,7 +74,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: middleClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: "Middle Click Command"
|
||||
label: "Middle click"
|
||||
placeholderText: "Enter command to execute (app or custom script)"
|
||||
text: widgetData.middleClickExec || widgetMetadata.middleClickExec
|
||||
}
|
||||
@@ -84,8 +84,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Dynamic Text"
|
||||
font.pointSize: Style.fontSizeM * scaling
|
||||
text: "Dynamic text"
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mPrimary
|
||||
}
|
||||
@@ -93,8 +93,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: textCommandInput
|
||||
Layout.fillWidth: true
|
||||
label: "Text Command"
|
||||
description: "Shell command to run periodically (first line becomes the text)."
|
||||
label: "Display Command Output"
|
||||
description: "Enter a command to run at a regular interval. The first line of its output will be displayed as text."
|
||||
placeholderText: "echo \"Hello World\""
|
||||
text: widgetData?.textCommand || widgetMetadata.textCommand
|
||||
}
|
||||
@@ -102,7 +102,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: textIntervalInput
|
||||
Layout.fillWidth: true
|
||||
label: "Refresh Interval"
|
||||
label: "Refresh interval"
|
||||
description: "Interval in milliseconds."
|
||||
placeholderText: String(widgetMetadata.textIntervalMs || 3000)
|
||||
text: widgetData && widgetData.textIntervalMs !== undefined ? String(widgetData.textIntervalMs) : ""
|
||||
|
||||
@@ -29,7 +29,7 @@ ColumnLayout {
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "onhover"
|
||||
name: "On Hover"
|
||||
name: "On hover"
|
||||
}
|
||||
ListElement {
|
||||
key: "forceOpen"
|
||||
@@ -37,7 +37,7 @@ ColumnLayout {
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysHide"
|
||||
name: "Always Hide"
|
||||
name: "Always hide"
|
||||
}
|
||||
}
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -29,15 +29,15 @@ ColumnLayout {
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "onhover"
|
||||
name: "On Hover"
|
||||
name: "On hover"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysShow"
|
||||
name: "Always Show"
|
||||
name: "Always show"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysHide"
|
||||
name: "Always Hide"
|
||||
name: "Always hide"
|
||||
}
|
||||
}
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -29,15 +29,15 @@ ColumnLayout {
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
key: "onhover"
|
||||
name: "On Hover"
|
||||
name: "On hover"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysShow"
|
||||
name: "Always Show"
|
||||
name: "Always show"
|
||||
}
|
||||
ListElement {
|
||||
key: "alwaysHide"
|
||||
name: "Always Hide"
|
||||
name: "Always hide"
|
||||
}
|
||||
}
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -106,7 +106,7 @@ ColumnLayout {
|
||||
|
||||
// Main Toggles - Dark Mode / Matugen
|
||||
NHeader {
|
||||
label: "Color Source"
|
||||
label: "Color source"
|
||||
description: "Main settings for Noctalia's colors."
|
||||
}
|
||||
|
||||
|
||||
@@ -38,10 +38,10 @@ ColumnLayout {
|
||||
if (exitCode === 0) {
|
||||
Settings.data.nightLight.enabled = true
|
||||
NightLightService.apply()
|
||||
ToastService.showNotice("Night Light", "Enabled")
|
||||
ToastService.showNotice("Night light", "Enabled")
|
||||
} else {
|
||||
Settings.data.nightLight.enabled = false
|
||||
ToastService.showWarning("Night Light", "wlsunset not installed")
|
||||
ToastService.showWarning("Night light", "wlsunset not installed")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ ColumnLayout {
|
||||
Settings.data.nightLight.enabled = false
|
||||
Settings.data.nightLight.forced = false
|
||||
NightLightService.apply()
|
||||
ToastService.showNotice("Night Light", "Disabled")
|
||||
ToastService.showNotice("Night light", "Disabled")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -315,7 +315,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: "Automatic Scheduling"
|
||||
label: "Automatic scheduling"
|
||||
description: `Based on the sunset and sunrise time in <i>${LocationService.stableName}</i> - recommended.`
|
||||
checked: Settings.data.nightLight.autoSchedule
|
||||
onToggled: checked => Settings.data.nightLight.autoSchedule = checked
|
||||
@@ -332,14 +332,14 @@ ColumnLayout {
|
||||
spacing: Style.marginM * scaling
|
||||
|
||||
NLabel {
|
||||
label: "Manual Scheduling"
|
||||
label: "Manual scheduling"
|
||||
}
|
||||
|
||||
Item {// add a little more spacing
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Sunrise Time"
|
||||
text: "Sunrise time"
|
||||
font.pointSize: Style.fontSizeM * scaling
|
||||
color: Color.mOnSurfaceVariant
|
||||
}
|
||||
@@ -356,7 +356,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Sunset Time"
|
||||
text: "Sunset time"
|
||||
font.pointSize: Style.fontSizeM * scaling
|
||||
color: Color.mOnSurfaceVariant
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ ColumnLayout {
|
||||
// Wallpaper Hook Section
|
||||
NInputAction {
|
||||
id: wallpaperHookInput
|
||||
label: "Wallpaper Change Hook"
|
||||
label: "Wallpaper changed"
|
||||
description: "Command to be executed when wallpaper changes."
|
||||
placeholderText: "e.g., notify-send \"Wallpaper\" \"Changed\""
|
||||
text: Settings.data.hooks.wallpaperChange
|
||||
@@ -57,7 +57,7 @@ ColumnLayout {
|
||||
// Dark Mode Hook Section
|
||||
NInputAction {
|
||||
id: darkModeHookInput
|
||||
label: "Theme Toggle Hook"
|
||||
label: "Theme changed"
|
||||
description: "Command to be executed when theme toggles between dark and light mode."
|
||||
placeholderText: "e.g., notify-send \"Theme\" \"Toggled\""
|
||||
text: Settings.data.hooks.darkModeChange
|
||||
|
||||
@@ -17,7 +17,7 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
id: launcherPosition
|
||||
label: "Position"
|
||||
description: "Choose where the Launcher panel appears."
|
||||
description: "Choose where the launcher panel appears."
|
||||
Layout.fillWidth: true
|
||||
model: ListModel {
|
||||
ListElement {
|
||||
|
||||
@@ -222,7 +222,7 @@ ColumnLayout {
|
||||
}
|
||||
ListElement {
|
||||
key: "both"
|
||||
name: "System output + Microphone input"
|
||||
name: "System output + microphone input"
|
||||
}
|
||||
}
|
||||
currentKey: Settings.data.screenRecorder.audioSource
|
||||
|
||||
@@ -55,7 +55,7 @@ NPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Wallpaper Selector"
|
||||
text: "Wallpaper selector"
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
|
||||
@@ -196,7 +196,7 @@ Singleton {
|
||||
if (signal >= 20) {
|
||||
return "Signal: Poor"
|
||||
}
|
||||
return "Signal: Very Poor"
|
||||
return "Signal: Very poor"
|
||||
}
|
||||
|
||||
function getBattery(device) {
|
||||
|
||||
@@ -70,7 +70,7 @@ Singleton {
|
||||
root.cliphistAvailable = false
|
||||
// Show toast notification if feature is enabled but cliphist is missing
|
||||
if (Settings.data.appLauncher.enableClipboardHistory) {
|
||||
ToastService.showWarning("Clipboard History Unavailable", "The 'cliphist' application is not installed. Please install it to use clipboard history features.", false, 6000)
|
||||
ToastService.showWarning("Clipboard history unavailable", "The 'cliphist' application is not installed. Please install it to use clipboard history features.", false, 6000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ Singleton {
|
||||
}
|
||||
// Toast: dark/light mode switched
|
||||
const enabled = !!Settings.data.colorSchemes.darkMode
|
||||
const label = enabled ? "Dark Mode" : "Light Mode"
|
||||
const label = enabled ? "Dark mode" : "Light mode"
|
||||
const description = enabled ? "Enabled" : "Enabled"
|
||||
ToastService.showNotice(label, description)
|
||||
}
|
||||
@@ -40,7 +40,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function loadColorSchemes() {
|
||||
Logger.log("ColorScheme", "Load ColorScheme")
|
||||
Logger.log("ColorScheme", "Load colorScheme")
|
||||
scanning = true
|
||||
schemes = []
|
||||
// Unsetting, then setting the folder will re-trigger the parsing!
|
||||
|
||||
@@ -98,14 +98,14 @@ Singleton {
|
||||
try {
|
||||
const lines = text.split('\n')
|
||||
for (const line of lines) {
|
||||
if (line.includes('X11 Layout:')) {
|
||||
if (line.includes("X11 Layout:")) {
|
||||
const layout = line.split(':')[1].trim()
|
||||
if (layout && layout !== "n/a") {
|
||||
root.currentLayout = layout
|
||||
return
|
||||
}
|
||||
}
|
||||
if (line.includes('VC Keymap:')) {
|
||||
if (line.includes("VC Keymap:")) {
|
||||
const keymap = line.split(':')[1].trim()
|
||||
if (keymap && keymap !== "n/a") {
|
||||
root.currentLayout = extractLayoutCode(keymap)
|
||||
|
||||
@@ -142,7 +142,7 @@ Singleton {
|
||||
Connections {
|
||||
target: Settings.data.notifications
|
||||
function onDoNotDisturbChanged() {
|
||||
const label = Settings.data.notifications.doNotDisturb ? "'Do Not Disturb' enabled" : "'Do Not Disturb' disabled"
|
||||
const label = Settings.data.notifications.doNotDisturb ? "'Do not disturb' enabled" : "'Do not disturb' disabled"
|
||||
const description = Settings.data.notifications.doNotDisturb ? "You'll find these notifications in your history." : "Showing all notifications."
|
||||
ToastService.showNotice(label, description)
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ Singleton {
|
||||
// Only show toast if we have a valid profile name (not "Unknown")
|
||||
const profileName = root.getName()
|
||||
if (profileName !== "Unknown") {
|
||||
ToastService.showNotice("Power Profile Changed", `"${profileName}"`)
|
||||
ToastService.showNotice("Power profile changed", `"${profileName}"`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ Popup {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "Color Picker"
|
||||
text: "Color picker"
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mPrimary
|
||||
@@ -199,8 +199,8 @@ Popup {
|
||||
spacing: Style.marginM * scaling
|
||||
|
||||
NLabel {
|
||||
label: "Hex Color"
|
||||
description: "Enter a hexadecimal color code"
|
||||
label: "Hex color"
|
||||
description: "Enter a hexadecimal color code."
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
@@ -228,8 +228,8 @@ Popup {
|
||||
spacing: Style.marginM * scaling
|
||||
|
||||
NLabel {
|
||||
label: "RGB Values"
|
||||
description: "Adjust red, green, blue, and brightness values"
|
||||
label: "RGB values"
|
||||
description: "Adjust red, green, blue, and brightness values."
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
@@ -364,8 +364,8 @@ Popup {
|
||||
spacing: Style.marginS * scaling
|
||||
|
||||
NLabel {
|
||||
label: "Theme Colors"
|
||||
description: "Quick access to your theme's color palette"
|
||||
label: "Theme colors"
|
||||
description: "Quick access to your theme's color palette."
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
@@ -412,8 +412,8 @@ Popup {
|
||||
spacing: Style.marginS * scaling
|
||||
|
||||
NLabel {
|
||||
label: "Colors Palette"
|
||||
description: "Choose from a wide range of predefined colors"
|
||||
label: "Palette"
|
||||
description: "Choose from a wide range of predefined colors."
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ Popup {
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
NText {
|
||||
text: "Icon Picker"
|
||||
text: "Icon picker"
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mPrimary
|
||||
|
||||
Reference in New Issue
Block a user