mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
i18n: Large refactor of all translations keys to prepare the move to our new translation web platform.
This commit is contained in:
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1349
-2872
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
+1350
-2808
File diff suppressed because it is too large
Load Diff
@@ -518,7 +518,7 @@ compare_language() {
|
||||
fi
|
||||
|
||||
# Small delay to avoid rate limiting
|
||||
sleep 0.5
|
||||
sleep 0.1
|
||||
fi
|
||||
fi
|
||||
done <<< "$missing_keys"
|
||||
|
||||
@@ -78,7 +78,7 @@ Singleton {
|
||||
"star": "star",
|
||||
"star-off": "star-off",
|
||||
"battery-exclamation": "battery-exclamation",
|
||||
"battery-charging": "battery-charging",
|
||||
"common.charging": "common.charging",
|
||||
"battery-4": "battery-4",
|
||||
"battery-3": "battery-3",
|
||||
"battery-2": "battery-2",
|
||||
@@ -743,7 +743,7 @@ Singleton {
|
||||
"battery-4-filled": "\u{f721}",
|
||||
"battery-automotive": "\u{ee07}",
|
||||
"battery-automotive-filled": "\u{10029}",
|
||||
"battery-charging": "\u{ea33}",
|
||||
"common.charging": "\u{ea33}",
|
||||
"battery-charging-2": "\u{ef3b}",
|
||||
"battery-eco": "\u{ef3c}",
|
||||
"battery-exclamation": "\u{ff1d}",
|
||||
|
||||
+6
-6
@@ -127,20 +127,20 @@ Singleton {
|
||||
if (diff < 60000)
|
||||
return I18n.tr("notifications.time.now");
|
||||
if (diff < 120000)
|
||||
return I18n.tr("notifications.time.diffM");
|
||||
return I18n.tr("notifications.time.diff-m");
|
||||
if (diff < 3600000)
|
||||
return I18n.tr("notifications.time.diffMM", {
|
||||
return I18n.tr("notifications.time.diff-mm", {
|
||||
"diff": Math.floor(diff / 60000)
|
||||
});
|
||||
if (diff < 7200000)
|
||||
return I18n.tr("notifications.time.diffH");
|
||||
return I18n.tr("notifications.time.diff-h");
|
||||
if (diff < 86400000)
|
||||
return I18n.tr("notifications.time.diffHH", {
|
||||
return I18n.tr("notifications.time.diff-hh", {
|
||||
"diff": Math.floor(diff / 3600000)
|
||||
});
|
||||
if (diff < 172800000)
|
||||
return I18n.tr("notifications.time.diffD");
|
||||
return I18n.tr("notifications.time.diffDD", {
|
||||
return I18n.tr("notifications.time.diff-d");
|
||||
return I18n.tr("notifications.time.diff-dd", {
|
||||
"diff": Math.floor(diff / 86400000)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@ PopupWindow {
|
||||
NText {
|
||||
Layout.fillWidth: true
|
||||
color: Color.mPrimary
|
||||
text: root.isPinned ? I18n.tr("settings.bar.tray.unpin-application") : I18n.tr("settings.bar.tray.pin-application")
|
||||
text: root.isPinned ? I18n.tr("panels.bar.tray-unpin-application") : I18n.tr("panels.bar.tray-pin-application")
|
||||
pointSize: Style.fontSizeS
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
elide: Text.ElideRight
|
||||
|
||||
@@ -163,7 +163,7 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -130,12 +130,12 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.cycle-visualizer"),
|
||||
"label": I18n.tr("actions.cycle-visualizer"),
|
||||
"action": "cycle-visualizer",
|
||||
"icon": "chart-column"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -176,7 +176,7 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
@@ -241,10 +241,10 @@ Item {
|
||||
}));
|
||||
} else {
|
||||
// Rate is 0 - check if plugged in (charging state) or idle
|
||||
lines.push(charging ? I18n.tr("battery.plugged-in") : I18n.tr("battery.idle"));
|
||||
lines.push(charging ? I18n.tr("battery.plugged-in") : I18n.tr("common.idle"));
|
||||
}
|
||||
} else {
|
||||
lines.push(charging ? I18n.tr("battery.charging") : I18n.tr("battery.discharging"));
|
||||
lines.push(charging ? I18n.tr("common.charging") : I18n.tr("common.discharging"));
|
||||
}
|
||||
if (battery.healthPercentage !== undefined && battery.healthPercentage > 0) {
|
||||
lines.push(I18n.tr("battery.health", {
|
||||
|
||||
@@ -40,12 +40,12 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": BluetoothService.enabled ? I18n.tr("context-menu.disable-bluetooth") : I18n.tr("context-menu.enable-bluetooth"),
|
||||
"label": BluetoothService.enabled ? I18n.tr("actions.disable-bluetooth") : I18n.tr("actions.enable-bluetooth"),
|
||||
"action": "toggle-bluetooth",
|
||||
"icon": BluetoothService.enabled ? "bluetooth-off" : "bluetooth"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -83,12 +83,12 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-display-settings"),
|
||||
"label": I18n.tr("actions.open-display-settings"),
|
||||
"action": "open-display-settings",
|
||||
"icon": "sun"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -117,12 +117,12 @@ Rectangle {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-calendar"),
|
||||
"label": I18n.tr("actions.open-calendar"),
|
||||
"action": "open-calendar",
|
||||
"icon": "calendar"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
@@ -148,7 +148,7 @@ Rectangle {
|
||||
return I18n.locale.toString(now, tooltipFormat.trim());
|
||||
}
|
||||
// Fallback to default if no format is set
|
||||
return I18n.tr("clock.tooltip"); // Defaults to "Calendar"
|
||||
return I18n.tr("common.calendar"); // Defaults to "Calendar"
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
||||
@@ -101,17 +101,17 @@ NIconButton {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-launcher"),
|
||||
"label": I18n.tr("actions.open-launcher"),
|
||||
"action": "open-launcher",
|
||||
"icon": "search"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-settings"),
|
||||
"label": I18n.tr("actions.open-settings"),
|
||||
"action": "open-settings",
|
||||
"icon": "adjustments"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -41,7 +41,7 @@ Item {
|
||||
text: IdleInhibitorService.timeout == null ? "" : Time.formatVagueHumanReadableDuration(IdleInhibitorService.timeout)
|
||||
oppositeDirection: BarService.getPillDirection(root)
|
||||
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
|
||||
tooltipText: IdleInhibitorService.isInhibited ? I18n.tr("tooltips.disable-keep-awake") : I18n.tr("tooltips.enable-keep-awake")
|
||||
tooltipText: IdleInhibitorService.isInhibited ? I18n.tr("tooltips.keep-awake") : I18n.tr("tooltips.keep-awake")
|
||||
onClicked: IdleInhibitorService.manualToggle()
|
||||
forceOpen: IdleInhibitorService.timeout !== null
|
||||
forceClose: IdleInhibitorService.timeout == null
|
||||
|
||||
@@ -46,7 +46,7 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -31,7 +31,7 @@ NIconButton {
|
||||
readonly property bool usePrimaryColor: (widgetSettings.usePrimaryColor !== undefined) ? widgetSettings.usePrimaryColor : ((widgetMetadata && widgetMetadata.usePrimaryColor !== undefined) ? widgetMetadata.usePrimaryColor : true)
|
||||
|
||||
icon: iconName
|
||||
tooltipText: I18n.tr("context-menu.open-launcher")
|
||||
tooltipText: I18n.tr("actions.open-launcher")
|
||||
tooltipDirection: BarService.getTooltipDirection()
|
||||
baseSize: Style.capsuleHeight
|
||||
applyUiScale: false
|
||||
@@ -48,12 +48,12 @@ NIconButton {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.launcher-settings"),
|
||||
"label": I18n.tr("actions.launcher-settings"),
|
||||
"action": "launcher-settings",
|
||||
"icon": "adjustments"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ Rectangle {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -59,7 +59,7 @@ Item {
|
||||
// Title
|
||||
readonly property string title: {
|
||||
if (!hasPlayer)
|
||||
return I18n.tr("bar.widget-settings.media-mini.no-active-player");
|
||||
return I18n.tr("bar.media-mini.no-active-player");
|
||||
var artist = MediaService.trackArtist;
|
||||
var track = MediaService.trackTitle;
|
||||
return showArtistFirst ? (artist ? `${artist} - ${track}` : track) : (artist ? `${track} - ${artist}` : track);
|
||||
@@ -157,21 +157,21 @@ Item {
|
||||
var items = [];
|
||||
if (hasPlayer && MediaService.canPlay) {
|
||||
items.push({
|
||||
"label": MediaService.isPlaying ? I18n.tr("context-menu.pause") : I18n.tr("context-menu.play"),
|
||||
"label": MediaService.isPlaying ? I18n.tr("common.pause") : I18n.tr("common.play"),
|
||||
"action": "play-pause",
|
||||
"icon": MediaService.isPlaying ? "media-pause" : "media-play"
|
||||
});
|
||||
}
|
||||
if (hasPlayer && MediaService.canGoPrevious) {
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.previous"),
|
||||
"label": I18n.tr("common.previous"),
|
||||
"action": "previous",
|
||||
"icon": "media-prev"
|
||||
});
|
||||
}
|
||||
if (hasPlayer && MediaService.canGoNext) {
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.next"),
|
||||
"label": I18n.tr("common.next"),
|
||||
"action": "next",
|
||||
"icon": "media-next"
|
||||
});
|
||||
@@ -193,7 +193,7 @@ Item {
|
||||
}
|
||||
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
|
||||
@@ -94,17 +94,17 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.toggle-mute"),
|
||||
"label": I18n.tr("actions.toggle-mute"),
|
||||
"action": "toggle-mute",
|
||||
"icon": AudioService.inputMuted ? "microphone-off" : "microphone"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-mixer"),
|
||||
"label": I18n.tr("actions.open-mixer"),
|
||||
"action": "open-mixer",
|
||||
"icon": "adjustments"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -40,12 +40,12 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": Settings.data.network.wifiEnabled ? I18n.tr("context-menu.disable-wifi") : I18n.tr("context-menu.enable-wifi"),
|
||||
"label": Settings.data.network.wifiEnabled ? I18n.tr("actions.disable-wifi") : I18n.tr("actions.enable-wifi"),
|
||||
"action": "toggle-wifi",
|
||||
"icon": Settings.data.network.wifiEnabled ? "wifi-off" : "wifi"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
@@ -132,7 +132,7 @@ Item {
|
||||
else if (NetworkService.activeEthernetIf && NetworkService.activeEthernetIf.length > 0)
|
||||
base = NetworkService.activeEthernetIf;
|
||||
else
|
||||
base = I18n.tr("quickSettings.wifi.label.ethernet");
|
||||
base = I18n.tr("control-center.wifi.label-ethernet");
|
||||
const speed = (d.speed && d.speed.length > 0) ? d.speed : "";
|
||||
return speed ? (base + " — " + speed) : base;
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ NIconButton {
|
||||
border.width: Style.capsuleBorderWidth
|
||||
|
||||
icon: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? "nightlight-forced" : "nightlight-on") : "nightlight-off"
|
||||
tooltipText: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? I18n.tr("tooltips.night-light-forced") : I18n.tr("tooltips.night-light-enabled")) : I18n.tr("tooltips.night-light-disabled")
|
||||
tooltipText: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? I18n.tr("common.night-light") : I18n.tr("common.night-light")) : I18n.tr("common.night-light")
|
||||
tooltipDirection: BarService.getTooltipDirection()
|
||||
onClicked: {
|
||||
// Check if wlsunset is available before enabling night light
|
||||
if (!ProgramCheckerService.wlsunsetAvailable) {
|
||||
ToastService.showWarning(I18n.tr("settings.display.night-light.section.label"), I18n.tr("toast.night-light.not-installed"));
|
||||
ToastService.showWarning(I18n.tr("common.night-light"), I18n.tr("toast.night-light.not-installed"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ NIconButton {
|
||||
border.width: Style.capsuleBorderWidth
|
||||
|
||||
icon: PowerProfileService.noctaliaPerformanceMode ? "rocket" : "rocket-off"
|
||||
tooltipText: PowerProfileService.noctaliaPerformanceMode ? I18n.tr("tooltips.noctalia-performance-enabled") : I18n.tr("tooltips.noctalia-performance-disabled")
|
||||
tooltipText: PowerProfileService.noctaliaPerformanceMode ? I18n.tr("tooltips.noctalia-performance-enabled") : I18n.tr("tooltips.noctalia-performance-enabled")
|
||||
tooltipDirection: BarService.getTooltipDirection()
|
||||
onClicked: PowerProfileService.toggleNoctaliaPerformance()
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ NIconButton {
|
||||
applyUiScale: false
|
||||
customRadius: Style.radiusL
|
||||
icon: NotificationService.doNotDisturb ? "bell-off" : "bell"
|
||||
tooltipText: NotificationService.doNotDisturb ? I18n.tr("tooltips.open-notification-history-disable-dnd") : I18n.tr("tooltips.open-notification-history-enable-dnd")
|
||||
tooltipText: NotificationService.doNotDisturb ? I18n.tr("tooltips.open-notification-history-enable-dnd") : I18n.tr("tooltips.open-notification-history-enable-dnd")
|
||||
tooltipDirection: BarService.getTooltipDirection()
|
||||
colorBg: Style.capsuleColor
|
||||
colorFg: Color.mOnSurface
|
||||
@@ -68,17 +68,17 @@ NIconButton {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": NotificationService.doNotDisturb ? I18n.tr("context-menu.disable-dnd") : I18n.tr("context-menu.enable-dnd"),
|
||||
"label": NotificationService.doNotDisturb ? I18n.tr("actions.disable-dnd") : I18n.tr("actions.enable-dnd"),
|
||||
"action": "toggle-dnd",
|
||||
"icon": NotificationService.doNotDisturb ? "bell" : "bell-off"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.clear-history"),
|
||||
"label": I18n.tr("actions.clear-history"),
|
||||
"action": "clear-history",
|
||||
"icon": "trash"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -65,7 +65,7 @@ NIconButton {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -77,7 +77,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
// Memory
|
||||
lines.push(`${I18n.tr("system-monitor.memory")}: ${Math.round(SystemStatService.memPercent)}% (${SystemStatService.formatMemoryGb(SystemStatService.memGb)})`);
|
||||
lines.push(`${I18n.tr("common.memory")}: ${Math.round(SystemStatService.memPercent)}% (${SystemStatService.formatMemoryGb(SystemStatService.memGb)})`);
|
||||
|
||||
// Network
|
||||
lines.push(`${I18n.tr("system-monitor.download-speed")}: ${SystemStatService.formatSpeed(SystemStatService.rxSpeed)}`);
|
||||
@@ -121,7 +121,7 @@ Rectangle {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -357,7 +357,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
@@ -725,7 +725,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
|
||||
@@ -43,7 +43,7 @@ Item {
|
||||
for (let i = 0; i < active.length; ++i) {
|
||||
const conn = active[i];
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.disconnect-vpn", {
|
||||
"label": I18n.tr("actions.disconnect-vpn", {
|
||||
"name": conn.name
|
||||
}),
|
||||
"action": "disconnect:" + conn.uuid,
|
||||
@@ -54,7 +54,7 @@ Item {
|
||||
for (let i = 0; i < inactive.length; ++i) {
|
||||
const conn = inactive[i];
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.connect-vpn", {
|
||||
"label": I18n.tr("actions.connect-vpn", {
|
||||
"name": conn.name
|
||||
}),
|
||||
"action": "connect:" + conn.uuid,
|
||||
@@ -62,7 +62,7 @@ Item {
|
||||
});
|
||||
}
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
|
||||
@@ -76,17 +76,17 @@ Item {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.toggle-mute"),
|
||||
"label": I18n.tr("actions.toggle-mute"),
|
||||
"action": "toggle-mute",
|
||||
"icon": AudioService.muted ? "volume-off" : "volume"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.open-mixer"),
|
||||
"label": I18n.tr("actions.open-mixer"),
|
||||
"action": "open-mixer",
|
||||
"icon": "adjustments"
|
||||
},
|
||||
{
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@ NIconButton {
|
||||
applyUiScale: false
|
||||
customRadius: Style.radiusL
|
||||
icon: "wallpaper-selector"
|
||||
tooltipText: I18n.tr("tooltips.open-wallpaper-selector")
|
||||
tooltipText: I18n.tr("tooltips.wallpaper-selector")
|
||||
tooltipDirection: BarService.getTooltipDirection()
|
||||
colorBg: Style.capsuleColor
|
||||
colorFg: Color.mOnSurface
|
||||
@@ -30,7 +30,7 @@ NIconButton {
|
||||
|
||||
model: [
|
||||
{
|
||||
"label": I18n.tr("context-menu.random-wallpaper"),
|
||||
"label": I18n.tr("actions.random-wallpaper"),
|
||||
"action": "random-wallpaper",
|
||||
"icon": "dice"
|
||||
},
|
||||
|
||||
@@ -363,7 +363,7 @@ Item {
|
||||
}
|
||||
}
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
|
||||
@@ -97,7 +97,7 @@ NBox {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: brightnessMonitor ? I18n.tr("settings.display.monitors.brightness") : "No display"
|
||||
text: brightnessMonitor ? I18n.tr("common.brightness") : "No display"
|
||||
pointSize: Style.fontSizeXS
|
||||
color: Color.mOnSurfaceVariant
|
||||
elide: Text.ElideRight
|
||||
|
||||
@@ -91,7 +91,7 @@ Rectangle {
|
||||
if (!Settings.data.location.weatherEnabled)
|
||||
return "";
|
||||
if (!root.weatherReady)
|
||||
return I18n.tr("calendar.weather.loading");
|
||||
return I18n.tr("calendar.weather-loading");
|
||||
if (Settings.data.location.hideWeatherCityName)
|
||||
return "";
|
||||
const chunks = Settings.data.location.name.split(",");
|
||||
|
||||
@@ -80,7 +80,7 @@ NBox {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
onClicked: {
|
||||
PanelService.getPanel("controlCenterPanel", screen)?.close();
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ NBox {
|
||||
icon: "memory"
|
||||
contentScale: root.contentScale
|
||||
fillColor: SystemStatService.memColor
|
||||
tooltipText: I18n.tr("system-monitor.memory") + `: ${Math.round(SystemStatService.memPercent)}%`
|
||||
tooltipText: I18n.tr("common.memory") + `: ${Math.round(SystemStatService.memPercent)}%`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ NBox {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr("calendar.timer.title")
|
||||
text: I18n.tr("common.timer")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -439,7 +439,7 @@ NBox {
|
||||
NButton {
|
||||
id: startButton
|
||||
anchors.fill: parent
|
||||
text: isRunning ? I18n.tr("calendar.timer.pause") : (totalSeconds > 0 ? I18n.tr("calendar.timer.resume") : I18n.tr("calendar.timer.start"))
|
||||
text: isRunning ? I18n.tr("common.pause") : (totalSeconds > 0 ? I18n.tr("common.resume") : I18n.tr("common.start"))
|
||||
icon: isRunning ? "player-pause" : "player-play"
|
||||
enabled: isStopwatchMode || remainingSeconds > 0
|
||||
onClicked: {
|
||||
@@ -461,7 +461,7 @@ NBox {
|
||||
NButton {
|
||||
id: resetButton
|
||||
anchors.fill: parent
|
||||
text: I18n.tr("calendar.timer.reset")
|
||||
text: I18n.tr("common.reset")
|
||||
icon: "refresh"
|
||||
enabled: (isStopwatchMode && (elapsedSeconds > 0 || isRunning)) || (!isStopwatchMode && (remainingSeconds > 0 || isRunning || soundPlaying))
|
||||
onClicked: {
|
||||
@@ -514,14 +514,14 @@ NBox {
|
||||
}
|
||||
|
||||
NTabButton {
|
||||
text: I18n.tr("calendar.timer.countdown")
|
||||
text: I18n.tr("common.countdown")
|
||||
tabIndex: 0
|
||||
checked: !isStopwatchMode
|
||||
radius: Style.iRadiusS
|
||||
}
|
||||
|
||||
NTabButton {
|
||||
text: I18n.tr("calendar.timer.stopwatch")
|
||||
text: I18n.tr("common.stopwatch")
|
||||
tabIndex: 1
|
||||
checked: isStopwatchMode
|
||||
radius: Style.iRadiusS
|
||||
|
||||
@@ -418,7 +418,7 @@ Variants {
|
||||
NIconButton {
|
||||
id: addWidgetButton
|
||||
icon: "layout-grid-add"
|
||||
tooltipText: I18n.tr("settings.desktop-widgets.edit-mode.add-widget")
|
||||
tooltipText: I18n.tr("tooltips.add-widget")
|
||||
onClicked: {
|
||||
var popupMenuWindow = PanelService.getPopupMenuWindow(window.screen);
|
||||
if (popupMenuWindow) {
|
||||
@@ -443,7 +443,7 @@ Variants {
|
||||
|
||||
NIconButton {
|
||||
icon: "grid-4x4"
|
||||
tooltipText: I18n.tr("settings.desktop-widgets.edit-mode.grid-snap.label")
|
||||
tooltipText: I18n.tr("panels.desktop-widgets.edit-mode-grid-snap-label")
|
||||
colorBg: Settings.data.desktopWidgets.gridSnap ? Color.mPrimary : Color.mSurfaceVariant
|
||||
colorFg: Settings.data.desktopWidgets.gridSnap ? Color.mOnPrimary : Color.mPrimary
|
||||
onClicked: Settings.data.desktopWidgets.gridSnap = !Settings.data.desktopWidgets.gridSnap
|
||||
@@ -451,7 +451,7 @@ Variants {
|
||||
|
||||
NIconButton {
|
||||
icon: "settings"
|
||||
tooltipText: I18n.tr("settings.desktop-widgets.edit-mode.open-settings")
|
||||
tooltipText: I18n.tr("actions.open-settings")
|
||||
onClicked: {
|
||||
if (Settings.data.ui.settingsPanelMode === "window") {
|
||||
SettingsPanelService.toggleWindow(SettingsPanel.Tab.DesktopWidgets);
|
||||
@@ -466,7 +466,7 @@ Variants {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("settings.desktop-widgets.edit-mode.exit-button")
|
||||
text: I18n.tr("panels.desktop-widgets.edit-mode-exit-button")
|
||||
icon: "logout"
|
||||
outlined: false
|
||||
fontSize: Style.fontSizeS
|
||||
@@ -478,7 +478,7 @@ Variants {
|
||||
NText {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.maximumWidth: 300 * Style.uiScaleRatio
|
||||
text: I18n.tr("settings.desktop-widgets.edit-mode.controls-explanation")
|
||||
text: I18n.tr("panels.desktop-widgets.edit-mode-controls-explanation")
|
||||
pointSize: Style.fontSizeS
|
||||
color: Color.mOnSurfaceVariant
|
||||
horizontalAlignment: Text.AlignRight
|
||||
|
||||
@@ -397,28 +397,28 @@ Item {
|
||||
var items = [];
|
||||
if (hasSettings) {
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.widget-settings"),
|
||||
"label": I18n.tr("actions.widget-settings"),
|
||||
"action": "widget-settings",
|
||||
"icon": "settings"
|
||||
});
|
||||
}
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.reset"),
|
||||
"label": I18n.tr("common.reset"),
|
||||
"action": "reset",
|
||||
"icon": "restore"
|
||||
});
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.raise-to-top"),
|
||||
"label": I18n.tr("actions.raise-to-top"),
|
||||
"action": "raise-to-top",
|
||||
"icon": "stack-front"
|
||||
});
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.lower-to-bottom"),
|
||||
"label": I18n.tr("actions.lower-to-bottom"),
|
||||
"action": "lower-to-bottom",
|
||||
"icon": "stack-back"
|
||||
});
|
||||
items.push({
|
||||
"label": I18n.tr("context-menu.delete"),
|
||||
"label": I18n.tr("common.delete"),
|
||||
"action": "delete",
|
||||
"icon": "trash"
|
||||
});
|
||||
|
||||
@@ -134,7 +134,7 @@ Scope {
|
||||
} else {
|
||||
Logger.i("LockContext", "Authentication failed");
|
||||
root.currentText = "";
|
||||
errorMessage = I18n.tr("lock-screen.authentication-failed");
|
||||
errorMessage = I18n.tr("authentication.failed");
|
||||
showFailure = true;
|
||||
root.failed();
|
||||
}
|
||||
|
||||
@@ -480,7 +480,7 @@ Loader {
|
||||
|
||||
// Welcome back + Username on one line
|
||||
NText {
|
||||
text: I18n.tr("lock-screen.welcome-back") + " " + HostService.displayName + "!"
|
||||
text: I18n.tr("system.welcome-back") + " " + HostService.displayName + "!"
|
||||
pointSize: Style.fontSizeXXL
|
||||
color: Color.mOnSurface
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
@@ -709,27 +709,27 @@ Loader {
|
||||
// Measure all button text widths
|
||||
NText {
|
||||
id: logoutText
|
||||
text: I18n.tr("session-menu.logout")
|
||||
text: I18n.tr("common.logout")
|
||||
font.pointSize: buttonRowTextMeasurer.fontSize
|
||||
}
|
||||
NText {
|
||||
id: suspendText
|
||||
text: I18n.tr("session-menu.suspend")
|
||||
text: I18n.tr("common.suspend")
|
||||
font.pointSize: buttonRowTextMeasurer.fontSize
|
||||
}
|
||||
NText {
|
||||
id: hibernateText
|
||||
text: Settings.data.general.showHibernateOnLockScreen ? I18n.tr("session-menu.hibernate") : ""
|
||||
text: Settings.data.general.showHibernateOnLockScreen ? I18n.tr("common.hibernate") : ""
|
||||
font.pointSize: buttonRowTextMeasurer.fontSize
|
||||
}
|
||||
NText {
|
||||
id: rebootText
|
||||
text: I18n.tr("session-menu.reboot")
|
||||
text: I18n.tr("common.reboot")
|
||||
font.pointSize: buttonRowTextMeasurer.fontSize
|
||||
}
|
||||
NText {
|
||||
id: shutdownText
|
||||
text: I18n.tr("session-menu.shutdown")
|
||||
text: I18n.tr("common.shutdown")
|
||||
font.pointSize: buttonRowTextMeasurer.fontSize
|
||||
}
|
||||
|
||||
@@ -1298,7 +1298,7 @@ Loader {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Settings.data.general.compactLockScreen ? 36 : 48
|
||||
icon: "logout"
|
||||
text: I18n.tr("session-menu.logout")
|
||||
text: I18n.tr("common.logout")
|
||||
outlined: true
|
||||
backgroundColor: Color.mOnSurfaceVariant
|
||||
textColor: Color.mOnPrimary
|
||||
@@ -1319,7 +1319,7 @@ Loader {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Settings.data.general.compactLockScreen ? 36 : 48
|
||||
icon: "suspend"
|
||||
text: I18n.tr("session-menu.suspend")
|
||||
text: I18n.tr("common.suspend")
|
||||
outlined: true
|
||||
backgroundColor: Color.mOnSurfaceVariant
|
||||
textColor: Color.mOnPrimary
|
||||
@@ -1341,7 +1341,7 @@ Loader {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Settings.data.general.compactLockScreen ? 36 : 48
|
||||
icon: "hibernate"
|
||||
text: I18n.tr("session-menu.hibernate")
|
||||
text: I18n.tr("common.hibernate")
|
||||
outlined: true
|
||||
backgroundColor: Color.mOnSurfaceVariant
|
||||
textColor: Color.mOnPrimary
|
||||
@@ -1363,7 +1363,7 @@ Loader {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Settings.data.general.compactLockScreen ? 36 : 48
|
||||
icon: "reboot"
|
||||
text: I18n.tr("session-menu.reboot")
|
||||
text: I18n.tr("common.reboot")
|
||||
outlined: true
|
||||
backgroundColor: Color.mOnSurfaceVariant
|
||||
textColor: Color.mOnPrimary
|
||||
@@ -1384,7 +1384,7 @@ Loader {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Settings.data.general.compactLockScreen ? 36 : 48
|
||||
icon: "shutdown"
|
||||
text: I18n.tr("session-menu.shutdown")
|
||||
text: I18n.tr("common.shutdown")
|
||||
outlined: true
|
||||
backgroundColor: Color.mError
|
||||
textColor: Color.mOnError
|
||||
|
||||
@@ -545,7 +545,7 @@ Variants {
|
||||
// Close button
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.6
|
||||
anchors.top: cardBackground.top
|
||||
anchors.topMargin: Style.marginM
|
||||
|
||||
@@ -297,7 +297,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.audio.title")
|
||||
text: I18n.tr("panels.audio.title")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -306,7 +306,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: {
|
||||
root.close();
|
||||
@@ -324,13 +324,13 @@ SmartPanel {
|
||||
onCurrentIndexChanged: panelContent.currentTabIndex = currentIndex
|
||||
|
||||
NTabButton {
|
||||
text: I18n.tr("settings.audio.panel.tabs.volumes")
|
||||
text: I18n.tr("common.volumes")
|
||||
tabIndex: 0
|
||||
checked: tabBar.currentIndex === 0
|
||||
}
|
||||
|
||||
NTabButton {
|
||||
text: I18n.tr("settings.audio.panel.tabs.devices")
|
||||
text: I18n.tr("common.devices")
|
||||
tabIndex: 1
|
||||
checked: tabBar.currentIndex === 1
|
||||
}
|
||||
@@ -375,7 +375,7 @@ SmartPanel {
|
||||
spacing: Style.marginXS
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.audio.panel.output")
|
||||
text: I18n.tr("common.output")
|
||||
pointSize: Style.fontSizeM
|
||||
color: Color.mPrimary
|
||||
}
|
||||
@@ -440,7 +440,7 @@ SmartPanel {
|
||||
spacing: Style.marginXS
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.audio.panel.input")
|
||||
text: I18n.tr("common.input")
|
||||
pointSize: Style.fontSizeM
|
||||
color: Color.mPrimary
|
||||
}
|
||||
@@ -768,7 +768,7 @@ SmartPanel {
|
||||
// Empty state
|
||||
NText {
|
||||
visible: panelContent.appStreams.length === 0
|
||||
text: I18n.tr("settings.audio.panel.applications.empty")
|
||||
text: I18n.tr("panels.audio.panel-applications-empty")
|
||||
pointSize: Style.fontSizeM
|
||||
color: Color.mOnSurfaceVariant
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@@ -809,7 +809,7 @@ SmartPanel {
|
||||
spacing: Style.marginS
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.audio.devices.output-device.label")
|
||||
text: I18n.tr("panels.audio.devices-output-device-label")
|
||||
pointSize: Style.fontSizeL
|
||||
color: Color.mPrimary
|
||||
}
|
||||
@@ -852,7 +852,7 @@ SmartPanel {
|
||||
spacing: Style.marginS
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.audio.devices.input-device.label")
|
||||
text: I18n.tr("panels.audio.devices-input-device-label")
|
||||
pointSize: Style.fontSizeL
|
||||
color: Color.mPrimary
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
readonly property string deviceName: getDeviceName()
|
||||
readonly property string panelTitle: deviceName ? `${I18n.tr("battery.panel-title")} - ${deviceName}` : I18n.tr("battery.panel-title")
|
||||
readonly property string panelTitle: deviceName ? `${I18n.tr("common.battery")} - ${deviceName}` : I18n.tr("common.battery")
|
||||
|
||||
readonly property string timeText: {
|
||||
if (!isReady || !isDevicePresent)
|
||||
@@ -146,7 +146,7 @@ SmartPanel {
|
||||
"time": Time.formatVagueHumanReadableDuration(battery.timeToEmpty)
|
||||
});
|
||||
}
|
||||
return I18n.tr("battery.idle");
|
||||
return I18n.tr("common.idle");
|
||||
}
|
||||
readonly property string iconName: BatteryService.getIcon(percent, charging, isReady)
|
||||
|
||||
@@ -243,7 +243,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: root.close()
|
||||
}
|
||||
|
||||
@@ -134,13 +134,13 @@ NBox {
|
||||
text: {
|
||||
const k = BluetoothService.getStatusKey(modelData);
|
||||
if (k === "pairing")
|
||||
return I18n.tr("bluetooth.panel.pairing");
|
||||
return I18n.tr("common.pairing");
|
||||
if (k === "blocked")
|
||||
return I18n.tr("bluetooth.panel.blocked");
|
||||
if (k === "connecting")
|
||||
return I18n.tr("bluetooth.panel.connecting");
|
||||
return I18n.tr("common.connecting");
|
||||
if (k === "disconnecting")
|
||||
return I18n.tr("bluetooth.panel.disconnecting");
|
||||
return I18n.tr("common.disconnecting");
|
||||
return "";
|
||||
}
|
||||
visible: text !== ""
|
||||
@@ -190,7 +190,7 @@ NBox {
|
||||
NIconButton {
|
||||
visible: modelData.connected
|
||||
icon: "info-circle"
|
||||
tooltipText: I18n.tr("bluetooth.panel.info")
|
||||
tooltipText: I18n.tr("common.info")
|
||||
baseSize: Style.baseWidgetSize
|
||||
onClicked: {
|
||||
const key = BluetoothService.deviceKey(modelData);
|
||||
@@ -202,7 +202,7 @@ NBox {
|
||||
NIconButton {
|
||||
visible: (modelData.paired || modelData.trusted) && !modelData.connected && !isBusy && !modelData.blocked
|
||||
icon: "trash"
|
||||
tooltipText: I18n.tr("bluetooth.panel.unpair")
|
||||
tooltipText: I18n.tr("common.unpair")
|
||||
baseSize: Style.baseWidgetSize
|
||||
onClicked: BluetoothService.unpairDevice(modelData)
|
||||
}
|
||||
@@ -224,18 +224,18 @@ NBox {
|
||||
tooltipText: root.tooltipText
|
||||
text: {
|
||||
if (modelData.pairing) {
|
||||
return I18n.tr("bluetooth.panel.pairing");
|
||||
return I18n.tr("common.pairing");
|
||||
}
|
||||
if (modelData.blocked) {
|
||||
return I18n.tr("bluetooth.panel.blocked");
|
||||
}
|
||||
if (modelData.connected) {
|
||||
return I18n.tr("bluetooth.panel.disconnect");
|
||||
return I18n.tr("common.disconnect");
|
||||
}
|
||||
if (device.canPair) {
|
||||
return I18n.tr("bluetooth.panel.pair");
|
||||
return I18n.tr("common.pair");
|
||||
}
|
||||
return I18n.tr("bluetooth.panel.connect");
|
||||
return I18n.tr("common.connect");
|
||||
}
|
||||
icon: (isBusy ? "busy" : null)
|
||||
onClicked: {
|
||||
@@ -319,7 +319,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("bluetooth.panel.signal"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.signal"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -345,7 +345,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("bluetooth.panel.battery"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.battery"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -375,7 +375,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("bluetooth.panel.paired"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.paired"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -400,7 +400,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("bluetooth.panel.trusted"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.trusted"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -457,7 +457,7 @@ NBox {
|
||||
if (addr.length > 0) {
|
||||
// Copy to clipboard via wl-copy (runtime dependency)
|
||||
Quickshell.execDetached(["wl-copy", addr]);
|
||||
ToastService.showNotice(I18n.tr("bluetooth.panel.title"), I18n.tr("toast.bluetooth.address-copied"), "bluetooth");
|
||||
ToastService.showNotice(I18n.tr("common.bluetooth"), I18n.tr("toast.bluetooth.address-copied"), "bluetooth");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr("bluetooth.panel.title")
|
||||
text: I18n.tr("common.bluetooth")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -84,7 +84,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: {
|
||||
root.close();
|
||||
@@ -303,7 +303,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bluetooth.panel.refresh-devices")
|
||||
text: I18n.tr("tooltips.refresh-devices")
|
||||
icon: "refresh"
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
onClicked: {
|
||||
|
||||
@@ -47,7 +47,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr("settings.display.title")
|
||||
text: I18n.tr("panels.display.title")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -56,7 +56,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: {
|
||||
root.close();
|
||||
|
||||
@@ -27,9 +27,9 @@ SmartPanel {
|
||||
readonly property string previousVersion: UpdateService.previousVersion
|
||||
readonly property bool hasPreviousVersion: previousVersion && previousVersion.length > 0
|
||||
readonly property var releaseHighlights: UpdateService.releaseHighlights || []
|
||||
readonly property string subtitleText: hasPreviousVersion ? I18n.tr("changelog.panel.subtitle.updated", {
|
||||
readonly property string subtitleText: hasPreviousVersion ? I18n.tr("changelog.panel.subtitle-updated", {
|
||||
"previousVersion": previousVersion
|
||||
}) : I18n.tr("changelog.panel.subtitle.fresh")
|
||||
}) : I18n.tr("changelog.panel.subtitle-fresh")
|
||||
|
||||
function headingLevel(text) {
|
||||
if (!text)
|
||||
@@ -99,7 +99,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
onClicked: root.close()
|
||||
Layout.alignment: Qt.AlignTop | Qt.AlignRight
|
||||
Layout.preferredHeight: Style.baseWidgetSize
|
||||
@@ -121,7 +121,7 @@ SmartPanel {
|
||||
spacing: Style.marginS
|
||||
|
||||
NText {
|
||||
text: hasPreviousVersion ? previousVersion : I18n.tr("changelog.panel.version.new-user")
|
||||
text: hasPreviousVersion ? previousVersion : I18n.tr("changelog.panel.version-new-user")
|
||||
font.weight: Style.fontWeightSemiBold
|
||||
color: Color.mPrimary
|
||||
}
|
||||
@@ -211,7 +211,7 @@ SmartPanel {
|
||||
NButton {
|
||||
Layout.fillWidth: true
|
||||
icon: "brand-discord"
|
||||
text: I18n.tr("changelog.panel.buttons.discord")
|
||||
text: I18n.tr("changelog.panel.buttons-discord")
|
||||
outlined: true
|
||||
onClicked: UpdateService.openDiscord()
|
||||
}
|
||||
@@ -220,7 +220,7 @@ SmartPanel {
|
||||
Layout.fillWidth: true
|
||||
visible: UpdateService.feedbackUrl !== ""
|
||||
icon: "forms"
|
||||
text: I18n.tr("changelog.panel.buttons.feedback")
|
||||
text: I18n.tr("changelog.panel.buttons-feedback")
|
||||
outlined: true
|
||||
onClicked: UpdateService.openFeedbackForm()
|
||||
}
|
||||
@@ -228,7 +228,7 @@ SmartPanel {
|
||||
NButton {
|
||||
Layout.fillWidth: true
|
||||
icon: "check"
|
||||
text: I18n.tr("changelog.panel.buttons.dismiss")
|
||||
text: I18n.tr("changelog.panel.buttons-dismiss")
|
||||
onClicked: root.close()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ NIconButtonHot {
|
||||
property ShellScreen screen
|
||||
|
||||
icon: !BluetoothService.enabled ? "bluetooth-off" : ((BluetoothService.connectedDevices && BluetoothService.connectedDevices.length > 0) ? "bluetooth-connected" : "bluetooth")
|
||||
tooltipText: I18n.tr("quickSettings.bluetooth.tooltip.action")
|
||||
tooltipText: I18n.tr("common.bluetooth")
|
||||
onClicked: {
|
||||
var p = PanelService.getPanel("bluetoothPanel", screen);
|
||||
if (p)
|
||||
|
||||
@@ -9,6 +9,6 @@ NIconButtonHot {
|
||||
|
||||
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
|
||||
hot: IdleInhibitorService.isInhibited
|
||||
tooltipText: I18n.tr("quickSettings.keepAwake.tooltip.action")
|
||||
tooltipText: I18n.tr("tooltips.keep-awake")
|
||||
onClicked: IdleInhibitorService.manualToggle()
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ NIconButtonHot {
|
||||
try {
|
||||
if (NetworkService.ethernetConnected) {
|
||||
// Match design: fixed label when on Ethernet
|
||||
return I18n.tr("quickSettings.wifi.label.ethernet");
|
||||
return I18n.tr("control-center.wifi.label-ethernet");
|
||||
}
|
||||
// Wi‑Fi: SSID — link speed (if available)
|
||||
for (const net in NetworkService.networks) {
|
||||
@@ -46,7 +46,7 @@ NIconButtonHot {
|
||||
} catch (e) {
|
||||
// noop
|
||||
}
|
||||
return I18n.tr("quickSettings.wifi.tooltip.action");
|
||||
return I18n.tr("tooltips.manage-wifi");
|
||||
}
|
||||
onClicked: {
|
||||
var panel = PanelService.getPanel("networkPanel", screen);
|
||||
|
||||
@@ -12,7 +12,7 @@ NIconButtonHot {
|
||||
enabled: ProgramCheckerService.wlsunsetAvailable
|
||||
icon: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? "nightlight-forced" : "nightlight-on") : "nightlight-off"
|
||||
hot: !Settings.data.nightLight.enabled || Settings.data.nightLight.forced
|
||||
tooltipText: I18n.tr("quickSettings.nightLight.tooltip.action")
|
||||
tooltipText: I18n.tr("common.night-light")
|
||||
|
||||
onClicked: {
|
||||
if (!Settings.data.nightLight.enabled) {
|
||||
|
||||
@@ -10,7 +10,7 @@ NIconButtonHot {
|
||||
|
||||
icon: NotificationService.doNotDisturb ? "bell-off" : "bell"
|
||||
hot: NotificationService.doNotDisturb
|
||||
tooltipText: I18n.tr("quickSettings.notifications.tooltip.action")
|
||||
tooltipText: I18n.tr("common.notifications")
|
||||
onClicked: PanelService.getPanel("notificationHistoryPanel", screen)?.toggle(this)
|
||||
onRightClicked: NotificationService.doNotDisturb = !NotificationService.doNotDisturb
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ NIconButtonHot {
|
||||
enabled: hasPP
|
||||
icon: PowerProfileService.getIcon()
|
||||
hot: !PowerProfileService.isDefault()
|
||||
tooltipText: I18n.tr("quickSettings.powerProfile.tooltip.action")
|
||||
tooltipText: I18n.tr("control-center.power-profile.tooltip-action")
|
||||
onClicked: PowerProfileService.cycleProfile()
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ NIconButtonHot {
|
||||
enabled: ProgramCheckerService.gpuScreenRecorderAvailable
|
||||
icon: "camera-video"
|
||||
hot: ScreenRecorderService.isRecording
|
||||
tooltipText: I18n.tr("quickSettings.screenRecorder.tooltip.action")
|
||||
tooltipText: I18n.tr("panels.screen-recorder.title")
|
||||
onClicked: {
|
||||
ScreenRecorderService.toggleRecording();
|
||||
if (!ScreenRecorderService.isRecording) {
|
||||
|
||||
@@ -9,7 +9,7 @@ NIconButtonHot {
|
||||
|
||||
enabled: Settings.data.wallpaper.enabled
|
||||
icon: "wallpaper-selector"
|
||||
tooltipText: I18n.tr("quickSettings.wallpaperSelector.tooltip.action")
|
||||
tooltipText: I18n.tr("wallpaper.panel.title")
|
||||
onClicked: PanelService.getPanel("wallpaperPanel", screen)?.toggle()
|
||||
onRightClicked: WallpaperService.setRandomWallpaper()
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ Item {
|
||||
"Education": I18n.tr("launcher.categories.education"),
|
||||
"Game": I18n.tr("launcher.categories.game"),
|
||||
"Graphics": I18n.tr("launcher.categories.graphics"),
|
||||
"Network": I18n.tr("launcher.categories.network"),
|
||||
"Network": I18n.tr("common.network"),
|
||||
"Office": I18n.tr("launcher.categories.office"),
|
||||
"System": I18n.tr("launcher.categories.system"),
|
||||
"Misc": I18n.tr("launcher.categories.misc"),
|
||||
@@ -603,7 +603,7 @@ Item {
|
||||
}) ? "unpin" : "pin",
|
||||
"tooltip": isAppPinned({
|
||||
"id": item.appId
|
||||
}) ? I18n.tr("launcher.unpin") : I18n.tr("launcher.pin"),
|
||||
}) ? I18n.tr("common.unpin") : I18n.tr("common.pin"),
|
||||
"action": function () {
|
||||
togglePin(item.appId);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ Item {
|
||||
return [
|
||||
{
|
||||
"name": I18n.tr("launcher.providers.clipboard-loading"),
|
||||
"description": I18n.tr("launcher.providers.clipboard-loading-description"),
|
||||
"description": I18n.tr("launcher.providers.emoji-loading-description"),
|
||||
"icon": iconMode === "tabler" ? "refresh" : "view-refresh",
|
||||
"isTablerIcon": true,
|
||||
"isImage": false,
|
||||
@@ -165,7 +165,7 @@ Item {
|
||||
return [
|
||||
{
|
||||
"name": I18n.tr("launcher.providers.clipboard-loading"),
|
||||
"description": I18n.tr("launcher.providers.clipboard-loading-description"),
|
||||
"description": I18n.tr("launcher.providers.emoji-loading-description"),
|
||||
"icon": iconMode === "tabler" ? "refresh" : "view-refresh",
|
||||
"isTablerIcon": true,
|
||||
"isImage": false,
|
||||
|
||||
@@ -4,7 +4,7 @@ import qs.Commons
|
||||
|
||||
Item {
|
||||
property var launcher: null
|
||||
property string name: I18n.tr("launcher.providers.command")
|
||||
property string name: I18n.tr("common.command")
|
||||
property string iconMode: Settings.data.appLauncher.iconMode
|
||||
|
||||
function handleCommand(query) {
|
||||
@@ -33,7 +33,7 @@ Item {
|
||||
let expression = query.substring(4).trim();
|
||||
return [
|
||||
{
|
||||
"name": I18n.tr("launcher.providers.command-name"),
|
||||
"name": I18n.tr("common.command"),
|
||||
"description": I18n.tr("launcher.providers.command-description"),
|
||||
"icon": iconMode === "tabler" ? "terminal" : "utilities-terminal",
|
||||
"isTablerIcon": true,
|
||||
|
||||
@@ -39,16 +39,16 @@ Item {
|
||||
|
||||
function getCategoryName(category) {
|
||||
const names = {
|
||||
"recent": I18n.tr("launcher.categories.emoji.recent"),
|
||||
"people": I18n.tr("launcher.categories.emoji.people"),
|
||||
"animals": I18n.tr("launcher.categories.emoji.animals"),
|
||||
"nature": I18n.tr("launcher.categories.emoji.nature"),
|
||||
"food": I18n.tr("launcher.categories.emoji.food"),
|
||||
"activity": I18n.tr("launcher.categories.emoji.activity"),
|
||||
"travel": I18n.tr("launcher.categories.emoji.travel"),
|
||||
"objects": I18n.tr("launcher.categories.emoji.objects"),
|
||||
"symbols": I18n.tr("launcher.categories.emoji.symbols"),
|
||||
"flags": I18n.tr("launcher.categories.emoji.flags")
|
||||
"recent": I18n.tr("launcher.categories.emoji-recent"),
|
||||
"people": I18n.tr("launcher.categories.emoji-people"),
|
||||
"animals": I18n.tr("launcher.categories.emoji-animals"),
|
||||
"nature": I18n.tr("launcher.categories.emoji-nature"),
|
||||
"food": I18n.tr("launcher.categories.emoji-food"),
|
||||
"activity": I18n.tr("launcher.categories.emoji-activity"),
|
||||
"travel": I18n.tr("launcher.categories.emoji-travel"),
|
||||
"objects": I18n.tr("launcher.categories.emoji-objects"),
|
||||
"symbols": I18n.tr("launcher.categories.emoji-symbols"),
|
||||
"flags": I18n.tr("launcher.categories.emoji-flags")
|
||||
};
|
||||
return names[category] || category;
|
||||
}
|
||||
|
||||
@@ -158,13 +158,13 @@ SmartPanel {
|
||||
panelViewMode = "wifi";
|
||||
}
|
||||
}
|
||||
onEntered: TooltipService.show(parent, panelViewMode === "wifi" ? I18n.tr("quickSettings.wifi.label.ethernet") : I18n.tr("wifi.panel.title"))
|
||||
onEntered: TooltipService.show(parent, panelViewMode === "wifi" ? I18n.tr("control-center.wifi.label-ethernet") : I18n.tr("wifi.panel.title"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
|
||||
NText {
|
||||
text: panelViewMode === "wifi" ? I18n.tr("wifi.panel.title") : I18n.tr("quickSettings.wifi.label.ethernet")
|
||||
text: panelViewMode === "wifi" ? I18n.tr("wifi.panel.title") : I18n.tr("control-center.wifi.label-ethernet")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -181,7 +181,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "refresh"
|
||||
tooltipText: I18n.tr("tooltips.refresh")
|
||||
tooltipText: I18n.tr("common.refresh")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
enabled: panelViewMode === "wifi" ? (Settings.data.network.wifiEnabled && !NetworkService.scanning) : true
|
||||
onClicked: {
|
||||
@@ -194,7 +194,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: root.close()
|
||||
}
|
||||
@@ -228,7 +228,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NTabButton {
|
||||
text: I18n.tr("quickSettings.wifi.label.wifi")
|
||||
text: I18n.tr("tooltips.manage-wifi")
|
||||
tabIndex: 0
|
||||
checked: modeTabBar.currentIndex === 0
|
||||
}
|
||||
@@ -236,7 +236,7 @@ SmartPanel {
|
||||
NTabButton {
|
||||
// Dim when no Ethernet devices are detected
|
||||
opacity: NetworkService.hasEthernet() ? 1.0 : 0.5
|
||||
text: I18n.tr("quickSettings.wifi.label.ethernet")
|
||||
text: I18n.tr("control-center.wifi.label-ethernet")
|
||||
tabIndex: 1
|
||||
checked: modeTabBar.currentIndex === 1
|
||||
}
|
||||
@@ -586,7 +586,7 @@ SmartPanel {
|
||||
NText {
|
||||
id: ethConnectedText
|
||||
anchors.centerIn: parent
|
||||
text: I18n.tr("wifi.panel.connected")
|
||||
text: I18n.tr("common.connected")
|
||||
pointSize: Style.fontSizeXXS
|
||||
color: Color.mOnPrimary
|
||||
}
|
||||
@@ -598,7 +598,7 @@ SmartPanel {
|
||||
NIconButton {
|
||||
icon: "info-circle"
|
||||
baseSize: Style.baseWidgetSize * 0.7
|
||||
tooltipText: I18n.tr("wifi.panel.info")
|
||||
tooltipText: I18n.tr("common.info")
|
||||
enabled: true
|
||||
onClicked: {
|
||||
if (NetworkService.activeEthernetIf === modelData.ifname && ethernetInfoExpanded) {
|
||||
@@ -717,7 +717,7 @@ SmartPanel {
|
||||
const value = (NetworkService.activeEthernetDetails.ifname && NetworkService.activeEthernetDetails.ifname.length > 0) ? NetworkService.activeEthernetDetails.ifname : (NetworkService.activeEthernetIf || "");
|
||||
if (value.length > 0) {
|
||||
Quickshell.execDetached(["wl-copy", value]);
|
||||
ToastService.showNotice(I18n.tr("quickSettings.wifi.label.ethernet"), I18n.tr("toast.bluetooth.address-copied"), "ethernet");
|
||||
ToastService.showNotice(I18n.tr("control-center.wifi.label-ethernet"), I18n.tr("toast.bluetooth.address-copied"), "ethernet");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -743,7 +743,7 @@ SmartPanel {
|
||||
}
|
||||
NText {
|
||||
// Show "Disconnected" when the interface itself is down
|
||||
text: modelData.connected ? (NetworkService.internetConnectivity ? I18n.tr("wifi.panel.internet-connected") : I18n.tr("wifi.panel.internet-limited")) : I18n.tr("wifi.panel.disconnected")
|
||||
text: modelData.connected ? (NetworkService.internetConnectivity ? I18n.tr("wifi.panel.internet-connected") : I18n.tr("wifi.panel.internet-limited")) : I18n.tr("common.disconnected")
|
||||
pointSize: Style.fontSizeXS
|
||||
color: modelData.connected ? (NetworkService.internetConnectivity ? Color.mOnSurface : Color.mError) : Color.mError
|
||||
Layout.fillWidth: true
|
||||
@@ -824,7 +824,7 @@ SmartPanel {
|
||||
const value = NetworkService.activeEthernetDetails.ipv4 || "";
|
||||
if (value.length > 0) {
|
||||
Quickshell.execDetached(["wl-copy", value]);
|
||||
ToastService.showNotice(I18n.tr("quickSettings.wifi.label.ethernet"), I18n.tr("toast.bluetooth.address-copied"), "ethernet");
|
||||
ToastService.showNotice(I18n.tr("control-center.wifi.label-ethernet"), I18n.tr("toast.bluetooth.address-copied"), "ethernet");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -843,7 +843,7 @@ SmartPanel {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("wifi.panel.gateway"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.gateway"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ NBox {
|
||||
text: {
|
||||
switch (NetworkService.networkConnectivity) {
|
||||
case "full":
|
||||
return I18n.tr("wifi.panel.connected");
|
||||
return I18n.tr("common.connected");
|
||||
case "limited":
|
||||
return I18n.tr("wifi.panel.internet-limited");
|
||||
case "portal": // Where Captive Portal is detected (User intervention needed)
|
||||
@@ -248,7 +248,7 @@ NBox {
|
||||
NIconButton {
|
||||
visible: modelData.connected && NetworkService.disconnectingFrom !== modelData.ssid
|
||||
icon: "info-circle"
|
||||
tooltipText: I18n.tr("wifi.panel.info")
|
||||
tooltipText: I18n.tr("common.info")
|
||||
onClicked: {
|
||||
if (root.infoSsid === modelData.ssid) {
|
||||
root.infoSsid = "";
|
||||
@@ -270,10 +270,10 @@ NBox {
|
||||
visible: !modelData.connected && NetworkService.connectingTo !== modelData.ssid && root.passwordSsid !== modelData.ssid && NetworkService.forgettingNetwork !== modelData.ssid && NetworkService.disconnectingFrom !== modelData.ssid
|
||||
text: {
|
||||
if (modelData.existing || modelData.cached)
|
||||
return I18n.tr("wifi.panel.connect");
|
||||
return I18n.tr("common.connect");
|
||||
if (!NetworkService.isSecured(modelData.security))
|
||||
return I18n.tr("wifi.panel.connect");
|
||||
return I18n.tr("wifi.panel.password");
|
||||
return I18n.tr("common.connect");
|
||||
return I18n.tr("common.password");
|
||||
}
|
||||
outlined: !hovered
|
||||
fontSize: Style.fontSizeXS
|
||||
@@ -289,7 +289,7 @@ NBox {
|
||||
|
||||
NButton {
|
||||
visible: modelData.connected && NetworkService.disconnectingFrom !== modelData.ssid
|
||||
text: I18n.tr("wifi.panel.disconnect")
|
||||
text: I18n.tr("common.disconnect")
|
||||
outlined: !hovered
|
||||
fontSize: Style.fontSizeXS
|
||||
backgroundColor: Color.mError
|
||||
@@ -409,7 +409,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("wifi.panel.frequency"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.frequency"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -511,7 +511,7 @@ NBox {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: TooltipService.show(parent, I18n.tr("wifi.panel.gateway"))
|
||||
onEntered: TooltipService.show(parent, I18n.tr("common.gateway"))
|
||||
onExited: TooltipService.hide()
|
||||
}
|
||||
}
|
||||
@@ -616,7 +616,7 @@ NBox {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("wifi.panel.connect")
|
||||
text: I18n.tr("common.connect")
|
||||
fontSize: Style.fontSizeXXS
|
||||
enabled: pwdInput.text.length > 0 && !NetworkService.connecting
|
||||
outlined: true
|
||||
|
||||
@@ -177,7 +177,7 @@ SmartPanel {
|
||||
}
|
||||
|
||||
NText {
|
||||
text: I18n.tr("notifications.panel.title")
|
||||
text: I18n.tr("common.notifications")
|
||||
pointSize: Style.fontSizeL
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mOnSurface
|
||||
@@ -186,14 +186,14 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: NotificationService.doNotDisturb ? "bell-off" : "bell"
|
||||
tooltipText: NotificationService.doNotDisturb ? I18n.tr("tooltips.do-not-disturb-enabled") : I18n.tr("tooltips.do-not-disturb-disabled")
|
||||
tooltipText: NotificationService.doNotDisturb ? I18n.tr("tooltips.do-not-disturb-enabled") : I18n.tr("tooltips.do-not-disturb-enabled")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: NotificationService.doNotDisturb = !NotificationService.doNotDisturb
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: "trash"
|
||||
tooltipText: I18n.tr("tooltips.clear-history")
|
||||
tooltipText: I18n.tr("actions.clear-history")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: {
|
||||
NotificationService.clearHistory();
|
||||
@@ -204,7 +204,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
baseSize: Style.baseWidgetSize * 0.8
|
||||
onClicked: root.close()
|
||||
}
|
||||
@@ -225,7 +225,7 @@ SmartPanel {
|
||||
|
||||
NTabButton {
|
||||
tabIndex: 0
|
||||
text: I18n.tr("notifications.range.all") + " (" + panelContent.countForRange(0) + ")"
|
||||
text: I18n.tr("launcher.categories.all") + " (" + panelContent.countForRange(0) + ")"
|
||||
checked: tabsBox.currentIndex === 0
|
||||
onClicked: panelContent.currentRange = 0
|
||||
pointSize: Style.fontSizeXS
|
||||
|
||||
@@ -68,32 +68,32 @@ SmartPanel {
|
||||
readonly property var actionMetadata: {
|
||||
"lock": {
|
||||
"icon": "lock",
|
||||
"title": I18n.tr("session-menu.lock"),
|
||||
"title": I18n.tr("common.lock"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"suspend": {
|
||||
"icon": "suspend",
|
||||
"title": I18n.tr("session-menu.suspend"),
|
||||
"title": I18n.tr("common.suspend"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"hibernate": {
|
||||
"icon": "hibernate",
|
||||
"title": I18n.tr("session-menu.hibernate"),
|
||||
"title": I18n.tr("common.hibernate"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"reboot": {
|
||||
"icon": "reboot",
|
||||
"title": I18n.tr("session-menu.reboot"),
|
||||
"title": I18n.tr("common.reboot"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"logout": {
|
||||
"icon": "logout",
|
||||
"title": I18n.tr("session-menu.logout"),
|
||||
"title": I18n.tr("common.logout"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"shutdown": {
|
||||
"icon": "shutdown",
|
||||
"title": I18n.tr("session-menu.shutdown"),
|
||||
"title": I18n.tr("common.shutdown"),
|
||||
"isShutdown": true
|
||||
}
|
||||
}
|
||||
@@ -554,7 +554,7 @@ SmartPanel {
|
||||
|
||||
NIconButton {
|
||||
icon: timerActive ? "stop" : "close"
|
||||
tooltipText: timerActive ? I18n.tr("tooltips.cancel-timer") : I18n.tr("tooltips.close")
|
||||
tooltipText: timerActive ? I18n.tr("common.timer") : I18n.tr("common.close")
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
baseSize: Style.baseWidgetSize * 0.7
|
||||
colorBg: timerActive ? Qt.alpha(Color.mError, 0.08) : "transparent"
|
||||
|
||||
@@ -84,7 +84,7 @@ Popup {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
onClicked: root.close()
|
||||
}
|
||||
}
|
||||
@@ -163,13 +163,13 @@ Popup {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.dialog.cancel")
|
||||
text: I18n.tr("common.cancel")
|
||||
outlined: true
|
||||
onClicked: root.close()
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.dialog.apply")
|
||||
text: I18n.tr("common.apply")
|
||||
icon: "check"
|
||||
onClicked: {
|
||||
if (settingsLoader.item && settingsLoader.item.saveSettings) {
|
||||
|
||||
@@ -39,20 +39,20 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.active-window.hide-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.hide-mode.description")
|
||||
label: I18n.tr("bar.taskbar.hide-mode-label")
|
||||
description: I18n.tr("bar.active-window.hide-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "visible",
|
||||
"name": I18n.tr("options.hide-modes.visible")
|
||||
"name": I18n.tr("hide-modes.visible")
|
||||
},
|
||||
{
|
||||
"key": "hidden",
|
||||
"name": I18n.tr("options.hide-modes.hidden")
|
||||
"name": I18n.tr("hide-modes.hidden")
|
||||
},
|
||||
{
|
||||
"key": "transparent",
|
||||
"name": I18n.tr("options.hide-modes.transparent")
|
||||
"name": I18n.tr("hide-modes.transparent")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueHideMode
|
||||
@@ -61,16 +61,16 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.active-window.show-app-icon.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.show-app-icon.description")
|
||||
label: I18n.tr("bar.active-window.show-app-icon-label")
|
||||
description: I18n.tr("bar.active-window.show-app-icon-description")
|
||||
checked: root.valueShowIcon
|
||||
onToggled: checked => root.valueShowIcon = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.active-window.colorize-icons.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.colorize-icons.description")
|
||||
label: I18n.tr("bar.tray.colorize-icons-label")
|
||||
description: I18n.tr("bar.active-window.colorize-icons-description")
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => root.valueColorizeIcons = checked
|
||||
}
|
||||
@@ -78,23 +78,23 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: widthInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.active-window.max-width.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.max-width.description")
|
||||
label: I18n.tr("bar.taskbar.max-width-label")
|
||||
description: I18n.tr("bar.media-mini.max-width-description")
|
||||
placeholderText: widgetMetadata.maxWidth
|
||||
text: valueMaxWidth
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.active-window.use-fixed-width.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.use-fixed-width.description")
|
||||
label: I18n.tr("bar.media-mini.use-fixed-width-label")
|
||||
description: I18n.tr("bar.media-mini.use-fixed-width-description")
|
||||
checked: valueUseFixedWidth
|
||||
onToggled: checked => valueUseFixedWidth = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.active-window.scrolling-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.scrolling-mode.description")
|
||||
label: I18n.tr("bar.media-mini.scrolling-mode-label")
|
||||
description: I18n.tr("bar.active-window.scrolling-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "always",
|
||||
|
||||
@@ -27,36 +27,36 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: widthInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.audio-visualizer.width.label")
|
||||
description: I18n.tr("bar.widget-settings.audio-visualizer.width.description")
|
||||
label: I18n.tr("common.width")
|
||||
description: I18n.tr("bar.audio-visualizer.width-description")
|
||||
text: widgetData.width || widgetMetadata.width
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.audio-visualizer.color-name.label")
|
||||
description: I18n.tr("bar.widget-settings.audio-visualizer.color-name.description")
|
||||
label: I18n.tr("bar.audio-visualizer.color-name-label")
|
||||
description: I18n.tr("bar.audio-visualizer.color-name-description")
|
||||
model: [
|
||||
{
|
||||
"key": "primary",
|
||||
"name": I18n.tr("options.colors.primary")
|
||||
"name": I18n.tr("colors.primary")
|
||||
},
|
||||
{
|
||||
"key": "secondary",
|
||||
"name": I18n.tr("options.colors.secondary")
|
||||
"name": I18n.tr("colors.secondary")
|
||||
},
|
||||
{
|
||||
"key": "tertiary",
|
||||
"name": I18n.tr("options.colors.tertiary")
|
||||
"name": I18n.tr("colors.tertiary")
|
||||
},
|
||||
{
|
||||
"key": "onSurface",
|
||||
"name": I18n.tr("options.colors.onSurface")
|
||||
"name": I18n.tr("colors.on-surface")
|
||||
},
|
||||
{
|
||||
"key": "error",
|
||||
"name": I18n.tr("options.colors.error")
|
||||
"name": I18n.tr("colors.error")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueColorName
|
||||
@@ -64,8 +64,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.audio-visualizer.hide-when-idle.label")
|
||||
description: I18n.tr("bar.widget-settings.audio-visualizer.hide-when-idle.description")
|
||||
label: I18n.tr("bar.audio-visualizer.hide-when-idle-label")
|
||||
description: I18n.tr("bar.audio-visualizer.hide-when-idle-description")
|
||||
checked: valueHideWhenIdle
|
||||
onToggled: checked => valueHideWhenIdle = checked
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ ColumnLayout {
|
||||
var model = [
|
||||
{
|
||||
"key": "",
|
||||
"name": I18n.tr("bar.widget-settings.battery.device.default")
|
||||
"name": I18n.tr("bar.battery.device-default")
|
||||
}
|
||||
];
|
||||
|
||||
@@ -101,8 +101,8 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
id: deviceComboBox
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.battery.device.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.device.description")
|
||||
label: I18n.tr("bar.battery.device-label")
|
||||
description: I18n.tr("bar.battery.device-description")
|
||||
minimumWidth: 134
|
||||
model: root.deviceModel
|
||||
currentKey: root.valueDeviceNativePath
|
||||
@@ -126,21 +126,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.battery.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueDisplayMode
|
||||
@@ -148,8 +148,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NSpinBox {
|
||||
label: I18n.tr("bar.widget-settings.battery.low-battery-threshold.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.low-battery-threshold.description")
|
||||
label: I18n.tr("bar.battery.low-battery-threshold-label")
|
||||
description: I18n.tr("bar.battery.low-battery-threshold-description")
|
||||
value: valueWarningThreshold
|
||||
suffix: "%"
|
||||
minimum: 5
|
||||
@@ -158,22 +158,22 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.battery.show-power-profile.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.show-power-profile.description")
|
||||
label: I18n.tr("bar.battery.show-power-profile-label")
|
||||
description: I18n.tr("bar.battery.show-power-profile-description")
|
||||
checked: valueShowPowerProfiles
|
||||
onToggled: checked => valueShowPowerProfiles = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.battery.show-noctalia-performance.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.show-noctalia-performance.description")
|
||||
label: I18n.tr("bar.battery.show-noctalia-performance-label")
|
||||
description: I18n.tr("bar.battery.show-noctalia-performance-description")
|
||||
checked: valueShowNoctaliaPerformance
|
||||
onToggled: checked => valueShowNoctaliaPerformance = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.battery.hide-if-not-detected.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.hide-if-not-detected.description")
|
||||
label: I18n.tr("bar.battery.hide-if-not-detected-label")
|
||||
description: I18n.tr("bar.battery.hide-if-not-detected-description")
|
||||
checked: root.valueHideIfNotDetected
|
||||
onToggled: checked => root.valueHideIfNotDetected = checked
|
||||
}
|
||||
|
||||
@@ -21,21 +21,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.battery.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueDisplayMode
|
||||
|
||||
@@ -22,21 +22,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.brightness.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.brightness.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -68,16 +68,16 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.use-primary-color.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.use-primary-color.description")
|
||||
label: I18n.tr("bar.clock.use-primary-color-label")
|
||||
description: I18n.tr("bar.clock.use-primary-color-description")
|
||||
checked: valueUsePrimaryColor
|
||||
onToggled: checked => valueUsePrimaryColor = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.use-custom-font.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.use-custom-font.description")
|
||||
label: I18n.tr("bar.clock.use-custom-font-label")
|
||||
description: I18n.tr("bar.clock.use-custom-font-description")
|
||||
checked: valueUseCustomFont
|
||||
onToggled: checked => valueUseCustomFont = checked
|
||||
}
|
||||
@@ -85,12 +85,12 @@ ColumnLayout {
|
||||
NSearchableComboBox {
|
||||
Layout.fillWidth: true
|
||||
visible: valueUseCustomFont
|
||||
label: I18n.tr("bar.widget-settings.clock.custom-font.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.custom-font.description")
|
||||
label: I18n.tr("bar.clock.custom-font-label")
|
||||
description: I18n.tr("bar.clock.custom-font-description")
|
||||
model: FontService.availableFonts
|
||||
currentKey: valueCustomFont
|
||||
placeholder: I18n.tr("bar.widget-settings.clock.custom-font.placeholder")
|
||||
searchPlaceholder: I18n.tr("bar.widget-settings.clock.custom-font.search-placeholder")
|
||||
placeholder: I18n.tr("bar.clock.custom-font-placeholder")
|
||||
searchPlaceholder: I18n.tr("bar.clock.custom-font-search-placeholder")
|
||||
popupHeight: 420
|
||||
minimumWidth: 300
|
||||
onSelected: function (key) {
|
||||
@@ -103,8 +103,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NHeader {
|
||||
label: I18n.tr("bar.widget-settings.clock.clock-display.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.clock-display.description")
|
||||
label: I18n.tr("bar.clock.clock-display-label")
|
||||
description: I18n.tr("bar.clock.clock-display-description")
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -124,8 +124,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: inputHoriz
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.horizontal-bar.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.horizontal-bar.description")
|
||||
label: I18n.tr("bar.clock.horizontal-bar-label")
|
||||
description: I18n.tr("bar.clock.horizontal-bar-description")
|
||||
placeholderText: "HH:mm ddd, MMM dd"
|
||||
text: valueFormatHorizontal
|
||||
onTextChanged: valueFormatHorizontal = text
|
||||
@@ -147,8 +147,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: inputVert
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.vertical-bar.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.vertical-bar.description")
|
||||
label: I18n.tr("bar.clock.vertical-bar-label")
|
||||
description: I18n.tr("bar.clock.vertical-bar-description")
|
||||
// Tokens are Qt format tokens and must not be localized
|
||||
placeholderText: "HH mm dd MM"
|
||||
text: valueFormatVertical
|
||||
@@ -167,8 +167,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: inputTooltip
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.tooltip-format.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.tooltip-format.description")
|
||||
label: I18n.tr("bar.clock.tooltip-format-label")
|
||||
description: I18n.tr("bar.clock.tooltip-format-description")
|
||||
placeholderText: "HH:mm, ddd MMM dd"
|
||||
text: valueTooltipFormat
|
||||
onTextChanged: valueTooltipFormat = text
|
||||
@@ -191,7 +191,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: false
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.clock.preview")
|
||||
label: I18n.tr("bar.clock.preview")
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
}
|
||||
|
||||
|
||||
@@ -32,42 +32,42 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.control-center.use-distro-logo.label")
|
||||
description: I18n.tr("bar.widget-settings.control-center.use-distro-logo.description")
|
||||
label: I18n.tr("bar.control-center.use-distro-logo-label")
|
||||
description: I18n.tr("bar.control-center.use-distro-logo-description")
|
||||
checked: valueUseDistroLogo
|
||||
onToggled: checked => valueUseDistroLogo = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.control-center.enable-colorization.label")
|
||||
description: I18n.tr("bar.widget-settings.control-center.enable-colorization.description")
|
||||
label: I18n.tr("bar.custom-button.enable-colorization-label")
|
||||
description: I18n.tr("bar.control-center.enable-colorization-description")
|
||||
checked: valueEnableColorization
|
||||
onToggled: checked => valueEnableColorization = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
visible: valueEnableColorization
|
||||
label: I18n.tr("bar.widget-settings.control-center.color-selection.label")
|
||||
description: I18n.tr("bar.widget-settings.control-center.color-selection.description")
|
||||
label: I18n.tr("bar.custom-button.color-selection-label")
|
||||
description: I18n.tr("bar.control-center.color-selection-description")
|
||||
model: [
|
||||
{
|
||||
"name": I18n.tr("options.colors.none"),
|
||||
"name": I18n.tr("common.none"),
|
||||
"key": "none"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.primary"),
|
||||
"name": I18n.tr("colors.primary"),
|
||||
"key": "primary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.secondary"),
|
||||
"name": I18n.tr("colors.secondary"),
|
||||
"key": "secondary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.tertiary"),
|
||||
"name": I18n.tr("colors.tertiary"),
|
||||
"key": "tertiary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.error"),
|
||||
"name": I18n.tr("colors.error"),
|
||||
"key": "error"
|
||||
}
|
||||
]
|
||||
@@ -81,8 +81,8 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.control-center.icon.label")
|
||||
description: I18n.tr("bar.widget-settings.control-center.icon.description")
|
||||
label: I18n.tr("common.icon")
|
||||
description: I18n.tr("bar.control-center.icon-description")
|
||||
}
|
||||
|
||||
NImageRounded {
|
||||
@@ -106,13 +106,13 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
NButton {
|
||||
enabled: !valueUseDistroLogo
|
||||
text: I18n.tr("bar.widget-settings.control-center.browse-library")
|
||||
text: I18n.tr("bar.control-center.browse-library")
|
||||
onClicked: iconPicker.open()
|
||||
}
|
||||
|
||||
NButton {
|
||||
enabled: !valueUseDistroLogo
|
||||
text: I18n.tr("bar.widget-settings.control-center.browse-file")
|
||||
text: I18n.tr("bar.control-center.browse-file")
|
||||
onClicked: imagePicker.openFilePicker()
|
||||
}
|
||||
}
|
||||
@@ -128,7 +128,7 @@ ColumnLayout {
|
||||
|
||||
NFilePicker {
|
||||
id: imagePicker
|
||||
title: I18n.tr("bar.widget-settings.control-center.select-custom-icon")
|
||||
title: I18n.tr("bar.control-center.select-custom-icon")
|
||||
selectionMode: "files"
|
||||
nameFilters: ImageCacheService.basicImageFilters
|
||||
initialPath: Quickshell.env("HOME")
|
||||
|
||||
@@ -71,8 +71,8 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.custom-button.icon.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.icon.description")
|
||||
label: I18n.tr("common.icon")
|
||||
description: I18n.tr("bar.custom-button.icon-description")
|
||||
}
|
||||
|
||||
NIcon {
|
||||
@@ -83,7 +83,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.custom-button.browse")
|
||||
text: I18n.tr("common.browse")
|
||||
onClicked: iconPicker.open()
|
||||
}
|
||||
}
|
||||
@@ -98,43 +98,43 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
id: showIconToggle
|
||||
label: I18n.tr("bar.widget-settings.custom-button.show-icon.label", "Show icon")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.show-icon.description", "Toggles the visibility of the widget's icon.")
|
||||
label: I18n.tr("bar.custom-button.show-icon-label", "Show icon")
|
||||
description: I18n.tr("bar.custom-button.show-icon-description", "Toggles the visibility of the widget's icon.")
|
||||
checked: valueShowIcon
|
||||
onToggled: checked => valueShowIcon = checked
|
||||
visible: textCommandInput.text !== ""
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.custom-button.enable-colorization.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.enable-colorization.description")
|
||||
label: I18n.tr("bar.custom-button.enable-colorization-label")
|
||||
description: I18n.tr("bar.custom-button.enable-colorization-description")
|
||||
checked: valueEnableColorization
|
||||
onToggled: checked => valueEnableColorization = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
visible: valueEnableColorization
|
||||
label: I18n.tr("bar.widget-settings.custom-button.color-selection.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.color-selection.description")
|
||||
label: I18n.tr("bar.custom-button.color-selection-label")
|
||||
description: I18n.tr("bar.custom-button.color-selection-description")
|
||||
model: [
|
||||
{
|
||||
"name": I18n.tr("options.colors.none"),
|
||||
"name": I18n.tr("common.none"),
|
||||
"key": "none"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.primary"),
|
||||
"name": I18n.tr("colors.primary"),
|
||||
"key": "primary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.secondary"),
|
||||
"name": I18n.tr("colors.secondary"),
|
||||
"key": "secondary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.tertiary"),
|
||||
"name": I18n.tr("colors.tertiary"),
|
||||
"key": "tertiary"
|
||||
},
|
||||
{
|
||||
"name": I18n.tr("options.colors.error"),
|
||||
"name": I18n.tr("colors.error"),
|
||||
"key": "error"
|
||||
}
|
||||
]
|
||||
@@ -148,8 +148,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: leftClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.left-click.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.left-click.description")
|
||||
label: I18n.tr("bar.custom-button.left-click-label")
|
||||
description: I18n.tr("bar.custom-button.left-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.leftClickExec || widgetMetadata.leftClickExec
|
||||
}
|
||||
@@ -159,7 +159,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(leftClickUpdateText, I18n.tr("bar.widget-settings.custom-button.left-click.update-text"), "auto")
|
||||
onEntered: TooltipService.show(leftClickUpdateText, I18n.tr("bar.custom-button.left-click-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: widgetData?.leftClickUpdateText ?? widgetMetadata.leftClickUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -172,8 +172,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: rightClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.right-click.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.right-click.description")
|
||||
label: I18n.tr("bar.custom-button.right-click-label")
|
||||
description: I18n.tr("bar.custom-button.right-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.rightClickExec || widgetMetadata.rightClickExec
|
||||
}
|
||||
@@ -183,7 +183,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(rightClickUpdateText, I18n.tr("bar.widget-settings.custom-button.right-click.update-text"), "auto")
|
||||
onEntered: TooltipService.show(rightClickUpdateText, I18n.tr("bar.custom-button.right-click-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: widgetData?.rightClickUpdateText ?? widgetMetadata.rightClickUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -196,8 +196,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: middleClickExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.middle-click.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.middle-click.description")
|
||||
label: I18n.tr("bar.custom-button.middle-click-label")
|
||||
description: I18n.tr("bar.custom-button.middle-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData.middleClickExec || widgetMetadata.middleClickExec
|
||||
}
|
||||
@@ -207,7 +207,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(middleClickUpdateText, I18n.tr("bar.widget-settings.custom-button.middle-click.update-text"), "auto")
|
||||
onEntered: TooltipService.show(middleClickUpdateText, I18n.tr("bar.custom-button.middle-click-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: widgetData?.middleClickUpdateText ?? widgetMetadata.middleClickUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -218,8 +218,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: separateWheelToggle
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.wheel-mode-separate.label", "Separate wheel commands")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.wheel-mode-separate.description", "Enable separate commands for wheel up and down")
|
||||
label: I18n.tr("bar.custom-button.wheel-mode-separate-label", "Separate wheel commands")
|
||||
description: I18n.tr("bar.custom-button.wheel-mode-separate-description", "Enable separate commands for wheel up and down")
|
||||
property bool internalChecked: (widgetData?.wheelMode || widgetMetadata?.wheelMode) === "separate"
|
||||
checked: internalChecked
|
||||
onToggled: checked => {
|
||||
@@ -239,8 +239,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: wheelExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.wheel.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.wheel.description")
|
||||
label: I18n.tr("bar.custom-button.wheel-label")
|
||||
description: I18n.tr("bar.custom-button.wheel-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelExec || widgetMetadata?.wheelExec
|
||||
}
|
||||
@@ -250,7 +250,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(wheelUpdateText, I18n.tr("bar.widget-settings.custom-button.wheel.update-text"), "auto")
|
||||
onEntered: TooltipService.show(wheelUpdateText, I18n.tr("bar.custom-button.wheel-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: widgetData?.wheelUpdateText ?? widgetMetadata?.wheelUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -268,8 +268,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: wheelUpExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.wheel-up.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.wheel-up.description")
|
||||
label: I18n.tr("bar.custom-button.wheel-up-label")
|
||||
description: I18n.tr("bar.custom-button.wheel-up-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelUpExec || widgetMetadata?.wheelUpExec
|
||||
}
|
||||
@@ -279,7 +279,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(wheelUpUpdateText, I18n.tr("bar.widget-settings.custom-button.wheel.update-text"), "auto")
|
||||
onEntered: TooltipService.show(wheelUpUpdateText, I18n.tr("bar.custom-button.wheel-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: (widgetData?.wheelUpUpdateText !== undefined) ? widgetData.wheelUpUpdateText : widgetMetadata?.wheelUpUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -292,8 +292,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: wheelDownExecInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.wheel-down.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.wheel-down.description")
|
||||
label: I18n.tr("bar.custom-button.wheel-down-label")
|
||||
description: I18n.tr("bar.custom-button.wheel-down-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: widgetData?.wheelDownExec || widgetMetadata?.wheelDownExec
|
||||
}
|
||||
@@ -303,7 +303,7 @@ ColumnLayout {
|
||||
enabled: !valueTextStream
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
Layout.bottomMargin: Style.marginS
|
||||
onEntered: TooltipService.show(wheelDownUpdateText, I18n.tr("bar.widget-settings.custom-button.wheel.update-text"), "auto")
|
||||
onEntered: TooltipService.show(wheelDownUpdateText, I18n.tr("bar.custom-button.wheel-update-text"), "auto")
|
||||
onExited: TooltipService.hide()
|
||||
checked: (widgetData?.wheelDownUpdateText !== undefined) ? widgetData.wheelDownUpdateText : widgetMetadata?.wheelDownUpdateText
|
||||
onToggled: isChecked => checked = isChecked
|
||||
@@ -317,12 +317,12 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NHeader {
|
||||
label: I18n.tr("bar.widget-settings.custom-button.dynamic-text")
|
||||
label: I18n.tr("bar.custom-button.dynamic-text")
|
||||
}
|
||||
|
||||
NSpinBox {
|
||||
label: I18n.tr("bar.widget-settings.custom-button.max-text-length-horizontal.label", "Max text length (horizontal)")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.max-text-length-horizontal.description", "Maximum number of characters to show in horizontal bar (0 to hide text)")
|
||||
label: I18n.tr("bar.custom-button.max-text-length-horizontal-label", "Max text length (horizontal)")
|
||||
description: I18n.tr("bar.custom-button.max-text-length-horizontal-description", "Maximum number of characters to show in horizontal bar (0 to hide text)")
|
||||
from: 0
|
||||
to: 100
|
||||
value: valueMaxTextLengthHorizontal
|
||||
@@ -330,8 +330,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NSpinBox {
|
||||
label: I18n.tr("bar.widget-settings.custom-button.max-text-length-vertical.label", "Max text length (vertical)")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.max-text-length-vertical.description", "Maximum number of characters to show in vertical bar (0 to hide text)")
|
||||
label: I18n.tr("bar.custom-button.max-text-length-vertical-label", "Max text length (vertical)")
|
||||
description: I18n.tr("bar.custom-button.max-text-length-vertical-description", "Maximum number of characters to show in vertical bar (0 to hide text)")
|
||||
from: 0
|
||||
to: 100
|
||||
value: valueMaxTextLengthVertical
|
||||
@@ -340,16 +340,16 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
id: textStreamInput
|
||||
label: I18n.tr("bar.widget-settings.custom-button.text-stream.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.text-stream.description")
|
||||
label: I18n.tr("bar.custom-button.text-stream-label")
|
||||
description: I18n.tr("bar.custom-button.text-stream-description")
|
||||
checked: valueTextStream
|
||||
onToggled: checked => valueTextStream = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
id: parseJsonInput
|
||||
label: I18n.tr("bar.widget-settings.custom-button.parse-json.label", "Parse output as JSON")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.parse-json.description", "Parse the command output as a JSON object to dynamically set text and icon.")
|
||||
label: I18n.tr("bar.custom-button.parse-json-label", "Parse output as JSON")
|
||||
description: I18n.tr("bar.custom-button.parse-json-description", "Parse the command output as a JSON object to dynamically set text and icon.")
|
||||
checked: valueParseJson
|
||||
onToggled: checked => valueParseJson = checked
|
||||
}
|
||||
@@ -357,8 +357,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: textCommandInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.custom-button.display-command-output.label")
|
||||
description: valueTextStream ? I18n.tr("bar.widget-settings.custom-button.display-command-output.stream-description") : I18n.tr("bar.widget-settings.custom-button.display-command-output.description")
|
||||
label: I18n.tr("bar.custom-button.display-command-output-label")
|
||||
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
|
||||
}
|
||||
@@ -367,8 +367,8 @@ ColumnLayout {
|
||||
id: textCollapseInput
|
||||
Layout.fillWidth: true
|
||||
visible: valueTextStream
|
||||
label: I18n.tr("bar.widget-settings.custom-button.collapse-condition.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.collapse-condition.description")
|
||||
label: I18n.tr("bar.custom-button.collapse-condition-label")
|
||||
description: I18n.tr("bar.custom-button.collapse-condition-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-text-to-collapse")
|
||||
text: widgetData?.textCollapse || widgetMetadata.textCollapse
|
||||
}
|
||||
@@ -377,27 +377,27 @@ ColumnLayout {
|
||||
id: textIntervalInput
|
||||
Layout.fillWidth: true
|
||||
visible: !valueTextStream
|
||||
label: I18n.tr("bar.widget-settings.custom-button.refresh-interval.label")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.refresh-interval.description")
|
||||
label: I18n.tr("bar.custom-button.refresh-interval-label")
|
||||
description: I18n.tr("bar.custom-button.refresh-interval-description")
|
||||
placeholderText: String(widgetMetadata.textIntervalMs)
|
||||
text: widgetData && widgetData.textIntervalMs !== undefined ? String(widgetData.textIntervalMs) : ""
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
id: hideModeComboBox
|
||||
label: I18n.tr("bar.widget-settings.custom-button.hide-mode.label", "Hide mode")
|
||||
description: I18n.tr("bar.widget-settings.custom-button.hide-mode.description", "Controls widget visibility when the command has no output.")
|
||||
label: I18n.tr("bar.custom-button.hide-mode-label", "Hide mode")
|
||||
description: I18n.tr("bar.custom-button.hide-mode-description", "Controls widget visibility when the command has no output.")
|
||||
model: [
|
||||
{
|
||||
name: I18n.tr("bar.widget-settings.custom-button.hide-mode.alwaysExpanded", "Always expanded"),
|
||||
name: I18n.tr("bar.custom-button.hide-mode-always-expanded", "Always expanded"),
|
||||
key: "alwaysExpanded"
|
||||
},
|
||||
{
|
||||
name: I18n.tr("bar.widget-settings.custom-button.hide-mode.expandWithOutput", "Expand when has output"),
|
||||
name: I18n.tr("bar.custom-button.hide-mode-expand-with-output", "Expand when has output"),
|
||||
key: "expandWithOutput"
|
||||
},
|
||||
{
|
||||
name: I18n.tr("bar.widget-settings.custom-button.hide-mode.maxTransparent", "Max expanded but transparent"),
|
||||
name: I18n.tr("bar.custom-button.hide-mode-max-transparent", "Max expanded but transparent"),
|
||||
key: "maxTransparent"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -25,21 +25,21 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
visible: valueShowIcon // Hide display mode setting when icon is disabled
|
||||
label: I18n.tr("bar.widget-settings.keyboard-layout.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.keyboard-layout.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "forceOpen",
|
||||
"name": I18n.tr("options.display-mode.force-open")
|
||||
"name": I18n.tr("display-modes.force-open")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: valueDisplayMode
|
||||
@@ -47,8 +47,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.keyboard-layout.show-icon.label")
|
||||
description: I18n.tr("bar.widget-settings.keyboard-layout.show-icon.description")
|
||||
label: I18n.tr("bar.custom-button.show-icon-label")
|
||||
description: I18n.tr("bar.keyboard-layout.show-icon-description")
|
||||
checked: valueShowIcon
|
||||
onToggled: checked => valueShowIcon = checked
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.launcher.use-primary-color.label")
|
||||
description: I18n.tr("bar.widget-settings.launcher.use-primary-color.description")
|
||||
label: I18n.tr("bar.clock.use-primary-color-label")
|
||||
description: I18n.tr("bar.clock.use-primary-color-description")
|
||||
checked: valueUsePrimaryColor
|
||||
onToggled: checked => valueUsePrimaryColor = checked
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.lock-keys.show-caps-lock.label")
|
||||
description: I18n.tr("bar.widget-settings.lock-keys.show-caps-lock.description")
|
||||
label: I18n.tr("bar.lock-keys.show-caps-lock-label")
|
||||
description: I18n.tr("bar.lock-keys.show-caps-lock-description")
|
||||
checked: valueShowCapsLock
|
||||
onToggled: checked => valueShowCapsLock = checked
|
||||
}
|
||||
@@ -50,7 +50,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.lock-keys.browse")
|
||||
text: I18n.tr("common.browse")
|
||||
onClicked: capsPicker.open()
|
||||
enabled: valueShowCapsLock
|
||||
}
|
||||
@@ -69,8 +69,8 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.lock-keys.show-num-lock.label")
|
||||
description: I18n.tr("bar.widget-settings.lock-keys.show-num-lock.description")
|
||||
label: I18n.tr("bar.lock-keys.show-num-lock-label")
|
||||
description: I18n.tr("bar.lock-keys.show-num-lock-description")
|
||||
checked: valueShowNumLock
|
||||
onToggled: checked => valueShowNumLock = checked
|
||||
}
|
||||
@@ -83,7 +83,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.lock-keys.browse")
|
||||
text: I18n.tr("common.browse")
|
||||
onClicked: numPicker.open()
|
||||
enabled: valueShowNumLock
|
||||
}
|
||||
@@ -102,8 +102,8 @@ ColumnLayout {
|
||||
spacing: Style.marginM
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.lock-keys.show-scroll-lock.label")
|
||||
description: I18n.tr("bar.widget-settings.lock-keys.show-scroll-lock.description")
|
||||
label: I18n.tr("bar.lock-keys.show-scroll-lock-label")
|
||||
description: I18n.tr("bar.lock-keys.show-scroll-lock-description")
|
||||
checked: valueShowScrollLock
|
||||
onToggled: checked => valueShowScrollLock = checked
|
||||
}
|
||||
@@ -116,7 +116,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("bar.widget-settings.lock-keys.browse")
|
||||
text: I18n.tr("common.browse")
|
||||
onClicked: scrollPicker.open()
|
||||
enabled: valueShowScrollLock
|
||||
}
|
||||
|
||||
@@ -48,24 +48,24 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.media-mini.hide-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.hide-mode.description")
|
||||
label: I18n.tr("bar.taskbar.hide-mode-label")
|
||||
description: I18n.tr("bar.media-mini.hide-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "visible",
|
||||
"name": I18n.tr("options.hide-modes.visible")
|
||||
"name": I18n.tr("hide-modes.visible")
|
||||
},
|
||||
{
|
||||
"key": "hidden",
|
||||
"name": I18n.tr("options.hide-modes.hidden")
|
||||
"name": I18n.tr("hide-modes.hidden")
|
||||
},
|
||||
{
|
||||
"key": "transparent",
|
||||
"name": I18n.tr("options.hide-modes.transparent")
|
||||
"name": I18n.tr("hide-modes.transparent")
|
||||
},
|
||||
{
|
||||
"key": "idle",
|
||||
"name": I18n.tr("options.hide-modes.idle")
|
||||
"name": I18n.tr("hide-modes.idle")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueHideMode
|
||||
@@ -73,30 +73,30 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.show-album-art.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.show-album-art.description")
|
||||
label: I18n.tr("bar.media-mini.show-album-art-label")
|
||||
description: I18n.tr("bar.media-mini.show-album-art-description")
|
||||
checked: valueShowAlbumArt
|
||||
onToggled: checked => valueShowAlbumArt = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.show-artist-first.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.show-artist-first.description")
|
||||
label: I18n.tr("bar.media-mini.show-artist-first-label")
|
||||
description: I18n.tr("bar.media-mini.show-artist-first-description")
|
||||
checked: valueShowArtistFirst
|
||||
onToggled: checked => valueShowArtistFirst = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.show-visualizer.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.show-visualizer.description")
|
||||
label: I18n.tr("bar.media-mini.show-visualizer-label")
|
||||
description: I18n.tr("bar.media-mini.show-visualizer-description")
|
||||
checked: valueShowVisualizer
|
||||
onToggled: checked => valueShowVisualizer = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
visible: valueShowVisualizer
|
||||
label: I18n.tr("bar.widget-settings.media-mini.visualizer-type.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.visualizer-type.description")
|
||||
label: I18n.tr("bar.media-mini.visualizer-type-label")
|
||||
description: I18n.tr("bar.media-mini.visualizer-type-description")
|
||||
model: [
|
||||
{
|
||||
"key": "linear",
|
||||
@@ -119,29 +119,29 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: widthInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.media-mini.max-width.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.max-width.description")
|
||||
label: I18n.tr("bar.taskbar.max-width-label")
|
||||
description: I18n.tr("bar.media-mini.max-width-description")
|
||||
placeholderText: widgetMetadata.maxWidth
|
||||
text: valueMaxWidth
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.use-fixed-width.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.use-fixed-width.description")
|
||||
label: I18n.tr("bar.media-mini.use-fixed-width-label")
|
||||
description: I18n.tr("bar.media-mini.use-fixed-width-description")
|
||||
checked: valueUseFixedWidth
|
||||
onToggled: checked => valueUseFixedWidth = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.show-progress-ring.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.show-progress-ring.description")
|
||||
label: I18n.tr("bar.media-mini.show-progress-ring-label")
|
||||
description: I18n.tr("bar.media-mini.show-progress-ring-description")
|
||||
checked: valueShowProgressRing
|
||||
onToggled: checked => valueShowProgressRing = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.media-mini.scrolling-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.media-mini.scrolling-mode.description")
|
||||
label: I18n.tr("bar.media-mini.scrolling-mode-label")
|
||||
description: I18n.tr("bar.media-mini.scrolling-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "always",
|
||||
|
||||
@@ -22,21 +22,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.microphone.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.microphone.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -24,15 +24,15 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.notification-history.show-unread-badge.label")
|
||||
description: I18n.tr("bar.widget-settings.notification-history.show-unread-badge.description")
|
||||
label: I18n.tr("bar.notification-history.show-unread-badge-label")
|
||||
description: I18n.tr("bar.notification-history.show-unread-badge-description")
|
||||
checked: valueShowUnreadBadge
|
||||
onToggled: checked => valueShowUnreadBadge = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.notification-history.hide-widget-when-zero.label")
|
||||
description: I18n.tr("bar.widget-settings.notification-history.hide-widget-when-zero.description")
|
||||
label: I18n.tr("bar.notification-history.hide-widget-when-zero-label")
|
||||
description: I18n.tr("bar.notification-history.hide-widget-when-zero-description")
|
||||
checked: valueHideWhenZero
|
||||
onToggled: checked => valueHideWhenZero = checked
|
||||
}
|
||||
|
||||
@@ -25,28 +25,28 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.audio-visualizer.color-name.label")
|
||||
description: I18n.tr("bar.widget-settings.audio-visualizer.color-name.description")
|
||||
label: I18n.tr("bar.audio-visualizer.color-name-label")
|
||||
description: I18n.tr("bar.audio-visualizer.color-name-description")
|
||||
model: [
|
||||
{
|
||||
"key": "primary",
|
||||
"name": I18n.tr("options.colors.primary")
|
||||
"name": I18n.tr("colors.primary")
|
||||
},
|
||||
{
|
||||
"key": "secondary",
|
||||
"name": I18n.tr("options.colors.secondary")
|
||||
"name": I18n.tr("colors.secondary")
|
||||
},
|
||||
{
|
||||
"key": "tertiary",
|
||||
"name": I18n.tr("options.colors.tertiary")
|
||||
"name": I18n.tr("colors.tertiary")
|
||||
},
|
||||
{
|
||||
"key": "onSurface",
|
||||
"name": I18n.tr("options.colors.onSurface")
|
||||
"name": I18n.tr("colors.on-surface")
|
||||
},
|
||||
{
|
||||
"key": "error",
|
||||
"name": I18n.tr("options.colors.error")
|
||||
"name": I18n.tr("colors.error")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueColorName
|
||||
|
||||
@@ -21,8 +21,8 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
id: widthInput
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.spacer.width.label")
|
||||
description: I18n.tr("bar.widget-settings.spacer.width.description")
|
||||
label: I18n.tr("common.width")
|
||||
description: I18n.tr("bar.spacer.width-description")
|
||||
text: widgetData.width || widgetMetadata.width
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
}
|
||||
|
||||
@@ -47,16 +47,16 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.compact-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.compact-mode.description")
|
||||
label: I18n.tr("bar.system-monitor.compact-mode-label")
|
||||
description: I18n.tr("bar.system-monitor.compact-mode-description")
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => valueCompactMode = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.clock.use-primary-color.label")
|
||||
description: I18n.tr("bar.widget-settings.clock.use-primary-color.description")
|
||||
label: I18n.tr("bar.clock.use-primary-color-label")
|
||||
description: I18n.tr("bar.clock.use-primary-color-description")
|
||||
checked: valueUsePrimaryColor
|
||||
onToggled: checked => valueUsePrimaryColor = checked
|
||||
visible: !valueCompactMode
|
||||
@@ -64,8 +64,8 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.use-monospace-font.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.use-monospace-font.description")
|
||||
label: I18n.tr("bar.system-monitor.use-monospace-font-label")
|
||||
description: I18n.tr("bar.system-monitor.use-monospace-font-description")
|
||||
checked: valueUseMonospaceFont
|
||||
onToggled: checked => valueUseMonospaceFont = checked
|
||||
visible: !valueCompactMode
|
||||
@@ -74,8 +74,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showCpuUsage
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.cpu-usage.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.cpu-usage.description")
|
||||
label: I18n.tr("bar.system-monitor.cpu-usage-label")
|
||||
description: I18n.tr("bar.system-monitor.cpu-usage-description")
|
||||
checked: valueShowCpuUsage
|
||||
onToggled: checked => valueShowCpuUsage = checked
|
||||
}
|
||||
@@ -83,8 +83,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showCpuTemp
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.cpu-temperature.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.cpu-temperature.description")
|
||||
label: I18n.tr("bar.system-monitor.cpu-temperature-label")
|
||||
description: I18n.tr("bar.system-monitor.cpu-temperature-description")
|
||||
checked: valueShowCpuTemp
|
||||
onToggled: checked => valueShowCpuTemp = checked
|
||||
}
|
||||
@@ -92,8 +92,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showGpuTemp
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.gpu-temperature.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.gpu-temperature.description")
|
||||
label: I18n.tr("panels.system-monitor.gpu-section-label")
|
||||
description: I18n.tr("bar.system-monitor.gpu-temperature-description")
|
||||
checked: valueShowGpuTemp
|
||||
onToggled: checked => valueShowGpuTemp = checked
|
||||
visible: SystemStatService.gpuAvailable
|
||||
@@ -102,8 +102,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showLoadAverage
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.load-average.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.load-average.description")
|
||||
label: I18n.tr("bar.system-monitor.load-average-label")
|
||||
description: I18n.tr("bar.system-monitor.load-average-description")
|
||||
checked: valueShowLoadAverage
|
||||
onToggled: checked => valueShowLoadAverage = checked
|
||||
}
|
||||
@@ -111,8 +111,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showMemoryUsage
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.memory-usage.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.memory-usage.description")
|
||||
label: I18n.tr("bar.system-monitor.memory-usage-label")
|
||||
description: I18n.tr("bar.system-monitor.memory-usage-description")
|
||||
checked: valueShowMemoryUsage
|
||||
onToggled: checked => valueShowMemoryUsage = checked
|
||||
}
|
||||
@@ -120,8 +120,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showMemoryAsPercent
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.memory-percentage.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.memory-percentage.description")
|
||||
label: I18n.tr("bar.system-monitor.memory-percentage-label")
|
||||
description: I18n.tr("bar.system-monitor.memory-percentage-description")
|
||||
checked: valueShowMemoryAsPercent
|
||||
onToggled: checked => valueShowMemoryAsPercent = checked
|
||||
visible: valueShowMemoryUsage
|
||||
@@ -130,8 +130,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showNetworkStats
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.network-traffic.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.network-traffic.description")
|
||||
label: I18n.tr("bar.system-monitor.network-traffic-label")
|
||||
description: I18n.tr("bar.system-monitor.network-traffic-description")
|
||||
checked: valueShowNetworkStats
|
||||
onToggled: checked => valueShowNetworkStats = checked
|
||||
}
|
||||
@@ -139,8 +139,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: showDiskUsage
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.storage-usage.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.storage-usage.description")
|
||||
label: I18n.tr("bar.system-monitor.storage-usage-label")
|
||||
description: I18n.tr("bar.system-monitor.storage-usage-description")
|
||||
checked: valueShowDiskUsage
|
||||
onToggled: checked => valueShowDiskUsage = checked
|
||||
}
|
||||
@@ -148,8 +148,8 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
id: diskPathComboBox
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.system-monitor.disk-path.label")
|
||||
description: I18n.tr("bar.widget-settings.system-monitor.disk-path.description")
|
||||
label: I18n.tr("bar.system-monitor.disk-path-label")
|
||||
description: I18n.tr("bar.system-monitor.disk-path-description")
|
||||
model: {
|
||||
const paths = Object.keys(SystemStatService.diskPercents).sort();
|
||||
return paths.map(path => ({
|
||||
|
||||
@@ -51,20 +51,20 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.hide-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.hide-mode.description")
|
||||
label: I18n.tr("bar.taskbar.hide-mode-label")
|
||||
description: I18n.tr("bar.taskbar.hide-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "visible",
|
||||
"name": I18n.tr("options.hide-modes.visible")
|
||||
"name": I18n.tr("hide-modes.visible")
|
||||
},
|
||||
{
|
||||
"key": "hidden",
|
||||
"name": I18n.tr("options.hide-modes.hidden")
|
||||
"name": I18n.tr("hide-modes.hidden")
|
||||
},
|
||||
{
|
||||
"key": "transparent",
|
||||
"name": I18n.tr("options.hide-modes.transparent")
|
||||
"name": I18n.tr("hide-modes.transparent")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueHideMode
|
||||
@@ -73,32 +73,32 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.only-same-monitor.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.only-same-monitor.description")
|
||||
label: I18n.tr("bar.taskbar.only-same-monitor-label")
|
||||
description: I18n.tr("bar.taskbar.only-same-monitor-description")
|
||||
checked: root.valueOnlySameOutput
|
||||
onToggled: checked => root.valueOnlySameOutput = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.only-active-workspaces.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.only-active-workspaces.description")
|
||||
label: I18n.tr("bar.taskbar.only-active-workspaces-label")
|
||||
description: I18n.tr("bar.taskbar.only-active-workspaces-description")
|
||||
checked: root.valueOnlyActiveWorkspaces
|
||||
onToggled: checked => root.valueOnlyActiveWorkspaces = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.colorize-icons.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.colorize-icons.description")
|
||||
label: I18n.tr("bar.tray.colorize-icons-label")
|
||||
description: I18n.tr("bar.taskbar.colorize-icons-description")
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => root.valueColorizeIcons = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.show-pinned-apps.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.show-pinned-apps.description")
|
||||
label: I18n.tr("bar.taskbar.show-pinned-apps-label")
|
||||
description: I18n.tr("bar.taskbar.show-pinned-apps-description")
|
||||
checked: root.valueShowPinnedApps
|
||||
onToggled: checked => root.valueShowPinnedApps = checked
|
||||
}
|
||||
@@ -108,8 +108,8 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.taskbar.icon-scale.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.icon-scale.description")
|
||||
label: I18n.tr("bar.taskbar.icon-scale-label")
|
||||
description: I18n.tr("bar.taskbar.icon-scale-description")
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
@@ -125,8 +125,8 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.show-title.label")
|
||||
description: isVerticalBar ? I18n.tr("bar.widget-settings.taskbar.show-title.description-disabled") : I18n.tr("bar.widget-settings.taskbar.show-title.description")
|
||||
label: I18n.tr("bar.taskbar.show-title-label")
|
||||
description: isVerticalBar ? I18n.tr("bar.taskbar.show-title-description-disabled") : I18n.tr("bar.taskbar.show-title-description")
|
||||
checked: root.valueShowTitle
|
||||
onToggled: checked => root.valueShowTitle = checked
|
||||
enabled: !isVerticalBar
|
||||
@@ -135,8 +135,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
visible: !isVerticalBar && root.valueShowTitle
|
||||
label: I18n.tr("bar.widget-settings.taskbar.smart-width.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.smart-width.description")
|
||||
label: I18n.tr("bar.taskbar.smart-width-label")
|
||||
description: I18n.tr("bar.taskbar.smart-width-description")
|
||||
checked: root.valueSmartWidth
|
||||
onToggled: checked => root.valueSmartWidth = checked
|
||||
}
|
||||
@@ -147,8 +147,8 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.taskbar.max-width.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.max-width.description")
|
||||
label: I18n.tr("bar.taskbar.max-width-label")
|
||||
description: I18n.tr("bar.taskbar.max-width-description")
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
@@ -166,8 +166,8 @@ ColumnLayout {
|
||||
id: titleWidthInput
|
||||
visible: root.valueShowTitle && !isVerticalBar && !root.valueSmartWidth
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.taskbar.title-width.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.title-width.description")
|
||||
label: I18n.tr("bar.taskbar.title-width-label")
|
||||
description: I18n.tr("bar.taskbar.title-width-description")
|
||||
text: widgetData.titleWidth || widgetMetadata.titleWidth
|
||||
placeholderText: I18n.tr("placeholders.enter-width-pixels")
|
||||
}
|
||||
|
||||
@@ -33,24 +33,24 @@ ColumnLayout {
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.tray.colorize-icons.label")
|
||||
description: I18n.tr("bar.widget-settings.tray.colorize-icons.description")
|
||||
label: I18n.tr("bar.tray.colorize-icons-label")
|
||||
description: I18n.tr("bar.tray.colorize-icons-description")
|
||||
checked: root.valueColorizeIcons
|
||||
onToggled: checked => root.valueColorizeIcons = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.tray.drawer-enabled.label")
|
||||
description: I18n.tr("bar.widget-settings.tray.drawer-enabled.description")
|
||||
label: I18n.tr("bar.tray.drawer-enabled-label")
|
||||
description: I18n.tr("bar.tray.drawer-enabled-description")
|
||||
checked: root.valueDrawerEnabled
|
||||
onToggled: checked => root.valueDrawerEnabled = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("bar.widget-settings.tray.hide-passive.label")
|
||||
description: I18n.tr("bar.widget-settings.tray.hide-passive.description")
|
||||
label: I18n.tr("bar.tray.hide-passive-label")
|
||||
description: I18n.tr("bar.tray.hide-passive-description")
|
||||
checked: root.valueHidePassive
|
||||
onToggled: checked => root.valueHidePassive = checked
|
||||
}
|
||||
@@ -60,8 +60,8 @@ ColumnLayout {
|
||||
spacing: Style.marginS
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("settings.bar.tray.blacklist.label")
|
||||
description: I18n.tr("settings.bar.tray.blacklist.description")
|
||||
label: I18n.tr("panels.bar.tray-blacklist-label")
|
||||
description: I18n.tr("panels.bar.tray-blacklist-description")
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
@@ -71,7 +71,7 @@ ColumnLayout {
|
||||
NTextInputButton {
|
||||
id: newRuleInput
|
||||
Layout.fillWidth: true
|
||||
placeholderText: I18n.tr("settings.bar.tray.blacklist.placeholder")
|
||||
placeholderText: I18n.tr("panels.bar.tray-blacklist-placeholder")
|
||||
buttonIcon: "add"
|
||||
onButtonClicked: {
|
||||
if (newRuleInput.text.length > 0) {
|
||||
|
||||
@@ -19,21 +19,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.battery.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueDisplayMode
|
||||
|
||||
@@ -22,21 +22,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.volume.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.volume.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: valueDisplayMode
|
||||
|
||||
@@ -21,21 +21,21 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.widget-settings.battery.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.display-mode.description")
|
||||
label: I18n.tr("bar.volume.display-mode-label")
|
||||
description: I18n.tr("bar.volume.display-mode-description")
|
||||
minimumWidth: 134
|
||||
model: [
|
||||
{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
"name": I18n.tr("display-modes.on-hover")
|
||||
},
|
||||
{
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
"name": I18n.tr("display-modes.always-show")
|
||||
},
|
||||
{
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
"name": I18n.tr("display-modes.always-hide")
|
||||
}
|
||||
]
|
||||
currentKey: root.valueDisplayMode
|
||||
|
||||
@@ -44,12 +44,12 @@ ColumnLayout {
|
||||
|
||||
NComboBox {
|
||||
id: labelModeCombo
|
||||
label: I18n.tr("bar.widget-settings.workspace.label-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.label-mode.description")
|
||||
label: I18n.tr("bar.workspace.label-mode-label")
|
||||
description: I18n.tr("bar.workspace.label-mode-description")
|
||||
model: [
|
||||
{
|
||||
"key": "none",
|
||||
"name": I18n.tr("options.workspace-labels.none")
|
||||
"name": I18n.tr("common.none")
|
||||
},
|
||||
{
|
||||
"key": "index",
|
||||
@@ -70,8 +70,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NSpinBox {
|
||||
label: I18n.tr("bar.widget-settings.workspace.character-count.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.character-count.description")
|
||||
label: I18n.tr("bar.workspace.character-count-label")
|
||||
description: I18n.tr("bar.workspace.character-count-description")
|
||||
from: 1
|
||||
to: 10
|
||||
value: valueCharacterCount
|
||||
@@ -80,29 +80,29 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.hide-unoccupied.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.hide-unoccupied.description")
|
||||
label: I18n.tr("bar.workspace.hide-unoccupied-label")
|
||||
description: I18n.tr("bar.workspace.hide-unoccupied-description")
|
||||
checked: valueHideUnoccupied
|
||||
onToggled: checked => valueHideUnoccupied = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.show-labels-only-when-occupied.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.show-labels-only-when-occupied.description")
|
||||
label: I18n.tr("bar.workspace.show-labels-only-when-occupied-label")
|
||||
description: I18n.tr("bar.workspace.show-labels-only-when-occupied-description")
|
||||
checked: valueShowLabelsOnlyWhenOccupied
|
||||
onToggled: checked => valueShowLabelsOnlyWhenOccupied = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.follow-focused-screen.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.follow-focused-screen.description")
|
||||
label: I18n.tr("bar.workspace.follow-focused-screen-label")
|
||||
description: I18n.tr("bar.workspace.follow-focused-screen-description")
|
||||
checked: valueFollowFocusedScreen
|
||||
onToggled: checked => valueFollowFocusedScreen = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.enable-scrollwheel.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.enable-scrollwheel.description")
|
||||
label: I18n.tr("bar.workspace.enable-scrollwheel-label")
|
||||
description: I18n.tr("bar.workspace.enable-scrollwheel-description")
|
||||
checked: valueEnableScrollWheel
|
||||
onToggled: checked => valueEnableScrollWheel = checked
|
||||
}
|
||||
@@ -112,23 +112,23 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.show-applications.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.show-applications.description")
|
||||
label: I18n.tr("bar.workspace.show-applications-label")
|
||||
description: I18n.tr("bar.workspace.show-applications-description")
|
||||
checked: valueShowApplications
|
||||
onToggled: checked => valueShowApplications = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.active-window.colorize-icons.label")
|
||||
description: I18n.tr("bar.widget-settings.active-window.colorize-icons.description")
|
||||
label: I18n.tr("bar.tray.colorize-icons-label")
|
||||
description: I18n.tr("bar.active-window.colorize-icons-description")
|
||||
checked: valueColorizeIcons
|
||||
onToggled: checked => valueColorizeIcons = checked
|
||||
visible: valueShowApplications
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
label: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.description")
|
||||
label: I18n.tr("bar.workspace.unfocused-icons-opacity-label")
|
||||
description: I18n.tr("bar.workspace.unfocused-icons-opacity-description")
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
@@ -139,8 +139,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
label: I18n.tr("bar.widget-settings.workspace.grouped-border-opacity.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.grouped-border-opacity.description")
|
||||
label: I18n.tr("bar.workspace.grouped-border-opacity-label")
|
||||
description: I18n.tr("bar.workspace.grouped-border-opacity-description")
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
@@ -151,8 +151,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
label: I18n.tr("bar.widget-settings.taskbar.icon-scale.label")
|
||||
description: I18n.tr("bar.widget-settings.taskbar.icon-scale.description")
|
||||
label: I18n.tr("bar.taskbar.icon-scale-label")
|
||||
description: I18n.tr("bar.taskbar.icon-scale-description")
|
||||
from: 0.5
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
|
||||
@@ -82,7 +82,7 @@ Popup {
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("tooltips.close")
|
||||
tooltipText: I18n.tr("common.close")
|
||||
onClicked: root.close()
|
||||
}
|
||||
}
|
||||
@@ -134,13 +134,13 @@ Popup {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("settings.control-center.shortcuts.dialog.cancel", "Cancel")
|
||||
text: I18n.tr("common.cancel", "Cancel")
|
||||
outlined: true
|
||||
onClicked: root.close()
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("settings.control-center.shortcuts.dialog.apply", "Apply")
|
||||
text: I18n.tr("common.apply", "Apply")
|
||||
icon: "check"
|
||||
onClicked: {
|
||||
if (settingsLoader.item && settingsLoader.item.saveSettings) {
|
||||
|
||||
@@ -72,8 +72,8 @@ ColumnLayout {
|
||||
spacing: Style?.marginM ?? 8
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.icon.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.icon.description")
|
||||
label: I18n.tr("common.icon")
|
||||
description: I18n.tr("bar.custom-button.icon-description")
|
||||
}
|
||||
|
||||
NIcon {
|
||||
@@ -84,7 +84,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("settings.control-center.shortcuts.custom-button.browse")
|
||||
text: I18n.tr("common.browse")
|
||||
onClicked: iconPicker.open()
|
||||
}
|
||||
}
|
||||
@@ -99,8 +99,8 @@ ColumnLayout {
|
||||
|
||||
NTextInput {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.general-tooltip-text.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.general-tooltip-text.description")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-general-tooltip-text-label")
|
||||
description: I18n.tr("panels.control-center.shortcuts-custom-button-general-tooltip-text-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-tooltip")
|
||||
text: _settings.generalTooltipText
|
||||
onTextChanged: _settings.generalTooltipText = text
|
||||
@@ -108,8 +108,8 @@ ColumnLayout {
|
||||
|
||||
NTextInput {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.on-clicked.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.on-clicked.description")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-on-clicked-label")
|
||||
description: I18n.tr("bar.custom-button.left-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: _settings.onClicked
|
||||
onTextChanged: _settings.onClicked = text
|
||||
@@ -117,8 +117,8 @@ ColumnLayout {
|
||||
|
||||
NTextInput {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.on-right-clicked.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.on-right-clicked.description")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-on-right-clicked-label")
|
||||
description: I18n.tr("bar.custom-button.right-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: _settings.onRightClicked
|
||||
onTextChanged: _settings.onRightClicked = text
|
||||
@@ -126,8 +126,8 @@ ColumnLayout {
|
||||
|
||||
NTextInput {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.on-middle-clicked.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.on-middle-clicked.description")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-on-middle-clicked-label")
|
||||
description: I18n.tr("bar.custom-button.middle-click-description")
|
||||
placeholderText: I18n.tr("placeholders.enter-command")
|
||||
text: _settings.onMiddleClicked
|
||||
onTextChanged: _settings.onMiddleClicked = text
|
||||
@@ -138,8 +138,8 @@ ColumnLayout {
|
||||
NToggle {
|
||||
id: enableOnStateLogicToggle
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.enable-on-state-logic.label")
|
||||
description: I18n.tr("settings.control-center.shortcuts.custom-button.enable-on-state-logic.description")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-enable-on-state-logic-label")
|
||||
description: I18n.tr("panels.control-center.shortcuts-custom-button-enable-on-state-logic-description")
|
||||
checked: _settings.enableOnStateLogic
|
||||
onToggled: checked => _settings.enableOnStateLogic = checked
|
||||
}
|
||||
@@ -150,7 +150,7 @@ ColumnLayout {
|
||||
spacing: (Style?.marginM ?? 8) * 2
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("settings.control-center.shortcuts.custom-button.state-checks.label")
|
||||
label: I18n.tr("panels.control-center.shortcuts-custom-button-state-checks-label")
|
||||
}
|
||||
|
||||
Repeater {
|
||||
@@ -168,7 +168,7 @@ ColumnLayout {
|
||||
|
||||
NTextInput {
|
||||
Layout.fillWidth: true
|
||||
placeholderText: I18n.tr("settings.control-center.shortcuts.custom-button.state-checks.command")
|
||||
placeholderText: I18n.tr("panels.control-center.shortcuts-custom-button-state-checks-command")
|
||||
text: model.command
|
||||
onEditingFinished: _settings._stateChecksListModel.set(currentIndex, {
|
||||
"command": text,
|
||||
@@ -188,14 +188,14 @@ ColumnLayout {
|
||||
|
||||
NIconButton {
|
||||
icon: "folder"
|
||||
tooltipText: I18n.tr("settings.control-center.shortcuts.custom-button.state-checks.browse-icon")
|
||||
tooltipText: I18n.tr("common.browse")
|
||||
baseSize: Style?.buttonSizeS ?? 24
|
||||
onClicked: iconPickerDelegate.open()
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
icon: "close"
|
||||
tooltipText: I18n.tr("settings.control-center.shortcuts.custom-button.state-checks.remove")
|
||||
tooltipText: I18n.tr("panels.control-center.shortcuts-custom-button-state-checks-remove")
|
||||
baseSize: Style?.buttonSizeS ?? 24
|
||||
colorBorder: Qt.alpha(Color.mOutline, Style.opacityLight)
|
||||
colorBg: Color.mError
|
||||
@@ -231,7 +231,7 @@ ColumnLayout {
|
||||
spacing: Style?.marginM ?? 8
|
||||
|
||||
NButton {
|
||||
text: I18n.tr("settings.control-center.shortcuts.custom-button.state-checks.add")
|
||||
text: I18n.tr("panels.control-center.shortcuts-custom-button-state-checks-add")
|
||||
onClicked: _settings._stateChecksListModel.append({
|
||||
"command": "",
|
||||
"icon": ""
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user