mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -158,7 +158,7 @@ SmartPanel {
|
||||
return I18n.tr("battery.idle");
|
||||
}
|
||||
readonly property string iconName: BatteryService.getIcon(percent, charging, isReady)
|
||||
|
||||
|
||||
property var batteryWidgetInstance: BarService.lookupWidget("Battery", screen ? screen.name : null)
|
||||
readonly property var batteryWidgetSettings: batteryWidgetInstance ? batteryWidgetInstance.widgetSettings : null
|
||||
readonly property var batteryWidgetMetadata: BarWidgetRegistry.widgetMetadata["Battery"]
|
||||
@@ -182,7 +182,7 @@ SmartPanel {
|
||||
profileIndex = idx;
|
||||
PowerProfileService.setProfile(prof);
|
||||
}
|
||||
|
||||
|
||||
function resolveWidgetSetting(key, defaultValue) {
|
||||
if (batteryWidgetSettings && batteryWidgetSettings[key] !== undefined)
|
||||
return batteryWidgetSettings[key];
|
||||
@@ -190,14 +190,14 @@ SmartPanel {
|
||||
return batteryWidgetMetadata[key];
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
|
||||
Connections {
|
||||
target: PowerProfileService
|
||||
function onProfileChanged() {
|
||||
profileIndex = profileToIndex(PowerProfileService.profile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Connections {
|
||||
target: BarService
|
||||
function onActiveWidgetsChanged() {
|
||||
@@ -378,11 +378,11 @@ SmartPanel {
|
||||
profileIndex = v;
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
spacing: Style.marginS
|
||||
|
||||
|
||||
NIcon {
|
||||
icon: "powersaver"
|
||||
pointSize: Style.fontSizeS
|
||||
@@ -401,7 +401,7 @@ SmartPanel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
visible: root.showPowerProfiles && root.showNoctaliaPerformance
|
||||
@@ -411,7 +411,7 @@ SmartPanel {
|
||||
Layout.fillWidth: true
|
||||
spacing: Style.marginS
|
||||
visible: root.showNoctaliaPerformance
|
||||
|
||||
|
||||
NText {
|
||||
text: I18n.tr("toast.noctalia-performance.label")
|
||||
pointSize: Style.fontSizeM
|
||||
@@ -432,5 +432,5 @@ SmartPanel {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ ColumnLayout {
|
||||
maximum: 50
|
||||
onValueChanged: valueWarningThreshold = value
|
||||
}
|
||||
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.battery.show-power-profile.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.show-power-profile.description")
|
||||
@@ -168,4 +168,4 @@ ColumnLayout {
|
||||
checked: valueShowNoctaliaPerformance
|
||||
onToggled: checked => valueShowNoctaliaPerformance = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,11 +189,11 @@ Singleton {
|
||||
"clients": [
|
||||
{
|
||||
"name": "code",
|
||||
"path": "~/.vscode/extensions/undefined_publisher.noctaliatheme-0.0.1/themes/NoctaliaTheme-color-theme.json",
|
||||
"path": "~/.vscode/extensions/undefined_publisher.noctaliatheme-0.0.1/themes/NoctaliaTheme-color-theme.json"
|
||||
},
|
||||
{
|
||||
"name": "codium",
|
||||
"path": "~/.vscode-oss/extensions/undefined_publisher.noctaliatheme-0.0.1/themes/NoctaliaTheme-color-theme.json",
|
||||
"path": "~/.vscode-oss/extensions/undefined_publisher.noctaliatheme-0.0.1/themes/NoctaliaTheme-color-theme.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user