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:
@@ -18,7 +18,7 @@ NIconButton {
|
||||
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mOnSurface
|
||||
colorBorder: Color.transparent
|
||||
colorBorderHover: Color.transparent
|
||||
|
||||
|
||||
function handleClick() {
|
||||
if (!ScreenRecorderService.isAvailable) {
|
||||
ToastService.showError(I18n.tr("toast.recording.not-installed"), I18n.tr("toast.recording.not-installed-desc"), 7000)
|
||||
@@ -26,6 +26,6 @@ NIconButton {
|
||||
}
|
||||
ScreenRecorderService.toggleRecording()
|
||||
}
|
||||
|
||||
|
||||
onClicked: handleClick()
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ NPanel {
|
||||
preferredHeight: 480
|
||||
panelKeyboardFocus: true
|
||||
|
||||
onOpened: function() {
|
||||
onOpened: function () {
|
||||
Settings.data.notifications.lastSeenTs = Time.timestamp * 1000
|
||||
}
|
||||
|
||||
|
||||
@@ -241,8 +241,8 @@ ColumnLayout {
|
||||
color: getSchemeColor(modelData, "mSurface")
|
||||
border.width: Math.max(1, Style.borderL * scaling)
|
||||
border.color: {
|
||||
if (Settings.data.colorSchemes.predefinedScheme === extractSchemeName(modelData)) {
|
||||
return Color.mSecondary;
|
||||
if (Settings.data.colorSchemes.predefinedScheme === extractSchemeName(modelData)) {
|
||||
return Color.mSecondary
|
||||
}
|
||||
if (itemMouseArea.containsMouse) {
|
||||
return Color.mTertiary
|
||||
@@ -343,7 +343,7 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
// Generate templates for predefined schemes
|
||||
// Generate templates for predefined schemes
|
||||
NCheckbox {
|
||||
Layout.fillWidth: true
|
||||
label: I18n.tr("settings.color-scheme.predefined.generate-templates.label")
|
||||
|
||||
@@ -109,14 +109,14 @@ Singleton {
|
||||
// Process ended while we were pending - likely cancelled or error
|
||||
isPending = false
|
||||
pendingTimer.running = false
|
||||
|
||||
|
||||
// Check if gpu-screen-recorder is not installed
|
||||
const stdout = String(stdout.text || "").trim()
|
||||
if (stdout === "GPU_SCREEN_RECORDER_NOT_INSTALLED") {
|
||||
ToastService.showError(I18n.tr("toast.recording.not-installed"), I18n.tr("toast.recording.not-installed-desc"), 7000)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// If it failed to start, show a clear error toast with stderr
|
||||
if (exitCode !== 0) {
|
||||
const err = String(stderr.text || "").trim()
|
||||
|
||||
Reference in New Issue
Block a user